GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 1 / 0 / 1
Functions: 100.0% 1 / 0 / 1
Branches: -% 0 / 0 / 0

src/model/CoilCoolingLowTempRadiantConstFlow_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_COILCOOLINGLOWTEMPRADIANTCONSTFLOW_IMPL_HPP
7 #define MODEL_COILCOOLINGLOWTEMPRADIANTCONSTFLOW_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "StraightComponent_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class Schedule;
16
17 namespace detail {
18
19 /** CoilCoolingLowTempRadiantConstFlow_Impl is a StraightComponent_Impl that is the implementation class for CoilCoolingLowTempRadiantConstFlow.*/
20 class MODEL_API CoilCoolingLowTempRadiantConstFlow_Impl : public StraightComponent_Impl
21 {
22 public:
23 /** @name Constructors and Destructors */
24 //@{
25
26 CoilCoolingLowTempRadiantConstFlow_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
27
28 CoilCoolingLowTempRadiantConstFlow_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
29
30 CoilCoolingLowTempRadiantConstFlow_Impl(const CoilCoolingLowTempRadiantConstFlow_Impl& other, Model_Impl* model, bool keepHandle);
31
32 13 virtual ~CoilCoolingLowTempRadiantConstFlow_Impl() override = default;
33
34 //@}
35 /** @name Virtual Methods */
36 //@{
37
38 virtual const std::vector<std::string>& outputVariableNames() const override;
39
40 virtual IddObjectType iddObjectType() const override;
41
42 virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override;
43
44 virtual unsigned inletPort() const override;
45
46 virtual unsigned outletPort() const override;
47
48 virtual boost::optional<ZoneHVACComponent> containingZoneHVACComponent() const override;
49
50 virtual bool addToNode(Node& node) override;
51
52 virtual ComponentType componentType() const override;
53 virtual std::vector<FuelType> coolingFuelTypes() const override;
54 virtual std::vector<FuelType> heatingFuelTypes() const override;
55 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
56
57 //@}
58 /** @name Getters */
59 //@{
60
61 boost::optional<Schedule> coolingHighWaterTemperatureSchedule() const;
62
63 boost::optional<Schedule> coolingLowWaterTemperatureSchedule() const;
64
65 boost::optional<Schedule> coolingHighControlTemperatureSchedule() const;
66
67 boost::optional<Schedule> coolingLowControlTemperatureSchedule() const;
68
69 std::string condensationControlType() const;
70
71 bool isCondensationControlTypeDefaulted() const;
72
73 double condensationControlDewpointOffset() const;
74
75 bool isCondensationControlDewpointOffsetDefaulted() const;
76
77 //@}
78 /** @name Setters */
79 //@{
80
81 bool setCoolingHighWaterTemperatureSchedule(Schedule& schedule);
82
83 void resetCoolingHighWaterTemperatureSchedule();
84
85 bool setCoolingLowWaterTemperatureSchedule(Schedule& schedule);
86
87 void resetCoolingLowWaterTemperatureSchedule();
88
89 bool setCoolingHighControlTemperatureSchedule(Schedule& schedule);
90
91 void resetCoolingHighControlTemperatureSchedule();
92
93 bool setCoolingLowControlTemperatureSchedule(Schedule& schedule);
94
95 void resetCoolingLowControlTemperatureSchedule();
96
97 bool setCondensationControlType(const std::string& condensationControlType);
98
99 void resetCondensationControlType();
100
101 bool setCondensationControlDewpointOffset(double condensationControlDewpointOffset);
102
103 void resetCondensationControlDewpointOffset();
104
105 //@}
106 /** @name Other */
107 //@{
108
109 //@}
110 protected:
111 private:
112 REGISTER_LOGGER("openstudio.model.CoilCoolingLowTempRadiantConstFlow");
113
114 // Optional getters for use by methods like children() so can remove() if the constructor fails.
115 // There are other ways for the public versions of these getters to fail--perhaps all required
116 // objects should be returned as boost::optionals
117
118 std::vector<std::string> condensationControlTypeValues() const;
119
120 boost::optional<ModelObject> coolingHighWaterTemperatureScheduleAsModelObject() const;
121 boost::optional<ModelObject> coolingLowWaterTemperatureScheduleAsModelObject() const;
122 boost::optional<ModelObject> coolingHighControlTemperatureScheduleAsModelObject() const;
123 boost::optional<ModelObject> coolingLowControlTemperatureScheduleAsModelObject() const;
124
125 bool setCoolingHighWaterTemperatureScheduleAsModelObject(const boost::optional<ModelObject>& modelObject);
126 bool setCoolingLowWaterTemperatureScheduleAsModelObject(const boost::optional<ModelObject>& modelObject);
127 bool setCoolingHighControlTemperatureScheduleAsModelObject(const boost::optional<ModelObject>& modelObject);
128 bool setCoolingLowControlTemperatureScheduleAsModelObject(const boost::optional<ModelObject>& modelObject);
129 };
130
131 } // namespace detail
132
133 } // namespace model
134 } // namespace openstudio
135
136 #endif // MODEL_COILCOOLINGLOWTEMPRADIANTCONSTFLOW_IMPL_HPP
137