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/CoilSystemCoolingWater_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_COILSYSTEMCOOLINGWATER_IMPL_HPP
7 #define MODEL_COILSYSTEMCOOLINGWATER_IMPL_HPP
8
9 #include <model/ModelAPI.hpp>
10 #include "StraightComponent_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class Schedule;
16 class HVACComponent;
17
18 namespace detail {
19
20 /** CoilSystemCoolingWater_Impl is a StraightComponent_Impl that is the implementation class for CoilSystemCoolingWater.*/
21 class MODEL_API CoilSystemCoolingWater_Impl : public StraightComponent_Impl
22 {
23 public:
24 /** @name Constructors and Destructors */
25 //@{
26
27 CoilSystemCoolingWater_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
28
29 CoilSystemCoolingWater_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
30
31 CoilSystemCoolingWater_Impl(const CoilSystemCoolingWater_Impl& other, Model_Impl* model, bool keepHandle);
32
33 18 virtual ~CoilSystemCoolingWater_Impl() = 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 unsigned inletPort() const override;
46
47 virtual unsigned outletPort() const override;
48
49 // will return the coolingCoil and companionCoilUsedForHeatRecovery
50 virtual std::vector<ModelObject> children() const override;
51
52 // Will also clone the coolingCoil and companionCoilUsedForHeatRecovery
53 virtual ModelObject clone(Model model) const override;
54
55 // This function will connect the air side only, for water side, use the coils directly
56 virtual bool addToNode(Node& node) override;
57
58 // Need to disconnect the Water side of the coil(s) before removing
59 virtual std::vector<IdfObject> remove() override;
60
61 virtual boost::optional<HVACComponent> containingHVACComponent() const override;
62
63 virtual boost::optional<ZoneHVACComponent> containingZoneHVACComponent() const override;
64
65 virtual ComponentType componentType() const override;
66 virtual std::vector<FuelType> coolingFuelTypes() const override;
67 virtual std::vector<FuelType> heatingFuelTypes() const override;
68 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
69
70 //@}
71 /** @name Getters */
72 //@{
73
74 Schedule availabilitySchedule() const;
75
76 HVACComponent coolingCoil() const;
77
78 std::string dehumidificationControlType() const;
79
80 bool runonSensibleLoad() const;
81
82 bool runonLatentLoad() const;
83
84 double minimumAirToWaterTemperatureOffset() const;
85
86 bool economizerLockout() const;
87
88 double minimumWaterLoopTemperatureForHeatRecovery() const;
89
90 boost::optional<HVACComponent> companionCoilUsedForHeatRecovery() const;
91
92 //@}
93 /** @name Setters */
94 //@{
95
96 bool setAvailabilitySchedule(Schedule& schedule);
97
98 bool setCoolingCoil(const HVACComponent& coolingCoil);
99
100 bool setDehumidificationControlType(const std::string& dehumidificationControlType);
101
102 bool setRunonSensibleLoad(bool runonSensibleLoad);
103
104 bool setRunonLatentLoad(bool runonLatentLoad);
105
106 bool setMinimumAirToWaterTemperatureOffset(double minimumAirToWaterTemperatureOffset);
107
108 bool setEconomizerLockout(bool economizerLockout);
109
110 bool setMinimumWaterLoopTemperatureForHeatRecovery(double minimumWaterLoopTemperatureForHeatRecovery);
111
112 bool setCompanionCoilUsedForHeatRecovery(const HVACComponent& companionCoilUsedForHeatRecovery);
113
114 void resetCompanionCoilUsedForHeatRecovery();
115
116 //@}
117 /** @name Other */
118 //@{
119
120 //@}
121 protected:
122 private:
123 − REGISTER_LOGGER("openstudio.model.CoilSystemCoolingWater");
124
125 boost::optional<Schedule> optionalAvailabilitySchedule() const;
126 boost::optional<HVACComponent> optionalCoolingCoil() const;
127 };
128
129 } // namespace detail
130
131 } // namespace model
132 } // namespace openstudio
133
134 #endif // MODEL_COILSYSTEMCOOLINGWATER_IMPL_HPP
135