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/ThermalStorageIceDetailed_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_THERMALSTORAGEICEDETAILED_IMPL_HPP
7 #define MODEL_THERMALSTORAGEICEDETAILED_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "StraightComponent_Impl.hpp"
11
12 namespace openstudio {
13
14 namespace model {
15
16 class Schedule;
17 class Curve;
18
19 namespace detail {
20
21 /** ThermalStorageIceDetailed_Impl is a StraightComponent_Impl that is the implementation class for ThermalStorageIceDetailed.*/
22 class MODEL_API ThermalStorageIceDetailed_Impl : public StraightComponent_Impl
23 {
24 public:
25 /** @name Constructors and Destructors */
26 //@{
27
28 ThermalStorageIceDetailed_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
29
30 ThermalStorageIceDetailed_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
31
32 ThermalStorageIceDetailed_Impl(const ThermalStorageIceDetailed_Impl& other, Model_Impl* model, bool keepHandle);
33
34 3 virtual ~ThermalStorageIceDetailed_Impl() override = default;
35
36 //@}
37 /** @name Virtual Methods */
38 //@{
39
40 virtual const std::vector<std::string>& outputVariableNames() const override;
41
42 virtual IddObjectType iddObjectType() const override;
43
44 virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override;
45
46 virtual unsigned inletPort() const override;
47 virtual unsigned outletPort() const override;
48
49 virtual bool addToNode(Node& node) override;
50 virtual std::vector<ModelObject> children() const override;
51 virtual ModelObject clone(Model model) const override;
52
53 virtual ComponentType componentType() const override;
54 virtual std::vector<FuelType> coolingFuelTypes() const override;
55 virtual std::vector<FuelType> heatingFuelTypes() const override;
56 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
57
58 //@}
59 /** @name Getters */
60 //@{
61
62 boost::optional<Schedule> availabilitySchedule() const;
63
64 double capacity() const;
65
66 std::string dischargingCurveVariableSpecifications() const;
67
68 Curve dischargingCurve() const;
69
70 std::string chargingCurveVariableSpecifications() const;
71
72 Curve chargingCurve() const;
73
74 double timestepoftheCurveData() const;
75
76 double parasiticElectricLoadDuringDischarging() const;
77
78 double parasiticElectricLoadDuringCharging() const;
79
80 double tankLossCoefficient() const;
81
82 double freezingTemperatureofStorageMedium() const;
83
84 std::string thawProcessIndicator() const;
85
86 //@}
87 /** @name Setters */
88 //@{
89
90 bool setAvailabilitySchedule(Schedule& schedule);
91
92 void resetAvailabilitySchedule();
93
94 bool setCapacity(double capacity);
95
96 bool setDischargingCurveVariableSpecifications(const std::string& dischargingCurveVariableSpecifications);
97
98 bool setDischargingCurve(const Curve& dischargingCurve);
99
100 bool setChargingCurveVariableSpecifications(const std::string& chargingCurveVariableSpecifications);
101
102 bool setChargingCurve(const Curve& chargingCurve);
103
104 bool setTimestepoftheCurveData(double timestepoftheCurveData);
105
106 bool setParasiticElectricLoadDuringDischarging(double parasiticElectricLoadDuringDischarging);
107
108 bool setParasiticElectricLoadDuringCharging(double parasiticElectricLoadDuringCharging);
109
110 bool setTankLossCoefficient(double tankLossCoefficient);
111
112 bool setFreezingTemperatureofStorageMedium(double freezingTemperatureofStorageMedium);
113
114 bool setThawProcessIndicator(const std::string& thawProcessIndicator);
115
116 //@}
117 /** @name Other */
118 //@{
119
120 //@}
121 protected:
122 private:
123 − REGISTER_LOGGER("openstudio.model.ThermalStorageIceDetailed");
124
125 boost::optional<Curve> optionalDischargingCurve() const;
126 boost::optional<Curve> optionalChargingCurve() const;
127 };
128
129 } // namespace detail
130
131 } // namespace model
132 } // namespace openstudio
133
134 #endif // MODEL_THERMALSTORAGEICEDETAILED_IMPL_HPP
135