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