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/ZoneHVACLowTemperatureRadiantElectric_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_ZONEHVACLOWTEMPERATURERADIANTELECTRIC_IMPL_HPP
7 #define MODEL_ZONEHVACLOWTEMPERATURERADIANTELECTRIC_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "Surface.hpp"
11 #include "Surface_Impl.hpp"
12 #include "ZoneHVACComponent_Impl.hpp"
13
14 namespace openstudio {
15 namespace model {
16
17 class Schedule;
18 class HVACComponent;
19
20 namespace detail {
21
22 /** ZoneHVACLowTemperatureRadiantElectric_Impl is a ZoneHVAC_Impl that is the implementation class for ZoneHVACLowTemperatureRadiantElectric.*/
23 class MODEL_API ZoneHVACLowTemperatureRadiantElectric_Impl : public ZoneHVACComponent_Impl
24 {
25 public:
26 /** @name Constructors and Destructors */
27
28 ZoneHVACLowTemperatureRadiantElectric_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
29
30 ZoneHVACLowTemperatureRadiantElectric_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
31
32 ZoneHVACLowTemperatureRadiantElectric_Impl(const ZoneHVACLowTemperatureRadiantElectric_Impl& other, Model_Impl* model, bool keepHandle);
33
34 17 virtual ~ZoneHVACLowTemperatureRadiantElectric_Impl() override = default;
35
36 virtual unsigned inletPort() const override;
37
38 virtual unsigned outletPort() const override;
39
40 /** @name Virtual Methods */
41
42 virtual ModelObject clone(Model model) const override;
43
44 virtual const std::vector<std::string>& outputVariableNames() const override;
45
46 virtual IddObjectType iddObjectType() const override;
47
48 virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override;
49
50 /** @name Getters */
51
52 Schedule availabilitySchedule() const;
53
54 Schedule heatingSetpointTemperatureSchedule() const;
55
56 boost::optional<std::string> radiantSurfaceType() const;
57
58 std::vector<Surface> surfaces() const;
59
60 boost::optional<double> maximumElectricalPowertoPanel() const;
61
62 bool isMaximumElectricalPowertoPanelDefaulted() const;
63
64 bool isMaximumElectricalPowertoPanelAutosized() const;
65
66 std::string temperatureControlType() const;
67
68 bool isTemperatureControlTypeDefaulted() const;
69
70 std::string setpointControlType() const;
71
72 bool isSetpointControlTypeDefaulted() const;
73
74 double heatingThrottlingRange() const;
75
76 bool isHeatingThrottlingRangeDefaulted() const;
77
78 boost::optional<double> autosizedMaximumElectricalPowertoPanel() const;
79
80 virtual void autosize() override;
81
82 virtual void applySizingValues() override;
83
84 /** @name Setters */
85
86 bool setAvailabilitySchedule(Schedule& schedule);
87
88 bool setHeatingSetpointTemperatureSchedule(Schedule& schedule);
89
90 bool setRadiantSurfaceType(boost::optional<std::string> radiantSurfaceType);
91
92 void resetRadiantSurfaceType();
93
94 bool setMaximumElectricalPowertoPanel(boost::optional<double> maximumElectricalPowertoPanel);
95
96 void resetMaximumElectricalPowertoPanel();
97
98 void autosizeMaximumElectricalPowertoPanel();
99
100 bool setTemperatureControlType(const std::string& temperatureControlType);
101
102 void resetTemperatureControlType();
103
104 bool setSetpointControlType(const std::string& setpointControlType);
105
106 void resetSetpointControlType();
107
108 bool setHeatingThrottlingRange(double heatingThrottlingRange);
109
110 void resetHeatingThrottlingRange();
111
112 boost::optional<ThermalZone> thermalZone() const override;
113
114 bool addToThermalZone(ThermalZone& thermalZone) override;
115
116 void removeFromThermalZone() override;
117
118 virtual ComponentType componentType() const override;
119 virtual std::vector<FuelType> coolingFuelTypes() const override;
120 virtual std::vector<FuelType> heatingFuelTypes() const override;
121 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
122
123 //@}
124 /** @name Other */
125 //@{
126
127 //@}
128 protected:
129 private:
130 − REGISTER_LOGGER("openstudio.model.ZoneHVACLowTemperatureRadiantElectric");
131
132 // Optional getters for use by methods like children() so can remove() if the constructor fails.
133 // There are other ways for the public versions of these getters to fail--perhaps all required
134 // objects should be returned as boost::optionals
135 boost::optional<Schedule> optionalAvailabilitySchedule() const;
136 boost::optional<Schedule> optionalHeatingSetpointTemperatureSchedule() const;
137
138 std::vector<std::string> radiantSurfaceTypeValues() const;
139 std::vector<std::string> temperatureControlTypeValues() const;
140 };
141
142 } // namespace detail
143
144 } // namespace model
145 } // namespace openstudio
146
147 #endif // MODEL_ZONEHVACLOWTEMPERATURERADIANTELECTRIC_IMPL_HPP
148