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/ZoneHVACComponent_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_ZONEHVACCOMPONENT_IMPL_HPP
7 #define MODEL_ZONEHVACCOMPONENT_IMPL_HPP
8
9 #include "HVACComponent_Impl.hpp"
10
11 namespace openstudio {
12
13 namespace model {
14
15 class Node;
16 class ThermalZone;
17 class AirLoopHVAC;
18 class HVACComponent;
19
20 namespace detail {
21
22 class MODEL_API ZoneHVACComponent_Impl : public HVACComponent_Impl
23 {
24
25 public:
26 ZoneHVACComponent_Impl(IddObjectType type, Model_Impl* model);
27
28 ZoneHVACComponent_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
29
30 ZoneHVACComponent_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
31
32 ZoneHVACComponent_Impl(const ZoneHVACComponent_Impl& other, Model_Impl* model, bool keepHandles);
33
34 727 virtual ~ZoneHVACComponent_Impl() override = default;
35
36 virtual boost::optional<ParentObject> parent() const override;
37
38 virtual std::vector<ModelObject> children() const override;
39
40 virtual const std::vector<std::string>& outputVariableNames() const override;
41
42 virtual ModelObject clone(Model model) const override;
43
44 virtual unsigned inletPort() const = 0;
45
46 virtual unsigned outletPort() const = 0;
47
48 boost::optional<Node> inletNode() const;
49
50 boost::optional<Node> outletNode() const;
51
52 virtual boost::optional<ThermalZone> thermalZone() const;
53
54 virtual bool addToThermalZone(ThermalZone& thermalZone);
55
56 virtual void removeFromThermalZone();
57
58 std::vector<openstudio::IdfObject> remove() override;
59
60 bool addToNode(Node& node) override;
61
62 boost::optional<AirLoopHVAC> airLoopHVAC() const override;
63
64 bool removeFromAirLoopHVAC();
65
66 void removeFromInletSideMixer();
67
68 std::vector<HVACComponent> edges(const boost::optional<HVACComponent>& prev) override;
69
70 boost::optional<ModelObject> airInletModelObject() const;
71
72 boost::optional<ModelObject> airOutletModelObject() const;
73
74 bool setReturnPlenum(const ThermalZone& plenumZone);
75
76 void removeReturnPlenum();
77
78 boost::optional<AirLoopHVACReturnPlenum> returnPlenum() const;
79
80 protected:
81 friend class Model_Impl;
82
83 private:
84 boost::optional<Connection> returnPlenumOutletNodeConnection() const;
85
86 REGISTER_LOGGER("openstudio.model.ZoneHVACComponent");
87 };
88
89 } // namespace detail
90
91 } // namespace model
92
93 } // namespace openstudio
94
95 #endif
96