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/ZoneHVACBaseboardConvectiveElectric_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_ZONEHVACBASEBOARDCONVECTIVEELECTRIC_IMPL_HPP
7 #define MODEL_ZONEHVACBASEBOARDCONVECTIVEELECTRIC_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "ZoneHVACComponent_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class Schedule;
16 class ThermalZone;
17
18 namespace detail {
19
20 /** ZoneHVACBaseboardConvectiveElectric_Impl is a ZoneHVACComponent_Impl that is the implementation class for ZoneHVACBaseboardConvectiveElectric.*/
21 class MODEL_API ZoneHVACBaseboardConvectiveElectric_Impl : public ZoneHVACComponent_Impl
22 {
23 public:
24 /** @name Constructors and Destructors */
25 //@{
26
27 ZoneHVACBaseboardConvectiveElectric_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
28
29 ZoneHVACBaseboardConvectiveElectric_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
30
31 ZoneHVACBaseboardConvectiveElectric_Impl(const ZoneHVACBaseboardConvectiveElectric_Impl& other, Model_Impl* model, bool keepHandle);
32
33 88 virtual ~ZoneHVACBaseboardConvectiveElectric_Impl() override = default;
34
35 //@}
36 /** @name Virtual Methods */
37 //@{
38
39 virtual const std::vector<std::string>& outputVariableNames() const override;
40
41 virtual IddObjectType iddObjectType() const override;
42
43 virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override;
44
45 virtual ComponentType componentType() const override;
46 virtual std::vector<FuelType> coolingFuelTypes() const override;
47 virtual std::vector<FuelType> heatingFuelTypes() const override;
48 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
49
50 //@}
51 /** @name Getters */
52 //@{
53
54 Schedule availabilitySchedule() const;
55
56 boost::optional<double> nominalCapacity() const;
57
58 bool isNominalCapacityAutosized() const;
59
60 double efficiency() const;
61
62 bool isEfficiencyDefaulted() const;
63
64 boost::optional<double> autosizedNominalCapacity() const;
65
66 virtual void autosize() override;
67
68 virtual void applySizingValues() override;
69
70 virtual std::vector<EMSActuatorNames> emsActuatorNames() const override;
71
72 virtual std::vector<std::string> emsInternalVariableNames() const override;
73
74 //@}
75 /** @name Setters */
76 //@{
77
78 bool setAvailabilitySchedule(Schedule& schedule);
79
80 bool setNominalCapacity(boost::optional<double> nominalCapacity);
81
82 void autosizeNominalCapacity();
83
84 bool setEfficiency(double efficiency);
85
86 void resetEfficiency();
87
88 //@}
89 /** @name Other */
90 //@{
91
92 unsigned inletPort() const override;
93
94 unsigned outletPort() const override;
95
96 boost::optional<ThermalZone> thermalZone() const override;
97
98 bool addToThermalZone(ThermalZone& thermalZone) override;
99
100 void removeFromThermalZone() override;
101
102 //@}
103 private:
104 − REGISTER_LOGGER("openstudio.model.ZoneHVACBaseboardConvectiveElectric");
105
106 // TODO: Check the return types of these methods.
107 // Optional getters for use by methods like children() so can remove() if the constructor fails.
108 // There are other ways for the public versions of these getters to fail--perhaps all required
109 // objects should be returned as boost::optionals
110 boost::optional<Schedule> optionalAvailabilitySchedule() const;
111
112 boost::optional<ModelObject> availabilityScheduleAsModelObject() const;
113
114 bool setAvailabilityScheduleAsModelObject(const boost::optional<ModelObject>& modelObject);
115 };
116
117 } // namespace detail
118
119 } // namespace model
120 } // namespace openstudio
121
122 #endif // MODEL_ZONEHVACBASEBOARDCONVECTIVEELECTRIC_IMPL_HPP
123