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/AirTerminalDualDuctConstantVolume_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_AIRTERMINALDUALDUCTCONSTANTVOLUME_IMPL_HPP
7 #define MODEL_AIRTERMINALDUALDUCTCONSTANTVOLUME_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 Node;
17
18 namespace detail {
19
20 /** AirTerminalDualDuctConstantVolume_Impl is a Mixer_Impl that is the implementation class for AirTerminalDualDuctConstantVolume.*/
21 class MODEL_API AirTerminalDualDuctConstantVolume_Impl : public Mixer_Impl
22 {
23 public:
24 /** @name Constructors and Destructors */
25 //@{
26
27 AirTerminalDualDuctConstantVolume_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
28
29 AirTerminalDualDuctConstantVolume_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
30
31 AirTerminalDualDuctConstantVolume_Impl(const AirTerminalDualDuctConstantVolume_Impl& other, Model_Impl* model, bool keepHandle);
32
33 13 virtual ~AirTerminalDualDuctConstantVolume_Impl() override = 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 void autosize() override;
46
47 virtual void applySizingValues() override;
48
49 virtual ComponentType componentType() const override;
50 virtual std::vector<FuelType> coolingFuelTypes() const override;
51 virtual std::vector<FuelType> heatingFuelTypes() const override;
52 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
53
54 //@}
55 /** @name Getters */
56 //@{
57
58 Schedule availabilitySchedule() const;
59
60 boost::optional<double> maximumAirFlowRate() const;
61
62 bool isMaximumAirFlowRateAutosized() const;
63
64 //@}
65 /** @name Setters */
66 //@{
67
68 // Note Schedules are passed by reference, not const reference.
69 bool setAvailabilitySchedule(Schedule& schedule);
70
71 bool setMaximumAirFlowRate(double maximumAirFlowRate);
72
73 void autosizeMaximumAirFlowRate();
74
75 //@}
76 /** @name Other */
77 //@{
78
79 virtual unsigned outletPort() const override;
80
81 virtual unsigned inletPort(unsigned branchIndex) const override;
82
83 virtual unsigned nextInletPort() const override;
84
85 virtual unsigned newInletPortAfterBranch(unsigned branchIndex) override;
86
87 void removePortForBranch(unsigned branchIndex) override;
88
89 boost::optional<Node> hotAirInletNode() const;
90
91 boost::optional<Node> coldAirInletNode() const;
92
93 bool addToNode(Node& node) override;
94
95 std::vector<IdfObject> remove() override;
96
97 virtual ModelObject clone(Model model) const override;
98
99 bool isRemovable() const override;
100
101 boost::optional<double> autosizedMaximumAirFlowRate() const;
102
103 //@}
104
105 protected:
106 private:
107 − REGISTER_LOGGER("openstudio.model.AirTerminalDualDuctConstantVolume");
108 };
109
110 } // namespace detail
111
112 } // namespace model
113 } // namespace openstudio
114
115 #endif // MODEL_AIRTERMINALDUALDUCTCONSTANTVOLUME_IMPL_HPP
116