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/ZoneHVACBaseboardRadiantConvectiveWater_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_ZONEHVACBASEBOARDRADIANTCONVECTIVEWATER_IMPL_HPP
7 #define MODEL_ZONEHVACBASEBOARDRADIANTCONVECTIVEWATER_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 Surface;
17 class ThermalZone;
18 class HVACComponent;
19
20 namespace detail {
21
22 /** ZoneHVACBaseboardRadiantConvectiveWater_Impl is a ZoneHVACComponent_Impl that is the implementation class for ZoneHVACBaseboardRadiantConvectiveWater.*/
23 class MODEL_API ZoneHVACBaseboardRadiantConvectiveWater_Impl : public ZoneHVACComponent_Impl
24 {
25 public:
26 /** @name Constructors and Destructors */
27 //@{
28
29 ZoneHVACBaseboardRadiantConvectiveWater_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
30
31 ZoneHVACBaseboardRadiantConvectiveWater_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
32
33 ZoneHVACBaseboardRadiantConvectiveWater_Impl(const ZoneHVACBaseboardRadiantConvectiveWater_Impl& other, Model_Impl* model, bool keepHandle);
34
35 4 virtual ~ZoneHVACBaseboardRadiantConvectiveWater_Impl() override = default;
36
37 //@}
38 /** @name Virtual Methods */
39 //@{
40
41 virtual const std::vector<std::string>& outputVariableNames() const override;
42
43 virtual IddObjectType iddObjectType() const override;
44
45 virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override;
46
47 boost::optional<ThermalZone> thermalZone() const override;
48
49 bool addToThermalZone(ThermalZone& thermalZone) override;
50
51 void removeFromThermalZone() override;
52
53 virtual ModelObject clone(Model model) const override;
54
55 virtual unsigned inletPort() const override;
56
57 virtual unsigned outletPort() const override;
58
59 virtual std::vector<ModelObject> children() const override;
60
61 virtual std::vector<IdfObject> remove() override;
62
63 virtual ComponentType componentType() const override;
64 virtual std::vector<FuelType> coolingFuelTypes() const override;
65 virtual std::vector<FuelType> heatingFuelTypes() const override;
66 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
67
68 //@}
69 /** @name Getters */
70 //@{
71
72 Schedule availabilitySchedule() const;
73
74 double fractionRadiant() const;
75
76 double fractionofRadiantEnergyIncidentonPeople() const;
77
78 HVACComponent heatingCoil() const;
79
80 //@}
81 /** @name Setters */
82 //@{
83
84 bool setAvailabilitySchedule(Schedule& schedule);
85
86 bool setFractionRadiant(double fractionRadiant);
87
88 bool setFractionofRadiantEnergyIncidentonPeople(double fractionofRadiantEnergyIncidentonPeople);
89
90 bool setHeatingCoil(const HVACComponent& heatingCoil);
91
92 //@}
93 /** @name Other */
94 //@{
95
96 virtual std::vector<EMSActuatorNames> emsActuatorNames() const override;
97
98 virtual std::vector<std::string> emsInternalVariableNames() const override;
99
100 std::vector<Surface> surfaces() const;
101
102 //@}
103 protected:
104 private:
105 − REGISTER_LOGGER("openstudio.model.ZoneHVACBaseboardRadiantConvectiveWater");
106
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 boost::optional<HVACComponent> optionalHeatingCoil() const;
112 };
113
114 } // namespace detail
115
116 } // namespace model
117 } // namespace openstudio
118
119 #endif // MODEL_ZONEHVACBASEBOARDRADIANTCONVECTIVEWATER_IMPL_HPP
120