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/AirTerminalSingleDuctVAVNoReheat_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_AIRTERMINALSINGLEDUCTVAVNOREHEAT_IMPL_HPP
7 #define MODEL_AIRTERMINALSINGLEDUCTVAVNOREHEAT_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 /** AirTerminalSingleDuctVAVNoReheat_Impl is a StraightComponent_Impl that is the implementation class for AirTerminalSingleDuctVAVNoReheat.*/
20 class MODEL_API AirTerminalSingleDuctVAVNoReheat_Impl : public StraightComponent_Impl
21 {
22
23 public:
24 /** @name Constructors and Destructors */
25 //@{
26
27 AirTerminalSingleDuctVAVNoReheat_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
28
29 AirTerminalSingleDuctVAVNoReheat_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
30
31 AirTerminalSingleDuctVAVNoReheat_Impl(const AirTerminalSingleDuctVAVNoReheat_Impl& other, Model_Impl* model, bool keepHandle);
32
33 32 virtual ~AirTerminalSingleDuctVAVNoReheat_Impl() override = default;
34
35 //@}
36
37 /** @name Virtual Methods */
38 //@{
39
40 virtual const std::vector<std::string>& outputVariableNames() const override;
41
42 virtual IddObjectType iddObjectType() const override;
43
44 virtual std::vector<ScheduleTypeKey> getScheduleTypeKeys(const Schedule& schedule) const override;
45
46 virtual unsigned inletPort() const override;
47
48 virtual unsigned outletPort() const override;
49
50 virtual bool addToNode(Node& node) override;
51
52 virtual std::vector<openstudio::IdfObject> remove() override;
53
54 virtual bool isRemovable() const override;
55
56 virtual ComponentType componentType() const override;
57 virtual std::vector<FuelType> coolingFuelTypes() const override;
58 virtual std::vector<FuelType> heatingFuelTypes() const override;
59 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
60
61 //@}
62 /** @name Getters */
63 //@{
64
65 Schedule availabilitySchedule() const;
66
67 boost::optional<double> maximumAirFlowRate() const;
68
69 bool isMaximumAirFlowRateAutosized() const;
70
71 boost::optional<std::string> zoneMinimumAirFlowInputMethod() const;
72
73 boost::optional<double> constantMinimumAirFlowFraction() const;
74 bool isConstantMinimumAirFlowFractionAutosized() const;
75 bool isConstantMinimumAirFlowFractionDefaulted() const;
76
77 boost::optional<double> fixedMinimumAirFlowRate() const;
78 bool isFixedMinimumAirFlowRateAutosized() const;
79 bool isFixedMinimumAirFlowRateDefaulted() const;
80
81 boost::optional<Schedule> minimumAirFlowFractionSchedule() const;
82 boost::optional<Schedule> minimumAirFlowTurndownSchedule() const;
83
84 boost::optional<double> autosizedMaximumAirFlowRate() const;
85 boost::optional<double> autosizedConstantMinimumAirFlowFraction() const;
86 boost::optional<double> autosizedFixedMinimumAirFlowRate() const;
87
88 virtual void autosize() override;
89
90 virtual void applySizingValues() override;
91
92 //@}
93 /** @name Setters */
94 //@{
95
96 bool setAvailabilitySchedule(Schedule& schedule);
97
98 bool setMaximumAirFlowRate(boost::optional<double> maximumAirFlowRate);
99
100 void resetMaximumAirFlowRate();
101
102 void autosizeMaximumAirFlowRate();
103
104 bool setZoneMinimumAirFlowInputMethod(boost::optional<std::string> zoneMinimumAirFlowInputMethod);
105
106 void resetZoneMinimumAirFlowInputMethod();
107
108 bool setConstantMinimumAirFlowFraction(double constantMinimumAirFlowFraction);
109 void autosizeConstantMinimumAirFlowFraction();
110 void resetConstantMinimumAirFlowFraction();
111
112 bool setFixedMinimumAirFlowRate(double fixedMinimumAirFlowRate);
113 void autosizeFixedMinimumAirFlowRate();
114 void resetFixedMinimumAirFlowRate();
115
116 bool setMinimumAirFlowFractionSchedule(Schedule& schedule);
117
118 void resetMinimumAirFlowFractionSchedule();
119
120 bool setMinimumAirFlowTurndownSchedule(Schedule& schedule);
121
122 void resetMinimumAirFlowTurndownSchedule();
123
124 bool controlForOutdoorAir() const;
125
126 bool setControlForOutdoorAir(bool controlForOutdoorAir);
127
128 //@}
129 /** @name Other */
130 //@{
131
132 //@}
133 protected:
134 private:
135 − REGISTER_LOGGER("openstudio.model.AirTerminalSingleDuctVAVNoReheat");
136
137 // Optional getters for use by methods like children() so can remove() if the constructor fails.
138 // There are other ways for the public versions of these getters to fail--perhaps all required
139 // objects should be returned as boost::optionals
140 boost::optional<Schedule> optionalAvailabilitySchedule() const;
141
142 std::vector<std::string> zoneMinimumAirFlowInputMethodValues() const;
143
144 boost::optional<ModelObject> availabilityScheduleAsModelObject() const;
145 boost::optional<ModelObject> minimumAirFlowFractionScheduleAsModelObject() const;
146 boost::optional<ModelObject> minimumAirFlowTurndownScheduleAsModelObject() const;
147
148 bool setAvailabilityScheduleAsModelObject(const boost::optional<ModelObject>& modelObject);
149 bool setMinimumAirFlowFractionScheduleAsModelObject(const boost::optional<ModelObject>& modelObject);
150 bool setMinimumAirFlowTurndownScheduleAsModelObject(const boost::optional<ModelObject>& modelObject);
151 };
152
153 } // namespace detail
154
155 } // namespace model
156 } // namespace openstudio
157
158 #endif // MODEL_AIRTERMINALSINGLEDUCTVAVNOREHEAT_IMPL_HPP
159