GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 60.0% 3 / 0 / 5
Functions: 60.0% 3 / 0 / 5
Branches: -% 0 / 0 / 0

src/model/AirLoopHVACZoneMixer.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_AIRLOOPHVACZONEMIXER_HPP
7 #define MODEL_AIRLOOPHVACZONEMIXER_HPP
8
9 #include "ModelAPI.hpp"
10 #include "Mixer.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class AirflowNetworkDistributionNode;
16
17 namespace detail {
18 class AirLoopHVACZoneMixer_Impl;
19 } // namespace detail
20
21 /** AirLoopHVACZoneMixer is an interface to the EnergyPlus IDD object named "AirLoopHVAC:ZoneMixer"
22 *
23 * The purpose of this class is to simplify the construction and manipulation
24 * of zone mixer objects in EnergyPlus. Methods are built around the
25 * acts of getting the inlet and outlet ports to the mixer. Branch indexes
26 * are used to refer to the many inlet ports of the mixer
27 */
28 class MODEL_API AirLoopHVACZoneMixer : public Mixer
29 {
30
31 public:
32 /** Constructs a new AirLoopHVACZoneMixer object and places it inside the model. */
33 explicit AirLoopHVACZoneMixer(const Model& model);
34
35 3953 virtual ~AirLoopHVACZoneMixer() override = default;
36 // Default the copy and move operators because the virtual dtor is explicit
37 762 AirLoopHVACZoneMixer(const AirLoopHVACZoneMixer& other) = default;
38 1524 AirLoopHVACZoneMixer(AirLoopHVACZoneMixer&& other) = default;
39 ✗ AirLoopHVACZoneMixer& operator=(const AirLoopHVACZoneMixer&) = default;
40 ✗ AirLoopHVACZoneMixer& operator=(AirLoopHVACZoneMixer&&) = default;
41
42 unsigned outletPort() const override;
43
44 unsigned inletPort(unsigned branchIndex) const override;
45
46 unsigned nextInletPort() const override;
47
48 AirflowNetworkDistributionNode getAirflowNetworkDistributionNode();
49
50 boost::optional<AirflowNetworkDistributionNode> airflowNetworkDistributionNode() const;
51
52 static IddObjectType iddObjectType();
53
54 protected:
55 friend class Model;
56
57 friend class openstudio::IdfObject;
58
59 /// @cond
60
61 using ImplType = detail::AirLoopHVACZoneMixer_Impl;
62
63 explicit AirLoopHVACZoneMixer(std::shared_ptr<detail::AirLoopHVACZoneMixer_Impl> impl);
64
65 private:
66 REGISTER_LOGGER("openstudio.model.AirLoopHVACZoneMixer");
67
68 AirLoopHVACZoneMixer(const Handle& handle, const Model& model);
69
70 /// @endcond
71 };
72
73 /** \relates AirLoopHVACZoneMixer */
74 using OptionalAirLoopHVACZoneMixer = boost::optional<AirLoopHVACZoneMixer>;
75
76 /** \relates AirLoopHVACZoneMixer */
77 using AirLoopHVACZoneMixerVector = std::vector<AirLoopHVACZoneMixer>;
78
79 } // namespace model
80 } // namespace openstudio
81
82 #endif // MODEL_AIRLOOPHVACZONEMIXER_HPP
83