GCC Code Coverage Report


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

src/model/ThermalStorageIceDetailed.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_THERMALSTORAGEICEDETAILED_HPP
7 #define MODEL_THERMALSTORAGEICEDETAILED_HPP
8
9 #include "ModelAPI.hpp"
10 #include "StraightComponent.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 class Schedule;
17 class Curve;
18
19 namespace detail {
20
21 class ThermalStorageIceDetailed_Impl;
22
23 } // namespace detail
24
25 /** ThermalStorageIceDetailed is a StraightComponent that wraps the OpenStudio IDD object 'OS:ThermalStorage:Ice:Detailed'. */
26 class MODEL_API ThermalStorageIceDetailed : public StraightComponent
27 {
28 public:
29 /** @name Constructors and Destructors */
30 //@{
31
32 explicit ThermalStorageIceDetailed(const Model& model);
33
34 3 virtual ~ThermalStorageIceDetailed() override = default;
35 // Default the copy and move operators because the virtual dtor is explicit
36 ✗ ThermalStorageIceDetailed(const ThermalStorageIceDetailed& other) = default;
37 ✗ ThermalStorageIceDetailed(ThermalStorageIceDetailed&& other) = default;
38 ✗ ThermalStorageIceDetailed& operator=(const ThermalStorageIceDetailed&) = default;
39 ✗ ThermalStorageIceDetailed& operator=(ThermalStorageIceDetailed&&) = default;
40
41 //@}
42
43 static IddObjectType iddObjectType();
44
45 static std::vector<std::string> thawProcessIndicatorValues();
46
47 /** @name Getters */
48 //@{
49
50 boost::optional<Schedule> availabilitySchedule() const;
51
52 double capacity() const;
53
54 std::string dischargingCurveVariableSpecifications() const;
55
56 Curve dischargingCurve() const;
57
58 std::string chargingCurveVariableSpecifications() const;
59
60 Curve chargingCurve() const;
61
62 double timestepoftheCurveData() const;
63
64 double parasiticElectricLoadDuringDischarging() const;
65
66 double parasiticElectricLoadDuringCharging() const;
67
68 double tankLossCoefficient() const;
69
70 double freezingTemperatureofStorageMedium() const;
71
72 std::string thawProcessIndicator() const;
73
74 //@}
75 /** @name Setters */
76 //@{
77
78 bool setAvailabilitySchedule(Schedule& schedule);
79
80 void resetAvailabilitySchedule();
81
82 bool setCapacity(double capacity);
83
84 bool setDischargingCurveVariableSpecifications(const std::string& dischargingCurveVariableSpecifications);
85
86 bool setDischargingCurve(const Curve& dischargingCurve);
87
88 bool setChargingCurveVariableSpecifications(const std::string& chargingCurveVariableSpecifications);
89
90 bool setChargingCurve(const Curve& chargingCurve);
91
92 bool setTimestepoftheCurveData(double timestepoftheCurveData);
93
94 bool setParasiticElectricLoadDuringDischarging(double parasiticElectricLoadDuringDischarging);
95
96 bool setParasiticElectricLoadDuringCharging(double parasiticElectricLoadDuringCharging);
97
98 bool setTankLossCoefficient(double tankLossCoefficient);
99
100 bool setFreezingTemperatureofStorageMedium(double freezingTemperatureofStorageMedium);
101
102 bool setThawProcessIndicator(const std::string& thawProcessIndicator);
103
104 //@}
105 /** @name Other */
106 //@{
107
108 //@}
109 protected:
110 /// @cond
111 using ImplType = detail::ThermalStorageIceDetailed_Impl;
112
113 explicit ThermalStorageIceDetailed(std::shared_ptr<detail::ThermalStorageIceDetailed_Impl> impl);
114
115 friend class detail::ThermalStorageIceDetailed_Impl;
116 friend class Model;
117 friend class IdfObject;
118 friend class openstudio::detail::IdfObject_Impl;
119 /// @endcond
120 private:
121 REGISTER_LOGGER("openstudio.model.ThermalStorageIceDetailed");
122 };
123
124 /** \relates ThermalStorageIceDetailed*/
125 using OptionalThermalStorageIceDetailed = boost::optional<ThermalStorageIceDetailed>;
126
127 /** \relates ThermalStorageIceDetailed*/
128 using ThermalStorageIceDetailedVector = std::vector<ThermalStorageIceDetailed>;
129
130 } // namespace model
131 } // namespace openstudio
132
133 #endif // MODEL_THERMALSTORAGEICEDETAILED_HPP
134