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/EvaporativeCoolerDirectResearchSpecial_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_EVAPORATIVECOOLERDIRECTRESEARCHSPECIAL_IMPL_HPP
7 #define MODEL_EVAPORATIVECOOLERDIRECTRESEARCHSPECIAL_IMPL_HPP
8
9 #include "StraightComponent_Impl.hpp"
10
11 namespace openstudio {
12 namespace model {
13
14 class Curve;
15
16 namespace detail {
17
18 class MODEL_API EvaporativeCoolerDirectResearchSpecial_Impl : public StraightComponent_Impl
19 {
20 public:
21 /** @name Constructors and Destructors */
22 //@{
23
24 EvaporativeCoolerDirectResearchSpecial_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
25
26 EvaporativeCoolerDirectResearchSpecial_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
27
28 EvaporativeCoolerDirectResearchSpecial_Impl(const EvaporativeCoolerDirectResearchSpecial_Impl& other, Model_Impl* model, bool keepHandle);
29
30 305 virtual ~EvaporativeCoolerDirectResearchSpecial_Impl() override = default;
31
32 //@}
33 /** @name Virtual Methods */
34 //@{
35
36 virtual std::vector<openstudio::IdfObject> remove() override;
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 bool addToNode(Node& node) override;
49
50 virtual ComponentType componentType() const override;
51 virtual std::vector<FuelType> coolingFuelTypes() const override;
52 virtual std::vector<FuelType> heatingFuelTypes() const override;
53 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
54
55 //@}
56 /** @name Getters and Setters */
57 //@{
58
59 Schedule availabilitySchedule() const;
60
61 bool setAvailabilitySchedule(Schedule& schedule);
62
63 double coolerDesignEffectiveness() const;
64
65 bool setCoolerDesignEffectiveness(double value);
66
67 boost::optional<double> recirculatingWaterPumpPowerConsumption() const;
68
69 bool setRecirculatingWaterPumpPowerConsumption(double value);
70
71 void autosizeRecirculatingWaterPumpPowerConsumption();
72
73 bool isRecirculatingWaterPumpPowerConsumptionAutosized() const;
74
75 boost::optional<Node> sensorNode() const;
76
77 bool setSensorNode(const Node& node);
78
79 double driftLossFraction() const;
80
81 bool setDriftLossFraction(double value);
82
83 double blowdownConcentrationRatio() const;
84
85 bool setBlowdownConcentrationRatio(double value);
86
87 boost::optional<Curve> effectivenessFlowRatioModifierCurve() const;
88
89 bool setEffectivenessFlowRatioModifierCurve(const Curve& curve);
90
91 void resetEffectivenessFlowRatioModifierCurve();
92
93 double waterPumpPowerSizingFactor() const;
94
95 bool setWaterPumpPowerSizingFactor(double waterPumpPowerSizingFactor);
96
97 boost::optional<Curve> waterPumpPowerModifierCurve() const;
98
99 bool setWaterPumpPowerModifierCurve(const Curve& curve);
100
101 void resetWaterPumpPowerModifierCurve();
102
103 boost::optional<double> primaryAirDesignFlowRate() const;
104
105 bool setPrimaryAirDesignFlowRate(double value);
106
107 void autosizePrimaryAirDesignFlowRate();
108
109 bool isPrimaryAirDesignFlowRateAutosized() const;
110
111 double evaporativeOperationMinimumDrybulbTemperature() const;
112 bool setEvaporativeOperationMinimumDrybulbTemperature(double evaporativeOperationMinimumDrybulbTemperature);
113
114 double evaporativeOperationMaximumLimitWetbulbTemperature() const;
115 bool setEvaporativeOperationMaximumLimitWetbulbTemperature(double evaporativeOperationMaximumLimitWetbulbTemperature);
116
117 double evaporativeOperationMaximumLimitDrybulbTemperature() const;
118 bool setEvaporativeOperationMaximumLimitDrybulbTemperature(double evaporativeOperationMaximumLimitDrybulbTemperature);
119
120 boost::optional<double> autosizedRecirculatingWaterPumpPowerConsumption() const;
121
122 boost::optional<double> autosizedPrimaryAirDesignFlowRate() const;
123
124 virtual void autosize() override;
125
126 virtual void applySizingValues() override;
127
128 private:
129 − REGISTER_LOGGER("openstudio.model.EvaporativeCoolerDirectResearchSpecial");
130
131 boost::optional<ModelObject> availabilityScheduleAsModelObject() const;
132
133 bool setAvailabilityScheduleAsModelObject(const boost::optional<ModelObject>& modelObject);
134
135 virtual boost::optional<ZoneHVACComponent> containingZoneHVACComponent() const override;
136 };
137
138 } // namespace detail
139
140 } // namespace model
141 } // namespace openstudio
142
143 #endif // MODEL_EVAPORATIVECOOLERDIRECTRESEARCHSPECIAL_IMPL_HPP
144