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/AirGap_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_AIRGAP_IMPL_HPP
7 #define MODEL_AIRGAP_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "OpaqueMaterial_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 namespace detail {
16
17 /** AirGap_Impl is a OpaqueMaterial_Impl that is the implementation class for AirGap.*/
18 class MODEL_API AirGap_Impl : public OpaqueMaterial_Impl
19 {
20
21 public:
22 /** @name Constructors and Destructors */
23 //@{
24
25 AirGap_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
26
27 AirGap_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
28
29 AirGap_Impl(const AirGap_Impl& other, Model_Impl* model, bool keepHandle);
30
31 678 virtual ~AirGap_Impl() override = default;
32
33 //@}
34
35 /** @name Virtual Methods */
36 //@{
37
38 virtual const std::vector<std::string>& outputVariableNames() const override;
39
40 virtual IddObjectType iddObjectType() const override;
41
42 //@}
43 /** @name Getters */
44 //@{
45
46 double thermalResistance() const override;
47
48 virtual double thickness() const override;
49
50 /** The conductivity of the material in W/m*K. Always throws because no real thickness, which
51 * is needed for conversion. */
52 virtual double thermalConductivity() const override;
53
54 /** The conductance of the material in W/m^2*K. Always throws because no real thickness, which
55 * is needed for conversion. */
56 virtual double thermalConductance() const override;
57
58 /** The resistivity of the material in m*K/W. Always throws because no real thickness, which
59 * is needed for conversion. */
60 virtual double thermalResistivity() const override;
61
62 virtual double thermalAbsorptance() const override;
63
64 virtual boost::optional<double> thermalReflectance() const override;
65
66 virtual double solarAbsorptance() const override;
67
68 virtual boost::optional<double> solarReflectance() const override;
69
70 virtual double visibleTransmittance() const;
71
72 virtual double visibleAbsorptance() const override;
73
74 virtual boost::optional<double> visibleReflectance() const override;
75
76 //@}
77 /** @name Setters */
78 //@{
79
80 bool setThermalResistance(boost::optional<double> thermalResistance);
81
82 void resetThermalResistance();
83
84 virtual bool setThickness(double value) override;
85
86 /** Sets the conductivity of the material in W/m*K, if possible. Always returns false. */
87 virtual bool setThermalConductivity(double value) override;
88
89 /** Sets the conductance of the material in W/m^2*K, if possible. */
90 virtual bool setThermalConductance(double value) override;
91
92 /** Sets the resistivity of the material in m*K/W, if possible. */
93 virtual bool setThermalResistivity(double value) override;
94
95 /** Sets the resistance of the material in m^2*K/W, if possible. */
96 virtual bool setThermalResistance(double value) override;
97
98 virtual bool setThermalAbsorptance(double value) override;
99
100 virtual bool setThermalReflectance(boost::optional<double> value) override;
101
102 virtual bool setSolarAbsorptance(boost::optional<double> value) override;
103
104 virtual bool setSolarReflectance(boost::optional<double> value) override;
105
106 virtual bool setVisibleAbsorptance(boost::optional<double> value) override;
107
108 virtual bool setVisibleReflectance(boost::optional<double> value) override;
109
110 //@}
111 /** @name Other */
112 //@{
113
114 //@}
115 protected:
116 private:
117 − REGISTER_LOGGER("openstudio.model.AirGap");
118 };
119
120 } // namespace detail
121
122 } // namespace model
123 } // namespace openstudio
124
125 #endif // MODEL_AIRGAP_IMPL_HPP
126