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/AirLoopHVACReturnPlenum_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_AIRLOOPHVACRETURNPLENUM_IMPL_HPP
7 #define MODEL_AIRLOOPHVACRETURNPLENUM_IMPL_HPP
8
9 #include "ModelAPI.hpp"
10 #include "Mixer_Impl.hpp"
11
12 namespace openstudio {
13 namespace model {
14
15 class ThermalZone;
16 class PortList;
17 class ZoneHVACIdealLoadsAirSystem;
18
19 namespace detail {
20
21 /** AirLoopHVACReturnPlenum_Impl is a Mixer_Impl that is the implementation class for AirLoopHVACReturnPlenum.*/
22 class MODEL_API AirLoopHVACReturnPlenum_Impl : public Mixer_Impl
23 {
24
25 public:
26 AirLoopHVACReturnPlenum_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle);
27
28 AirLoopHVACReturnPlenum_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle);
29
30 AirLoopHVACReturnPlenum_Impl(const AirLoopHVACReturnPlenum_Impl& other, Model_Impl* model, bool keepHandle);
31
32 12 virtual ~AirLoopHVACReturnPlenum_Impl() override = default;
33
34 virtual const std::vector<std::string>& outputVariableNames() const override;
35
36 virtual IddObjectType iddObjectType() const override;
37
38 virtual ComponentType componentType() const override;
39 virtual std::vector<FuelType> coolingFuelTypes() const override;
40 virtual std::vector<FuelType> heatingFuelTypes() const override;
41 virtual std::vector<AppGFuelType> appGHeatingFuelTypes() const override;
42
43 boost::optional<ThermalZone> thermalZone() const;
44
45 bool setThermalZone(const boost::optional<ThermalZone>& thermalZone);
46
47 void resetThermalZone();
48
49 unsigned outletPort() const override;
50
51 PortList inducedAirOutletPortList();
52
53 unsigned inletPort(unsigned branchIndex) const override;
54
55 unsigned nextInletPort() const override;
56
57 bool addToNode(Node& node) override;
58
59 bool addBranchForZone(openstudio::model::ThermalZone& thermalZone);
60
61 bool addBranchForZone(openstudio::model::ThermalZone& thermalZone, HVACComponent& terminal);
62
63 bool addBranchForZoneImpl(openstudio::model::ThermalZone& thermalZone, boost::optional<HVACComponent>& terminal);
64
65 std::vector<IdfObject> remove() override;
66
67 std::vector<model::ZoneHVACIdealLoadsAirSystem> zoneHVACIdealLoadsAirSystems() const;
68
69 private:
70 REGISTER_LOGGER("openstudio.model.AirLoopHVACReturnPlenum");
71 };
72
73 } // namespace detail
74
75 } // namespace model
76 } // namespace openstudio
77
78 #endif // MODEL_AIRLOOPHVACRETURNPLENUM_IMPL_HPP
79