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/MaterialPropertyPhaseChange_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_MATERIALPROPERTYPHASECHANGE_IMPL_HPP
7 #define MODEL_MATERIALPROPERTYPHASECHANGE_IMPL_HPP
8
9 #include <vector>
10 #include "ModelAPI.hpp"
11 #include "ModelObject_Impl.hpp"
12
13 namespace openstudio {
14 namespace model {
15
16 class TemperatureEnthalpy;
17 class Material;
18
19 namespace detail {
20
21 /** MaterialPropertyPhaseChange_Impl is a ModelObject_Impl that is the implementation class for MaterialPropertyPhaseChange.*/
22 class MODEL_API MaterialPropertyPhaseChange_Impl : public ModelObject_Impl
23 {
24
25 public:
26 /** @name Constructors and Destructors */
27 //@{
28
29 MaterialPropertyPhaseChange_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
30
31 MaterialPropertyPhaseChange_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
32
33 MaterialPropertyPhaseChange_Impl(const MaterialPropertyPhaseChange_Impl& other, Model_Impl* model, bool keepHandle);
34
35 10 virtual ~MaterialPropertyPhaseChange_Impl() override = default;
36
37 //@}
38 /** @name Virtual Methods */
39 //@{
40
41 virtual const std::vector<std::string>& outputVariableNames() const override;
42
43 virtual IddObjectType iddObjectType() const override;
44
45 //@}
46 /** @name Getters */
47 //@{
48
49 std::string materialName() const;
50
51 Material material() const;
52
53 double temperatureCoefficientforThermalConductivity() const;
54
55 bool isTemperatureCoefficientforThermalConductivityDefaulted() const;
56
57 std::vector<TemperatureEnthalpy> temperatureEnthalpys() const;
58
59 unsigned int numberofTemperatureEnthalpys() const;
60
61 //@}
62 /** @name Setters */
63 //@{
64
65 bool setTemperatureCoefficientforThermalConductivity(double temperatureCoefficientforThermalConductivity);
66
67 void resetTemperatureCoefficientforThermalConductivity();
68
69 bool addTemperatureEnthalpy(const TemperatureEnthalpy& temperatureEnthalpy);
70
71 bool addTemperatureEnthalpy(double temperature, double enthalpy);
72
73 bool addTemperatureEnthalpys(const std::vector<TemperatureEnthalpy>& temperatureEnthalpys);
74
75 bool removeTemperatureEnthalpy(unsigned groupIndex);
76
77 void removeAllTemperatureEnthalpys();
78
79 //@}
80 /** @name Other */
81 //@{
82
83 //@}
84 protected:
85 private:
86 − REGISTER_LOGGER("openstudio.model.MaterialPropertyPhaseChange");
87 };
88
89 } // namespace detail
90
91 } // namespace model
92 } // namespace openstudio
93
94 #endif // MODEL_MATERIALPROPERTYPHASECHANGE_IMPL_HPP
95