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/AirTerminalDualDuctVAV_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_AIRTERMINALDUALDUCTVAV_IMPL_HPP
7 #define MODEL_AIRTERMINALDUALDUCTVAV_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "Mixer_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class Schedule;
16 class DesignSpecificationOutdoorAir;
17 class Node;
18
19 namespace detail {
20
21 /** AirTerminalDualDuctVAV_Impl is a Mixer_Impl that is the implementation class for AirTerminalDualDuctVAV.*/
22 class MODEL_API AirTerminalDualDuctVAV_Impl : public Mixer_Impl
23 {
24 public:
25 /** @name Constructors and Destructors */
26 //@{
27
28 AirTerminalDualDuctVAV_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
29
30 AirTerminalDualDuctVAV_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
31
32 AirTerminalDualDuctVAV_Impl(const AirTerminalDualDuctVAV_Impl& other, Model_Impl* model, bool keepHandle);
33
34 10 virtual ~AirTerminalDualDuctVAV_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 void autosize() override;
47
48 virtual void applySizingValues() 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 */
57 //@{
58
59 boost::optional<Schedule> availabilitySchedule() const;
60
61 boost::optional<double> maximumDamperAirFlowRate() const;
62
63 bool isMaximumDamperAirFlowRateAutosized() const;
64
65 double zoneMinimumAirFlowFraction() const;
66
67 boost::optional<DesignSpecificationOutdoorAir> designSpecificationOutdoorAirObject() const;
68
69 boost::optional<double> autosizedMaximumDamperAirFlowRate() const;
70
71 boost::optional<Schedule> minimumAirFlowTurndownSchedule() const;
72
73 //@}
74 /** @name Setters */
75 //@{
76
77 bool setAvailabilitySchedule(Schedule& schedule);
78
79 void resetAvailabilitySchedule();
80
81 bool setMaximumDamperAirFlowRate(boost::optional<double> maximumDamperAirFlowRate);
82
83 void autosizeMaximumDamperAirFlowRate();
84
85 bool setZoneMinimumAirFlowFraction(double zoneMinimumAirFlowFraction);
86
87 bool setDesignSpecificationOutdoorAirObject(const boost::optional<DesignSpecificationOutdoorAir>& designSpecificationOutdoorAir);
88
89 void resetDesignSpecificationOutdoorAirObject();
90
91 bool setMinimumAirFlowTurndownSchedule(Schedule& schedule);
92
93 void resetMinimumAirFlowTurndownSchedule();
94
95 //@}
96 /** @name Other */
97 //@{
98
99 virtual unsigned outletPort() const override;
100
101 virtual unsigned inletPort(unsigned branchIndex) const override;
102
103 virtual unsigned nextInletPort() const override;
104
105 unsigned newInletPortAfterBranch(unsigned branchIndex) override;
106
107 void removePortForBranch(unsigned branchIndex) override;
108
109 boost::optional<Node> hotAirInletNode() const;
110
111 boost::optional<Node> coldAirInletNode() const;
112
113 bool addToNode(Node& node) override;
114
115 std::vector<IdfObject> remove() override;
116
117 virtual ModelObject clone(Model model) const override;
118
119 bool isRemovable() const override;
120
121 //@}
122 protected:
123 private:
124 − REGISTER_LOGGER("openstudio.model.AirTerminalDualDuctVAV");
125
126 boost::optional<ModelObject> minimumAirFlowTurndownScheduleAsModelObject() const;
127
128 bool setMinimumAirFlowTurndownScheduleAsModelObject(const boost::optional<ModelObject>& modelObject);
129 };
130
131 } // namespace detail
132
133 } // namespace model
134 } // namespace openstudio
135
136 #endif // MODEL_AIRTERMINALDUALDUCTVAV_IMPL_HPP
137