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/AirTerminalSingleDuctVAVHeatAndCoolNoReheat_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_AIRTERMINALSINGLEDUCTVAVHEATANDCOOLNOREHEAT_IMPL_HPP
7 #define MODEL_AIRTERMINALSINGLEDUCTVAVHEATANDCOOLNOREHEAT_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "StraightComponent_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class Schedule;
16 class Node;
17
18 namespace detail {
19
20 /** AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl is a StraightComponent_Impl that is the implementation class for AirTerminalSingleDuctVAVHeatAndCoolNoReheat.*/
21 class MODEL_API AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl : public StraightComponent_Impl
22 {
23 public:
24 /** @name Constructors and Destructors */
25 //@{
26
27 AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
28
29 AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
30
31 AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl(const AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl& other, Model_Impl* model,
32 bool keepHandle);
33
34 3 virtual ~AirTerminalSingleDuctVAVHeatAndCoolNoReheat_Impl() override = default;
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 ComponentType componentType() const override;
47 virtual std::vector<FuelType> coolingFuelTypes() const override;
48 virtual std::vector<FuelType> heatingFuelTypes() const override;
49 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
50
51 //@}
52 /** @name Getters */
53 //@{
54
55 boost::optional<Schedule> availabilitySchedule() const;
56
57 std::string airOutlet() const;
58
59 std::string airInlet() const;
60
61 boost::optional<double> maximumAirFlowRate() const;
62
63 bool isMaximumAirFlowRateAutosized() const;
64
65 double zoneMinimumAirFlowFraction() const;
66
67 boost::optional<double> autosizedMaximumAirFlowRate() const;
68
69 virtual void autosize() override;
70
71 virtual void applySizingValues() override;
72
73 boost::optional<Schedule> minimumAirFlowTurndownSchedule() const;
74
75 //@}
76 /** @name Setters */
77 //@{
78
79 bool setAvailabilitySchedule(Schedule& schedule);
80
81 void resetAvailabilitySchedule();
82
83 // bool setAirOutlet(const std::string& airOutlet);
84 // bool setAirInlet(const std::string& airInlet);
85
86 bool setMaximumAirFlowRate(boost::optional<double> maximumAirFlowRate);
87
88 void autosizeMaximumAirFlowRate();
89
90 bool setZoneMinimumAirFlowFraction(double zoneMinimumAirFlowFraction);
91
92 bool setMinimumAirFlowTurndownSchedule(Schedule& schedule);
93
94 void resetMinimumAirFlowTurndownSchedule();
95
96 //@}
97 /** @name Other */
98 //@{
99
100 virtual unsigned inletPort() const override;
101
102 virtual unsigned outletPort() const override;
103
104 bool addToNode(Node& node) override;
105
106 std::vector<IdfObject> remove() override;
107
108 bool isRemovable() const override;
109
110 //@}
111 protected:
112 private:
113 REGISTER_LOGGER("openstudio.model.AirTerminalSingleDuctVAVHeatAndCoolNoReheat");
114
115 boost::optional<ModelObject> minimumAirFlowTurndownScheduleAsModelObject() const;
116
117 bool setMinimumAirFlowTurndownScheduleAsModelObject(const boost::optional<ModelObject>& modelObject);
118 };
119
120 } // namespace detail
121
122 } // namespace model
123 } // namespace openstudio
124
125 #endif // MODEL_AIRTERMINALSINGLEDUCTVAVHEATANDCOOLNOREHEAT_IMPL_HPP
126