GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 1 / 1 / 2
Functions: 100.0% 1 / 1 / 2
Branches: -% 0 / 1 / 1

src/model/ModelPartitionMaterial_Impl.hpp
Line Branch Exec Source
1 /***********************************************************************************************************************
2 * OpenStudio(R), Copyright (c) Alliance for Energy Innovation, LLC.
3 * See also https://openstudio.net/license
4 ***********************************************************************************************************************/
5
6 #ifndef MODEL_MODELPARTITIONMATERIAL_IMPL_HPP
7 #define MODEL_MODELPARTITIONMATERIAL_IMPL_HPP
8
9 #include "Material_Impl.hpp"
10
11 namespace openstudio {
12 namespace model {
13
14 // forward declaration
15 class ModelPartitionMaterial;
16
17 namespace detail {
18
19 class MODEL_API ModelPartitionMaterial_Impl : public Material_Impl
20 {
21 public:
22 /** @name Constructors and Destructors */
23 //@{
24
25 // Construct completely new object.
26 ModelPartitionMaterial_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
27
28 // Construct from existing workspace object (typically when Model is being constructed
29 // from Workspace).
30 ModelPartitionMaterial_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
31
32 // Clone copy constructor.
33 ModelPartitionMaterial_Impl(const ModelPartitionMaterial_Impl& other, Model_Impl* model, bool keepHandle);
34
35 2 virtual ~ModelPartitionMaterial_Impl() override = default;
36
37 //@}
38 /** @name Getters */
39 //@{
40
41 /** Get the thickness of the material. Always returns 0.0. */
42 virtual double thickness() const override;
43
44 /** The conductivity of the material in W/m*K. */
45 virtual double thermalConductivity() const;
46
47 /** The conductance of the material in W/m^2*K. */
48 virtual double thermalConductance() const;
49
50 /** The resistivity of the material in m*K/W. */
51 virtual double thermalResistivity() const;
52
53 /** The resistance of the material in m^2*K/W. */
54 virtual double thermalResistance() const;
55
56 virtual double thermalTransmittance() const;
57
58 virtual double thermalAbsorptance() const;
59
60 virtual double thermalReflectance() const;
61
62 virtual double solarTransmittance() const;
63
64 virtual double solarAbsorptance() const;
65
66 virtual double solarReflectance() const;
67
68 virtual boost::optional<double> getVisibleTransmittance() const override;
69
70 virtual double visibleAbsorptance() const;
71
72 virtual double visibleReflectance() const;
73
74 //@}
75 /** @name Setters */
76 //@{
77
78 /** Set thickness to value (m). Always returns false. */
79 virtual bool setThickness(double value) override;
80
81 /** Sets the conductivity of the material in W/m*K, if possible. */
82 virtual bool setThermalConductivity(double value);
83
84 /** Sets the conductance of the material in W/m^2*K, if possible. */
85 virtual bool setThermalConductance(double value);
86
87 /** Sets the resistivity of the material in m*K/W, if possible. */
88 virtual bool setThermalResistivity(double value);
89
90 /** Sets the resistance of the material in m^2*K/W, if possible. */
91 virtual bool setThermalResistance(double value);
92
93 virtual bool setThermalTransmittance(double value);
94
95 virtual bool setThermalAbsorptance(double value);
96
97 virtual bool setThermalReflectance(double value);
98
99 virtual bool setSolarTransmittance(double value);
100
101 virtual bool setSolarAbsorptance(double value);
102
103 virtual bool setSolarReflectance(double value);
104
105 virtual bool setVisibleTransmittance(double value);
106
107 virtual bool setVisibleAbsorptance(double value);
108
109 virtual bool setVisibleReflectance(double value);
110
111 //@}
112
113 private:
114 − REGISTER_LOGGER("openstudio.model.ModelPartitionMaterial");
115 };
116
117 } // namespace detail
118
119 } // namespace model
120 } // namespace openstudio
121
122 #endif // MODEL_MODELPARTITIONMATERIAL_IMPL_HPP
123