src/model/CoilUserDefined.cpp
| 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 | #include "CoilUserDefined.hpp" | ||
| 7 | #include "CoilUserDefined_Impl.hpp" | ||
| 8 | |||
| 9 | #include "EnergyManagementSystemActuator.hpp" | ||
| 10 | #include "EnergyManagementSystemActuator_Impl.hpp" | ||
| 11 | #include "EnergyManagementSystemProgram.hpp" | ||
| 12 | #include "EnergyManagementSystemProgram_Impl.hpp" | ||
| 13 | #include "EnergyManagementSystemProgramCallingManager.hpp" | ||
| 14 | #include "EnergyManagementSystemProgramCallingManager_Impl.hpp" | ||
| 15 | #include "ThermalZone.hpp" | ||
| 16 | #include "ThermalZone_Impl.hpp" | ||
| 17 | #include "AirLoopHVACUnitarySystem.hpp" | ||
| 18 | #include "AirLoopHVACUnitarySystem_Impl.hpp" | ||
| 19 | #include "Model.hpp" | ||
| 20 | #include "Model_Impl.hpp" | ||
| 21 | |||
| 22 | #include "../utilities/core/Assert.hpp" | ||
| 23 | #include "../utilities/data/DataEnums.hpp" | ||
| 24 | |||
| 25 | #include <utilities/idd/IddEnums.hxx> | ||
| 26 | #include <utilities/idd/OS_Coil_UserDefined_FieldEnums.hxx> | ||
| 27 | |||
| 28 | #include <algorithm> | ||
| 29 | |||
| 30 | namespace openstudio { | ||
| 31 | namespace model { | ||
| 32 | |||
| 33 | namespace detail { | ||
| 34 | |||
| 35 | 14 | CoilUserDefined_Impl::CoilUserDefined_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 36 | 14 | : WaterToAirComponent_Impl(idfObject, model, keepHandle) { | |
| 37 |
4/6✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
✓ Branch 7 taken 14 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 14 times.
✗ Branch 13 not taken.
|
14 | OS_ASSERT(idfObject.iddObject().type() == CoilUserDefined::iddObjectType()); |
| 38 | 14 | } | |
| 39 | |||
| 40 | ✗ | CoilUserDefined_Impl::CoilUserDefined_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle) | |
| 41 | ✗ | : WaterToAirComponent_Impl(other, model, keepHandle) { | |
| 42 | ✗ | OS_ASSERT(other.iddObject().type() == CoilUserDefined::iddObjectType()); | |
| 43 | ✗ | } | |
| 44 | |||
| 45 | 8 | CoilUserDefined_Impl::CoilUserDefined_Impl(const CoilUserDefined_Impl& other, Model_Impl* model, bool keepHandle) | |
| 46 | 8 | : WaterToAirComponent_Impl(other, model, keepHandle) {} | |
| 47 | |||
| 48 | ✗ | const std::vector<std::string>& CoilUserDefined_Impl::outputVariableNames() const { | |
| 49 | ✗ | static std::vector<std::string> result; | |
| 50 | ✗ | return result; | |
| 51 | } | ||
| 52 | |||
| 53 | 17 | boost::optional<HVACComponent> CoilUserDefined_Impl::containingHVACComponent() const { | |
| 54 | // AirLoopHVACUnitarySystem is the only accepted type, but the coil can be used as any of the three HC, CC or suppHC | ||
| 55 |
4/4✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
✓ Branch 12 taken 9 times.
✓ Branch 13 taken 11 times.
|
20 | for (const auto& airLoopHVACUnitarySystem : this->model().getConcreteModelObjects<AirLoopHVACUnitarySystem>()) { |
| 56 |
3/3✓ Branch 1 taken 9 times.
✓ Branch 3 taken 4 times.
✓ Branch 4 taken 5 times.
|
18 | if (boost::optional<HVACComponent> coolingCoil = airLoopHVACUnitarySystem.coolingCoil()) { |
| 57 |
6/6✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 4 times.
✓ Branch 12 taken 2 times.
✓ Branch 13 taken 2 times.
|
4 | if (coolingCoil->handle() == this->handle()) { |
| 58 |
1/1✓ Branch 1 taken 2 times.
|
2 | return airLoopHVACUnitarySystem; |
| 59 | } | ||
| 60 |
3/3✓ Branch 1 taken 5 times.
✓ Branch 3 taken 3 times.
✓ Branch 4 taken 2 times.
|
10 | } else if (boost::optional<HVACComponent> coolingCoil = airLoopHVACUnitarySystem.heatingCoil()) { |
| 61 |
6/6✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 10 taken 3 times.
✓ Branch 12 taken 2 times.
✓ Branch 13 taken 1 time.
|
3 | if (coolingCoil->handle() == this->handle()) { |
| 62 |
1/1✓ Branch 1 taken 2 times.
|
2 | return airLoopHVACUnitarySystem; |
| 63 | } | ||
| 64 |
2/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
4 | } else if (boost::optional<HVACComponent> coolingCoil = airLoopHVACUnitarySystem.supplementalHeatingCoil()) { |
| 65 |
5/6✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
✓ Branch 12 taken 2 times.
✗ Branch 13 not taken.
|
2 | if (coolingCoil->handle() == this->handle()) { |
| 66 |
1/1✓ Branch 1 taken 2 times.
|
2 | return airLoopHVACUnitarySystem; |
| 67 | } | ||
| 68 | 16 | } | |
| 69 | 17 | } | |
| 70 | 11 | return boost::none; | |
| 71 | } | ||
| 72 | |||
| 73 | 71 | IddObjectType CoilUserDefined_Impl::iddObjectType() const { | |
| 74 | 71 | return CoilUserDefined::iddObjectType(); | |
| 75 | } | ||
| 76 | |||
| 77 | 100 | unsigned CoilUserDefined_Impl::airInletPort() const { | |
| 78 | 100 | return OS_Coil_UserDefinedFields::AirConnection1InletNodeName; | |
| 79 | } | ||
| 80 | |||
| 81 | 104 | unsigned CoilUserDefined_Impl::airOutletPort() const { | |
| 82 | 104 | return OS_Coil_UserDefinedFields::AirConnection1OutletNodeName; | |
| 83 | } | ||
| 84 | |||
| 85 | 132 | unsigned CoilUserDefined_Impl::waterInletPort() const { | |
| 86 | 132 | return OS_Coil_UserDefinedFields::PlantConnectionInletNodeName; | |
| 87 | } | ||
| 88 | |||
| 89 | 66 | unsigned CoilUserDefined_Impl::waterOutletPort() const { | |
| 90 | 66 | return OS_Coil_UserDefinedFields::PlantConnectionOutletNodeName; | |
| 91 | } | ||
| 92 | |||
| 93 | ✗ | std::vector<IddObjectType> CoilUserDefined_Impl::allowableChildTypes() const { | |
| 94 | std::vector<IddObjectType> result{ | ||
| 95 | IddObjectType::OS_EnergyManagementSystem_ProgramCallingManager, | ||
| 96 | IddObjectType::OS_EnergyManagementSystem_Program, | ||
| 97 | IddObjectType::OS_EnergyManagementSystem_Actuator, | ||
| 98 | IddObjectType::OS_Coil_UserDefined, | ||
| 99 | ✗ | }; | |
| 100 | ✗ | return result; | |
| 101 | } | ||
| 102 | |||
| 103 | // Returns the children object | ||
| 104 | 7 | std::vector<ModelObject> CoilUserDefined_Impl::children() const { | |
| 105 | 7 | std::vector<ModelObject> result; | |
| 106 |
2/3✓ Branch 1 taken 7 times.
✓ Branch 3 taken 7 times.
✗ Branch 4 not taken.
|
14 | if (boost::optional<EnergyManagementSystemProgramCallingManager> omsmpcm = optionalOverallModelSimulationProgramCallingManager()) { |
| 107 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | result.push_back(omsmpcm.get()); |
| 108 | 7 | } | |
| 109 |
2/3✓ Branch 1 taken 7 times.
✓ Branch 3 taken 7 times.
✗ Branch 4 not taken.
|
14 | if (boost::optional<EnergyManagementSystemProgramCallingManager> msspcm = optionalModelSetupandSizingProgramCallingManager()) { |
| 110 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | result.push_back(msspcm.get()); |
| 111 | 7 | } | |
| 112 |
2/3✓ Branch 1 taken 7 times.
✓ Branch 3 taken 7 times.
✗ Branch 4 not taken.
|
14 | if (boost::optional<EnergyManagementSystemProgram> osp = optionalOverallSimulationProgram()) { |
| 113 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | result.push_back(osp.get()); |
| 114 | 7 | } | |
| 115 |
2/3✓ Branch 1 taken 7 times.
✓ Branch 3 taken 7 times.
✗ Branch 4 not taken.
|
14 | if (boost::optional<EnergyManagementSystemProgram> isp = optionalInitializationSimulationProgram()) { |
| 116 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | result.push_back(isp.get()); |
| 117 | 7 | } | |
| 118 |
2/3✓ Branch 1 taken 7 times.
✓ Branch 3 taken 7 times.
✗ Branch 4 not taken.
|
14 | if (boost::optional<EnergyManagementSystemActuator> aota = optionalAirOutletTemperatureActuator()) { |
| 119 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | result.push_back(aota.get()); |
| 120 | 7 | } | |
| 121 |
2/3✓ Branch 1 taken 7 times.
✓ Branch 3 taken 7 times.
✗ Branch 4 not taken.
|
14 | if (boost::optional<EnergyManagementSystemActuator> aohra = optionalAirOutletHumidityRatioActuator()) { |
| 122 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | result.push_back(aohra.get()); |
| 123 | 7 | } | |
| 124 |
2/3✓ Branch 1 taken 7 times.
✓ Branch 3 taken 7 times.
✗ Branch 4 not taken.
|
14 | if (boost::optional<EnergyManagementSystemActuator> amfra = optionalAirMassFlowRateActuator()) { |
| 125 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | result.push_back(amfra.get()); |
| 126 | 7 | } | |
| 127 |
3/3✓ Branch 1 taken 7 times.
✓ Branch 3 taken 6 times.
✓ Branch 4 taken 1 time.
|
14 | if (boost::optional<EnergyManagementSystemActuator> pminmfra = optionalPlantMinimumMassFlowRateActuator()) { |
| 128 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | result.push_back(pminmfra.get()); |
| 129 | 7 | } | |
| 130 |
3/3✓ Branch 1 taken 7 times.
✓ Branch 3 taken 6 times.
✓ Branch 4 taken 1 time.
|
14 | if (boost::optional<EnergyManagementSystemActuator> pmaxmfra = optionalPlantMaximumMassFlowRateActuator()) { |
| 131 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | result.push_back(pmaxmfra.get()); |
| 132 | 7 | } | |
| 133 |
3/3✓ Branch 1 taken 7 times.
✓ Branch 3 taken 6 times.
✓ Branch 4 taken 1 time.
|
14 | if (boost::optional<EnergyManagementSystemActuator> pdvfra = optionalPlantDesignVolumeFlowRateActuator()) { |
| 134 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | result.push_back(pdvfra.get()); |
| 135 | 7 | } | |
| 136 |
3/3✓ Branch 1 taken 7 times.
✓ Branch 3 taken 6 times.
✓ Branch 4 taken 1 time.
|
14 | if (boost::optional<EnergyManagementSystemActuator> pmmfra = optionalPlantMassFlowRateActuator()) { |
| 137 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | result.push_back(pmmfra.get()); |
| 138 | 7 | } | |
| 139 |
3/3✓ Branch 1 taken 7 times.
✓ Branch 3 taken 6 times.
✓ Branch 4 taken 1 time.
|
14 | if (boost::optional<EnergyManagementSystemActuator> pota = optionalPlantOutletTemperatureActuator()) { |
| 140 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
6 | result.push_back(pota.get()); |
| 141 | 7 | } | |
| 142 | 7 | return result; | |
| 143 | ✗ | } | |
| 144 | |||
| 145 | 2 | ModelObject CoilUserDefined_Impl::clone(Model model) const { | |
| 146 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
|
2 | auto newCoilUserDefined = ModelObject_Impl::clone(model).cast<CoilUserDefined>(); // NOLINT(bugprone-parent-virtual-call |
| 147 | //airOutletTemperatureActuator | ||
| 148 |
2/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
4 | if (boost::optional<EnergyManagementSystemActuator> object = optionalAirOutletTemperatureActuator()) { |
| 149 |
4/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
|
2 | auto objectClone = object.get().clone(model).cast<EnergyManagementSystemActuator>(); |
| 150 |
1/1✓ Branch 1 taken 2 times.
|
2 | objectClone.setActuatedComponent(newCoilUserDefined); |
| 151 |
1/1✓ Branch 1 taken 2 times.
|
2 | newCoilUserDefined.setAirOutletTemperatureActuator(objectClone); |
| 152 | 4 | } | |
| 153 | //airOutletHumidityRatioActuator | ||
| 154 |
2/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
4 | if (boost::optional<EnergyManagementSystemActuator> object = optionalAirOutletHumidityRatioActuator()) { |
| 155 |
4/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
|
2 | auto objectClone = object.get().clone(model).cast<EnergyManagementSystemActuator>(); |
| 156 |
1/1✓ Branch 1 taken 2 times.
|
2 | objectClone.setActuatedComponent(newCoilUserDefined); |
| 157 |
1/1✓ Branch 1 taken 2 times.
|
2 | newCoilUserDefined.setAirOutletHumidityRatioActuator(objectClone); |
| 158 | 4 | } | |
| 159 | //airMassFlowRateActuator | ||
| 160 |
2/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
4 | if (boost::optional<EnergyManagementSystemActuator> object = optionalAirMassFlowRateActuator()) { |
| 161 |
4/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
|
2 | auto objectClone = object.get().clone(model).cast<EnergyManagementSystemActuator>(); |
| 162 |
1/1✓ Branch 1 taken 2 times.
|
2 | objectClone.setActuatedComponent(newCoilUserDefined); |
| 163 |
1/1✓ Branch 1 taken 2 times.
|
2 | newCoilUserDefined.setAirMassFlowRateActuator(objectClone); |
| 164 | 4 | } | |
| 165 | //plantMinimumMassFlowRateActuator | ||
| 166 |
2/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
4 | if (boost::optional<EnergyManagementSystemActuator> object = optionalPlantMinimumMassFlowRateActuator()) { |
| 167 |
4/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
|
2 | auto objectClone = object.get().clone(model).cast<EnergyManagementSystemActuator>(); |
| 168 |
1/1✓ Branch 1 taken 2 times.
|
2 | objectClone.setActuatedComponent(newCoilUserDefined); |
| 169 |
1/1✓ Branch 1 taken 2 times.
|
2 | newCoilUserDefined.setPlantMinimumMassFlowRateActuator(objectClone); |
| 170 | 4 | } | |
| 171 | //plantMaximumMassFlowRateActuator | ||
| 172 |
2/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
4 | if (boost::optional<EnergyManagementSystemActuator> object = optionalPlantMaximumMassFlowRateActuator()) { |
| 173 |
4/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
|
2 | auto objectClone = object.get().clone(model).cast<EnergyManagementSystemActuator>(); |
| 174 |
1/1✓ Branch 1 taken 2 times.
|
2 | objectClone.setActuatedComponent(newCoilUserDefined); |
| 175 |
1/1✓ Branch 1 taken 2 times.
|
2 | newCoilUserDefined.setPlantMaximumMassFlowRateActuator(objectClone); |
| 176 | 4 | } | |
| 177 | //plantDesignVolumeFlowRateActuator | ||
| 178 |
2/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
4 | if (boost::optional<EnergyManagementSystemActuator> object = optionalPlantDesignVolumeFlowRateActuator()) { |
| 179 |
4/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
|
2 | auto objectClone = object.get().clone(model).cast<EnergyManagementSystemActuator>(); |
| 180 |
1/1✓ Branch 1 taken 2 times.
|
2 | objectClone.setActuatedComponent(newCoilUserDefined); |
| 181 |
1/1✓ Branch 1 taken 2 times.
|
2 | newCoilUserDefined.setPlantDesignVolumeFlowRateActuator(objectClone); |
| 182 | 4 | } | |
| 183 | //plantMassFlowRateActuator | ||
| 184 |
2/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
4 | if (boost::optional<EnergyManagementSystemActuator> object = optionalPlantMassFlowRateActuator()) { |
| 185 |
4/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
|
2 | auto objectClone = object.get().clone(model).cast<EnergyManagementSystemActuator>(); |
| 186 |
1/1✓ Branch 1 taken 2 times.
|
2 | objectClone.setActuatedComponent(newCoilUserDefined); |
| 187 |
1/1✓ Branch 1 taken 2 times.
|
2 | newCoilUserDefined.setPlantMassFlowRateActuator(objectClone); |
| 188 | 4 | } | |
| 189 | //plantOutletTemperatureActuator | ||
| 190 |
2/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
4 | if (boost::optional<EnergyManagementSystemActuator> object = optionalPlantOutletTemperatureActuator()) { |
| 191 |
4/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
|
2 | auto objectClone = object.get().clone(model).cast<EnergyManagementSystemActuator>(); |
| 192 |
1/1✓ Branch 1 taken 2 times.
|
2 | objectClone.setActuatedComponent(newCoilUserDefined); |
| 193 |
1/1✓ Branch 1 taken 2 times.
|
2 | newCoilUserDefined.setPlantOutletTemperatureActuator(objectClone); |
| 194 | 4 | } | |
| 195 | //overallModelSimulationProgramCallingManager | ||
| 196 |
2/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
4 | if (boost::optional<EnergyManagementSystemProgramCallingManager> object = optionalOverallModelSimulationProgramCallingManager()) { |
| 197 |
4/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
|
2 | auto objectClone = object.get().clone(model).cast<EnergyManagementSystemProgramCallingManager>(); |
| 198 | //clone the program referenced in the callingManager | ||
| 199 |
2/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
4 | if (boost::optional<EnergyManagementSystemProgram> program = optionalOverallSimulationProgram()) { |
| 200 |
4/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
|
2 | auto cloneProgram = program.get().clone(model).cast<EnergyManagementSystemProgram>(); |
| 201 | //add cloned program to cloned PCUD | ||
| 202 |
1/1✓ Branch 1 taken 2 times.
|
2 | newCoilUserDefined.setOverallSimulationProgram(cloneProgram); |
| 203 | //add cloned program to cloned programCallingManager | ||
| 204 |
1/1✓ Branch 1 taken 2 times.
|
2 | objectClone.erasePrograms(); |
| 205 |
1/1✓ Branch 1 taken 2 times.
|
2 | objectClone.addProgram(cloneProgram); |
| 206 | 4 | } | |
| 207 |
1/1✓ Branch 1 taken 2 times.
|
2 | newCoilUserDefined.setOverallModelSimulationProgramCallingManager(objectClone); |
| 208 | 4 | } | |
| 209 | //modelSetupandSizingProgramCallingManager | ||
| 210 |
2/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
4 | if (boost::optional<EnergyManagementSystemProgramCallingManager> object = optionalModelSetupandSizingProgramCallingManager()) { |
| 211 |
4/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
|
2 | auto objectClone = object.get().clone(model).cast<EnergyManagementSystemProgramCallingManager>(); |
| 212 | //clone the program referenced in the callingManager | ||
| 213 |
2/3✓ Branch 1 taken 2 times.
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
|
4 | if (boost::optional<EnergyManagementSystemProgram> program = optionalInitializationSimulationProgram()) { |
| 214 |
4/4✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
|
2 | auto cloneProgram = program.get().clone(model).cast<EnergyManagementSystemProgram>(); |
| 215 | //add cloned program to cloned PCUD | ||
| 216 |
1/1✓ Branch 1 taken 2 times.
|
2 | newCoilUserDefined.setInitializationSimulationProgram(cloneProgram); |
| 217 | //add cloned program to cloned programCallingManager | ||
| 218 |
1/1✓ Branch 1 taken 2 times.
|
2 | objectClone.erasePrograms(); |
| 219 |
1/1✓ Branch 1 taken 2 times.
|
2 | objectClone.addProgram(cloneProgram); |
| 220 | 4 | } | |
| 221 |
1/1✓ Branch 1 taken 2 times.
|
2 | newCoilUserDefined.setModelSetupandSizingProgramCallingManager(objectClone); |
| 222 | 4 | } | |
| 223 | // ambientZone | ||
| 224 |
1/1✓ Branch 1 taken 2 times.
|
2 | newCoilUserDefined.resetAmbientZone(); |
| 225 | |||
| 226 | 4 | return std::move(newCoilUserDefined); | |
| 227 | 2 | } | |
| 228 | |||
| 229 | 12 | EnergyManagementSystemProgramCallingManager CoilUserDefined_Impl::overallModelSimulationProgramCallingManager() const { | |
| 230 |
1/1✓ Branch 1 taken 12 times.
|
12 | boost::optional<EnergyManagementSystemProgramCallingManager> value = optionalOverallModelSimulationProgramCallingManager(); |
| 231 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 12 times.
|
12 | if (!value) { |
| 232 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Overall Model Simulation Program Calling Manager attached."); | |
| 233 | } | ||
| 234 |
2/2✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
|
24 | return value.get(); |
| 235 | 12 | } | |
| 236 | |||
| 237 | 12 | EnergyManagementSystemProgramCallingManager CoilUserDefined_Impl::modelSetupandSizingProgramCallingManager() const { | |
| 238 |
1/1✓ Branch 1 taken 12 times.
|
12 | boost::optional<EnergyManagementSystemProgramCallingManager> value = optionalModelSetupandSizingProgramCallingManager(); |
| 239 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 12 times.
|
12 | if (!value) { |
| 240 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Model Setupand Sizing Program Calling Manager attached."); | |
| 241 | } | ||
| 242 |
2/2✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
|
24 | return value.get(); |
| 243 | 12 | } | |
| 244 | |||
| 245 | 17 | int CoilUserDefined_Impl::numberofAirConnections() const { | |
| 246 |
11/16✓ Branch 1 taken 17 times.
✓ Branch 4 taken 8 times.
✓ Branch 5 taken 9 times.
✓ Branch 7 taken 8 times.
✓ Branch 10 taken 3 times.
✓ Branch 11 taken 5 times.
✓ Branch 12 taken 8 times.
✓ Branch 13 taken 9 times.
✓ Branch 15 taken 17 times.
✗ Branch 16 not taken.
✓ Branch 18 taken 12 times.
✓ Branch 19 taken 5 times.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 23 not taken.
✗ Branch 24 not taken.
|
42 | if (airLoopHVAC() || containingHVACComponent()) { |
| 247 | 12 | return 1; | |
| 248 | } | ||
| 249 | 5 | return 0; | |
| 250 | } | ||
| 251 | |||
| 252 | 10 | boost::optional<ThermalZone> CoilUserDefined_Impl::ambientZone() const { | |
| 253 |
2/2✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
|
10 | return getObject<ModelObject>().getModelObjectTarget<ThermalZone>(OS_Coil_UserDefinedFields::AmbientZoneName); |
| 254 | } | ||
| 255 | |||
| 256 | 8 | EnergyManagementSystemProgram CoilUserDefined_Impl::overallSimulationProgram() const { | |
| 257 |
1/1✓ Branch 1 taken 8 times.
|
8 | boost::optional<EnergyManagementSystemProgram> value = optionalOverallSimulationProgram(); |
| 258 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 8 times.
|
8 | if (!value) { |
| 259 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Overall Simulation Program attached."); | |
| 260 | } | ||
| 261 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
16 | return value.get(); |
| 262 | 8 | } | |
| 263 | |||
| 264 | 8 | EnergyManagementSystemProgram CoilUserDefined_Impl::initializationSimulationProgram() const { | |
| 265 |
1/1✓ Branch 1 taken 8 times.
|
8 | boost::optional<EnergyManagementSystemProgram> value = optionalInitializationSimulationProgram(); |
| 266 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 8 times.
|
8 | if (!value) { |
| 267 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Initialization Simulation Program attached."); | |
| 268 | } | ||
| 269 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
16 | return value.get(); |
| 270 | 8 | } | |
| 271 | |||
| 272 | 14 | EnergyManagementSystemActuator CoilUserDefined_Impl::airOutletTemperatureActuator() const { | |
| 273 |
1/1✓ Branch 1 taken 14 times.
|
14 | boost::optional<EnergyManagementSystemActuator> value = optionalAirOutletTemperatureActuator(); |
| 274 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 14 times.
|
14 | if (!value) { |
| 275 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Air Outlet Temperature Actuator attached."); | |
| 276 | } | ||
| 277 |
2/2✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
|
28 | return value.get(); |
| 278 | 14 | } | |
| 279 | |||
| 280 | 14 | EnergyManagementSystemActuator CoilUserDefined_Impl::airOutletHumidityRatioActuator() const { | |
| 281 |
1/1✓ Branch 1 taken 14 times.
|
14 | boost::optional<EnergyManagementSystemActuator> value = optionalAirOutletHumidityRatioActuator(); |
| 282 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 14 times.
|
14 | if (!value) { |
| 283 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Air Outlet Humidity Ratio Actuator attached."); | |
| 284 | } | ||
| 285 |
2/2✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
|
28 | return value.get(); |
| 286 | 14 | } | |
| 287 | |||
| 288 | 14 | EnergyManagementSystemActuator CoilUserDefined_Impl::airMassFlowRateActuator() const { | |
| 289 |
1/1✓ Branch 1 taken 14 times.
|
14 | boost::optional<EnergyManagementSystemActuator> value = optionalAirMassFlowRateActuator(); |
| 290 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 14 times.
|
14 | if (!value) { |
| 291 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Air Mass Flow Rate Actuator attached."); | |
| 292 | } | ||
| 293 |
2/2✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
|
28 | return value.get(); |
| 294 | 14 | } | |
| 295 | |||
| 296 | 15 | EnergyManagementSystemActuator CoilUserDefined_Impl::plantMinimumMassFlowRateActuator() const { | |
| 297 |
1/1✓ Branch 1 taken 15 times.
|
15 | boost::optional<EnergyManagementSystemActuator> value = optionalPlantMinimumMassFlowRateActuator(); |
| 298 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 15 times.
|
15 | if (!value) { |
| 299 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Plant Minimum Mass Flow Rate Actuator attached."); | |
| 300 | } | ||
| 301 |
2/2✓ Branch 1 taken 15 times.
✓ Branch 4 taken 15 times.
|
30 | return value.get(); |
| 302 | 15 | } | |
| 303 | |||
| 304 | 15 | EnergyManagementSystemActuator CoilUserDefined_Impl::plantMaximumMassFlowRateActuator() const { | |
| 305 |
1/1✓ Branch 1 taken 15 times.
|
15 | boost::optional<EnergyManagementSystemActuator> value = optionalPlantMaximumMassFlowRateActuator(); |
| 306 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 15 times.
|
15 | if (!value) { |
| 307 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Plant Maximum Mass Flow Rate Actuator attached."); | |
| 308 | } | ||
| 309 |
2/2✓ Branch 1 taken 15 times.
✓ Branch 4 taken 15 times.
|
30 | return value.get(); |
| 310 | 15 | } | |
| 311 | |||
| 312 | 15 | EnergyManagementSystemActuator CoilUserDefined_Impl::plantDesignVolumeFlowRateActuator() const { | |
| 313 |
1/1✓ Branch 1 taken 15 times.
|
15 | boost::optional<EnergyManagementSystemActuator> value = optionalPlantDesignVolumeFlowRateActuator(); |
| 314 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 15 times.
|
15 | if (!value) { |
| 315 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Plant Design Volume Flow Rate Actuator attached."); | |
| 316 | } | ||
| 317 |
2/2✓ Branch 1 taken 15 times.
✓ Branch 4 taken 15 times.
|
30 | return value.get(); |
| 318 | 15 | } | |
| 319 | |||
| 320 | 15 | EnergyManagementSystemActuator CoilUserDefined_Impl::plantOutletTemperatureActuator() const { | |
| 321 |
1/1✓ Branch 1 taken 15 times.
|
15 | boost::optional<EnergyManagementSystemActuator> value = optionalPlantOutletTemperatureActuator(); |
| 322 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 15 times.
|
15 | if (!value) { |
| 323 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Plant Outlet Temperature Actuator attached."); | |
| 324 | } | ||
| 325 |
2/2✓ Branch 1 taken 15 times.
✓ Branch 4 taken 15 times.
|
30 | return value.get(); |
| 326 | 15 | } | |
| 327 | |||
| 328 | 15 | EnergyManagementSystemActuator CoilUserDefined_Impl::plantMassFlowRateActuator() const { | |
| 329 |
1/1✓ Branch 1 taken 15 times.
|
15 | boost::optional<EnergyManagementSystemActuator> value = optionalPlantMassFlowRateActuator(); |
| 330 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 15 times.
|
15 | if (!value) { |
| 331 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Plant Mass Flow Rate Actuator attached."); | |
| 332 | } | ||
| 333 |
2/2✓ Branch 1 taken 15 times.
✓ Branch 4 taken 15 times.
|
30 | return value.get(); |
| 334 | 15 | } | |
| 335 | |||
| 336 | 18 | bool CoilUserDefined_Impl::setOverallModelSimulationProgramCallingManager( | |
| 337 | const EnergyManagementSystemProgramCallingManager& emsProgramCallingManager) { | ||
| 338 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
|
18 | const bool result = setPointer(OS_Coil_UserDefinedFields::OverallModelSimulationProgramCallingManagerName, emsProgramCallingManager.handle()); |
| 339 | 18 | return result; | |
| 340 | } | ||
| 341 | |||
| 342 | bool | ||
| 343 | 18 | CoilUserDefined_Impl::setModelSetupandSizingProgramCallingManager(const EnergyManagementSystemProgramCallingManager& emsProgramCallingManager) { | |
| 344 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
|
18 | const bool result = setPointer(OS_Coil_UserDefinedFields::ModelSetupandSizingProgramCallingManagerName, emsProgramCallingManager.handle()); |
| 345 | 18 | return result; | |
| 346 | } | ||
| 347 | |||
| 348 | 4 | bool CoilUserDefined_Impl::setAmbientZone(const ThermalZone& thermalZone) { | |
| 349 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | const bool result = setPointer(OS_Coil_UserDefinedFields::AmbientZoneName, thermalZone.handle()); |
| 350 | 4 | return result; | |
| 351 | } | ||
| 352 | |||
| 353 | 3 | void CoilUserDefined_Impl::resetAmbientZone() { | |
| 354 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | const bool result = setString(OS_Coil_UserDefinedFields::AmbientZoneName, ""); |
| 355 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
|
3 | OS_ASSERT(result); |
| 356 | 3 | } | |
| 357 | |||
| 358 | 18 | bool CoilUserDefined_Impl::setOverallSimulationProgram(const EnergyManagementSystemProgram& emsProgram) { | |
| 359 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
|
18 | const bool result = setPointer(OS_Coil_UserDefinedFields::OverallSimulationProgramName, emsProgram.handle()); |
| 360 | 18 | return result; | |
| 361 | } | ||
| 362 | |||
| 363 | 18 | bool CoilUserDefined_Impl::setInitializationSimulationProgram(const EnergyManagementSystemProgram& emsProgram) { | |
| 364 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
|
18 | const bool result = setPointer(OS_Coil_UserDefinedFields::InitializationSimulationProgramName, emsProgram.handle()); |
| 365 | 18 | return result; | |
| 366 | } | ||
| 367 | |||
| 368 | 18 | bool CoilUserDefined_Impl::setAirOutletTemperatureActuator(const EnergyManagementSystemActuator& emsActuator) { | |
| 369 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
|
18 | const bool result = setPointer(OS_Coil_UserDefinedFields::AirOutletTemperatureActuator, emsActuator.handle()); |
| 370 | 18 | return result; | |
| 371 | } | ||
| 372 | |||
| 373 | 18 | bool CoilUserDefined_Impl::setAirOutletHumidityRatioActuator(const EnergyManagementSystemActuator& emsActuator) { | |
| 374 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
|
18 | const bool result = setPointer(OS_Coil_UserDefinedFields::AirOutletHumidityRatioActuator, emsActuator.handle()); |
| 375 | 18 | return result; | |
| 376 | } | ||
| 377 | |||
| 378 | 18 | bool CoilUserDefined_Impl::setAirMassFlowRateActuator(const EnergyManagementSystemActuator& emsActuator) { | |
| 379 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
|
18 | const bool result = setPointer(OS_Coil_UserDefinedFields::AirMassFlowRateActuator, emsActuator.handle()); |
| 380 | 18 | return result; | |
| 381 | } | ||
| 382 | |||
| 383 | 18 | bool CoilUserDefined_Impl::setPlantMinimumMassFlowRateActuator(const EnergyManagementSystemActuator& emsActuator) { | |
| 384 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
|
18 | const bool result = setPointer(OS_Coil_UserDefinedFields::PlantMinimumMassFlowRateActuator, emsActuator.handle()); |
| 385 | 18 | return result; | |
| 386 | } | ||
| 387 | |||
| 388 | 18 | bool CoilUserDefined_Impl::setPlantMaximumMassFlowRateActuator(const EnergyManagementSystemActuator& emsActuator) { | |
| 389 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
|
18 | const bool result = setPointer(OS_Coil_UserDefinedFields::PlantMaximumMassFlowRateActuator, emsActuator.handle()); |
| 390 | 18 | return result; | |
| 391 | } | ||
| 392 | |||
| 393 | 18 | bool CoilUserDefined_Impl::setPlantDesignVolumeFlowRateActuator(const EnergyManagementSystemActuator& emsActuator) { | |
| 394 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
|
18 | const bool result = setPointer(OS_Coil_UserDefinedFields::PlantDesignVolumeFlowRateActuator, emsActuator.handle()); |
| 395 | 18 | return result; | |
| 396 | } | ||
| 397 | |||
| 398 | 18 | bool CoilUserDefined_Impl::setPlantOutletTemperatureActuator(const EnergyManagementSystemActuator& emsActuator) { | |
| 399 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
|
18 | const bool result = setPointer(OS_Coil_UserDefinedFields::PlantOutletTemperatureActuator, emsActuator.handle()); |
| 400 | 18 | return result; | |
| 401 | } | ||
| 402 | |||
| 403 | 18 | bool CoilUserDefined_Impl::setPlantMassFlowRateActuator(const EnergyManagementSystemActuator& emsActuator) { | |
| 404 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
|
18 | const bool result = setPointer(OS_Coil_UserDefinedFields::PlantMassFlowRateActuator, emsActuator.handle()); |
| 405 | 18 | return result; | |
| 406 | } | ||
| 407 | |||
| 408 | 21 | boost::optional<EnergyManagementSystemProgramCallingManager> CoilUserDefined_Impl::optionalOverallModelSimulationProgramCallingManager() const { | |
| 409 |
1/1✓ Branch 1 taken 21 times.
|
42 | return getObject<ModelObject>().getModelObjectTarget<EnergyManagementSystemProgramCallingManager>( |
| 410 |
1/1✓ Branch 1 taken 21 times.
|
42 | OS_Coil_UserDefinedFields::OverallModelSimulationProgramCallingManagerName); |
| 411 | } | ||
| 412 | |||
| 413 | 21 | boost::optional<EnergyManagementSystemProgramCallingManager> CoilUserDefined_Impl::optionalModelSetupandSizingProgramCallingManager() const { | |
| 414 |
1/1✓ Branch 1 taken 21 times.
|
42 | return getObject<ModelObject>().getModelObjectTarget<EnergyManagementSystemProgramCallingManager>( |
| 415 |
1/1✓ Branch 1 taken 21 times.
|
42 | OS_Coil_UserDefinedFields::ModelSetupandSizingProgramCallingManagerName); |
| 416 | } | ||
| 417 | |||
| 418 | 17 | boost::optional<EnergyManagementSystemProgram> CoilUserDefined_Impl::optionalOverallSimulationProgram() const { | |
| 419 |
2/2✓ Branch 1 taken 17 times.
✓ Branch 4 taken 17 times.
|
17 | return getObject<ModelObject>().getModelObjectTarget<EnergyManagementSystemProgram>(OS_Coil_UserDefinedFields::OverallSimulationProgramName); |
| 420 | } | ||
| 421 | |||
| 422 | 17 | boost::optional<EnergyManagementSystemProgram> CoilUserDefined_Impl::optionalInitializationSimulationProgram() const { | |
| 423 |
1/1✓ Branch 1 taken 17 times.
|
34 | return getObject<ModelObject>().getModelObjectTarget<EnergyManagementSystemProgram>( |
| 424 |
1/1✓ Branch 1 taken 17 times.
|
34 | OS_Coil_UserDefinedFields::InitializationSimulationProgramName); |
| 425 | } | ||
| 426 | |||
| 427 | 23 | boost::optional<EnergyManagementSystemActuator> CoilUserDefined_Impl::optionalAirOutletTemperatureActuator() const { | |
| 428 |
2/2✓ Branch 1 taken 23 times.
✓ Branch 4 taken 23 times.
|
23 | return getObject<ModelObject>().getModelObjectTarget<EnergyManagementSystemActuator>(OS_Coil_UserDefinedFields::AirOutletTemperatureActuator); |
| 429 | } | ||
| 430 | |||
| 431 | 23 | boost::optional<EnergyManagementSystemActuator> CoilUserDefined_Impl::optionalAirOutletHumidityRatioActuator() const { | |
| 432 |
2/2✓ Branch 1 taken 23 times.
✓ Branch 4 taken 23 times.
|
23 | return getObject<ModelObject>().getModelObjectTarget<EnergyManagementSystemActuator>(OS_Coil_UserDefinedFields::AirOutletHumidityRatioActuator); |
| 433 | } | ||
| 434 | |||
| 435 | 23 | boost::optional<EnergyManagementSystemActuator> CoilUserDefined_Impl::optionalAirMassFlowRateActuator() const { | |
| 436 |
2/2✓ Branch 1 taken 23 times.
✓ Branch 4 taken 23 times.
|
23 | return getObject<ModelObject>().getModelObjectTarget<EnergyManagementSystemActuator>(OS_Coil_UserDefinedFields::AirMassFlowRateActuator); |
| 437 | } | ||
| 438 | |||
| 439 | 24 | boost::optional<EnergyManagementSystemActuator> CoilUserDefined_Impl::optionalPlantMinimumMassFlowRateActuator() const { | |
| 440 |
1/1✓ Branch 1 taken 24 times.
|
48 | return getObject<ModelObject>().getModelObjectTarget<EnergyManagementSystemActuator>( |
| 441 |
1/1✓ Branch 1 taken 24 times.
|
48 | OS_Coil_UserDefinedFields::PlantMinimumMassFlowRateActuator); |
| 442 | } | ||
| 443 | |||
| 444 | 24 | boost::optional<EnergyManagementSystemActuator> CoilUserDefined_Impl::optionalPlantMaximumMassFlowRateActuator() const { | |
| 445 |
1/1✓ Branch 1 taken 24 times.
|
48 | return getObject<ModelObject>().getModelObjectTarget<EnergyManagementSystemActuator>( |
| 446 |
1/1✓ Branch 1 taken 24 times.
|
48 | OS_Coil_UserDefinedFields::PlantMaximumMassFlowRateActuator); |
| 447 | } | ||
| 448 | |||
| 449 | 24 | boost::optional<EnergyManagementSystemActuator> CoilUserDefined_Impl::optionalPlantDesignVolumeFlowRateActuator() const { | |
| 450 |
1/1✓ Branch 1 taken 24 times.
|
48 | return getObject<ModelObject>().getModelObjectTarget<EnergyManagementSystemActuator>( |
| 451 |
1/1✓ Branch 1 taken 24 times.
|
48 | OS_Coil_UserDefinedFields::PlantDesignVolumeFlowRateActuator); |
| 452 | } | ||
| 453 | |||
| 454 | 24 | boost::optional<EnergyManagementSystemActuator> CoilUserDefined_Impl::optionalPlantOutletTemperatureActuator() const { | |
| 455 |
2/2✓ Branch 1 taken 24 times.
✓ Branch 4 taken 24 times.
|
24 | return getObject<ModelObject>().getModelObjectTarget<EnergyManagementSystemActuator>(OS_Coil_UserDefinedFields::PlantOutletTemperatureActuator); |
| 456 | } | ||
| 457 | |||
| 458 | 24 | boost::optional<EnergyManagementSystemActuator> CoilUserDefined_Impl::optionalPlantMassFlowRateActuator() const { | |
| 459 |
2/2✓ Branch 1 taken 24 times.
✓ Branch 4 taken 24 times.
|
24 | return getObject<ModelObject>().getModelObjectTarget<EnergyManagementSystemActuator>(OS_Coil_UserDefinedFields::PlantMassFlowRateActuator); |
| 460 | } | ||
| 461 | |||
| 462 | 1 | void CoilUserDefined_Impl::renameEMSSubComponents() { | |
| 463 |
1/1✓ Branch 1 taken 1 time.
|
1 | auto newName = nameString(); |
| 464 | 1 | std::replace(newName.begin(), newName.end(), ' ', '_'); | |
| 465 |
1/1✓ Branch 1 taken 1 time.
|
1 | newName += "_"; |
| 466 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | overallModelSimulationProgramCallingManager().setName(newName + "overallModelSimulationProgramCallingManager"); |
| 467 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | modelSetupandSizingProgramCallingManager().setName(newName + "modelSetupandSizingProgramCallingManager"); |
| 468 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | overallSimulationProgram().setName(newName + "overallSimulationProgram"); |
| 469 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | initializationSimulationProgram().setName(newName + "initializationSimulationProgram"); |
| 470 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | airOutletTemperatureActuator().setName(newName + "airOutletTemperatureActuator"); |
| 471 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | airOutletHumidityRatioActuator().setName(newName + "airOutletHumidityRatioActuator"); |
| 472 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | airMassFlowRateActuator().setName(newName + "airMassFlowRateActuator"); |
| 473 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | plantMinimumMassFlowRateActuator().setName(newName + "plantMinimumMassFlowRateActuator"); |
| 474 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | plantMaximumMassFlowRateActuator().setName(newName + "plantMaximumMassFlowRateActuator"); |
| 475 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | plantDesignVolumeFlowRateActuator().setName(newName + "plantDesignVolumeFlowRateActuator"); |
| 476 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | plantMassFlowRateActuator().setName(newName + "plantMassFlowRateActuator"); |
| 477 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
1 | plantOutletTemperatureActuator().setName(newName + "plantOutletTemperatureActuator"); |
| 478 | 1 | } | |
| 479 | |||
| 480 | ✗ | ComponentType CoilUserDefined_Impl::componentType() const { | |
| 481 | ✗ | return ComponentType::Both; // TODO: Really not sure how to determine this... | |
| 482 | } | ||
| 483 | |||
| 484 | ✗ | std::vector<FuelType> CoilUserDefined_Impl::coolingFuelTypes() const { | |
| 485 | ✗ | return {}; // TODO: Really not sure how to determine this... | |
| 486 | } | ||
| 487 | |||
| 488 | ✗ | std::vector<FuelType> CoilUserDefined_Impl::heatingFuelTypes() const { | |
| 489 | ✗ | return {}; // TODO: Really not sure how to determine this... | |
| 490 | } | ||
| 491 | |||
| 492 | ✗ | std::vector<AppGFuelType> CoilUserDefined_Impl::appGHeatingFuelTypes() const { | |
| 493 | ✗ | return {}; // TODO: Really not sure how to determine this... | |
| 494 | } | ||
| 495 | |||
| 496 | } // namespace detail | ||
| 497 | |||
| 498 | 14 | CoilUserDefined::CoilUserDefined(const Model& model) : WaterToAirComponent(CoilUserDefined::iddObjectType(), model) { | |
| 499 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 14 times.
✗ Branch 5 not taken.
|
14 | OS_ASSERT(getImpl<detail::CoilUserDefined_Impl>()); |
| 500 | |||
| 501 | 14 | bool ok = true; | |
| 502 | // setup required Actuators | ||
| 503 |
4/4✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
✓ Branch 7 taken 14 times.
✓ Branch 10 taken 14 times.
|
56 | EnergyManagementSystemActuator aota(this->cast<ModelObject>(), "Air Connection 1", "Outlet Temperature"); |
| 504 |
2/2✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
|
14 | aota.setName("airOutletTemperature"); |
| 505 |
1/1✓ Branch 1 taken 14 times.
|
14 | ok = setAirOutletTemperatureActuator(aota); |
| 506 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
|
14 | OS_ASSERT(ok); |
| 507 |
4/4✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
✓ Branch 7 taken 14 times.
✓ Branch 10 taken 14 times.
|
56 | EnergyManagementSystemActuator aohra(this->cast<ModelObject>(), "Air Connection 1", "Outlet Humidity Ratio"); |
| 508 |
2/2✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
|
14 | aohra.setName("airOutletHumidityRatio"); |
| 509 |
1/1✓ Branch 1 taken 14 times.
|
14 | ok = setAirOutletHumidityRatioActuator(aohra); |
| 510 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
|
14 | OS_ASSERT(ok); |
| 511 |
4/4✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
✓ Branch 7 taken 14 times.
✓ Branch 10 taken 14 times.
|
56 | EnergyManagementSystemActuator amfra(this->cast<ModelObject>(), "Air Connection 1", "Mass Flow Rate"); |
| 512 |
2/2✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
|
14 | amfra.setName("airMassFlowRate"); |
| 513 |
1/1✓ Branch 1 taken 14 times.
|
14 | ok = setAirMassFlowRateActuator(amfra); |
| 514 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
|
14 | OS_ASSERT(ok); |
| 515 |
4/4✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
✓ Branch 7 taken 14 times.
✓ Branch 10 taken 14 times.
|
56 | EnergyManagementSystemActuator pminmfra(this->cast<ModelObject>(), "Plant Connection", "Minimum Mass Flow Rate"); |
| 516 |
2/2✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
|
14 | pminmfra.setName("plantMinimumMassFlowRate"); |
| 517 |
1/1✓ Branch 1 taken 14 times.
|
14 | ok = setPlantMinimumMassFlowRateActuator(pminmfra); |
| 518 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
|
14 | OS_ASSERT(ok); |
| 519 |
4/4✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
✓ Branch 7 taken 14 times.
✓ Branch 10 taken 14 times.
|
56 | EnergyManagementSystemActuator pmaxmfra(this->cast<ModelObject>(), "Plant Connection", "Maximum Mass Flow Rate"); |
| 520 |
2/2✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
|
14 | pmaxmfra.setName("plantMaximumMassFlowRate"); |
| 521 |
1/1✓ Branch 1 taken 14 times.
|
14 | ok = setPlantMaximumMassFlowRateActuator(pmaxmfra); |
| 522 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
|
14 | OS_ASSERT(ok); |
| 523 |
4/4✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
✓ Branch 7 taken 14 times.
✓ Branch 10 taken 14 times.
|
56 | EnergyManagementSystemActuator pdvfra(this->cast<ModelObject>(), "Plant Connection", "Design Volume Flow Rate"); |
| 524 |
2/2✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
|
14 | pdvfra.setName("plantDesignVolumeFlowRate"); |
| 525 |
1/1✓ Branch 1 taken 14 times.
|
14 | ok = setPlantDesignVolumeFlowRateActuator(pdvfra); |
| 526 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
|
14 | OS_ASSERT(ok); |
| 527 |
4/4✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
✓ Branch 7 taken 14 times.
✓ Branch 10 taken 14 times.
|
56 | EnergyManagementSystemActuator pota(this->cast<ModelObject>(), "Plant Connection", "Mass Flow Rate"); |
| 528 |
2/2✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
|
14 | pota.setName("plantMassFlowRate"); |
| 529 |
1/1✓ Branch 1 taken 14 times.
|
14 | ok = setPlantMassFlowRateActuator(pota); |
| 530 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
|
14 | OS_ASSERT(ok); |
| 531 |
4/4✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
✓ Branch 7 taken 14 times.
✓ Branch 10 taken 14 times.
|
56 | EnergyManagementSystemActuator pmmfra(this->cast<ModelObject>(), "Plant Connection", "Outlet Temperature"); |
| 532 |
2/2✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
|
14 | pmmfra.setName("plantOutletTemperature"); |
| 533 |
1/1✓ Branch 1 taken 14 times.
|
14 | ok = setPlantOutletTemperatureActuator(pmmfra); |
| 534 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
|
14 | OS_ASSERT(ok); |
| 535 | |||
| 536 | // setup Overall Simulation Program and Manager | ||
| 537 |
1/1✓ Branch 1 taken 14 times.
|
14 | EnergyManagementSystemProgram mainProgram(model); |
| 538 |
2/2✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
|
14 | mainProgram.setName("overallSimulationProgram"); |
| 539 | |||
| 540 |
1/1✓ Branch 1 taken 14 times.
|
14 | EnergyManagementSystemProgramCallingManager mainProgramCallingManager(model); |
| 541 |
2/2✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
|
28 | mainProgramCallingManager.setName("overallModelSimulationProgramCallingManager"); |
| 542 |
2/2✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
|
14 | mainProgramCallingManager.setCallingPoint("UserDefinedComponentModel"); |
| 543 |
1/1✓ Branch 1 taken 14 times.
|
14 | mainProgramCallingManager.addProgram(mainProgram); |
| 544 | |||
| 545 | // add as children so they delete if object gets removed | ||
| 546 |
1/1✓ Branch 1 taken 14 times.
|
14 | ok = setOverallModelSimulationProgramCallingManager(mainProgramCallingManager); |
| 547 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
|
14 | OS_ASSERT(ok); |
| 548 |
1/1✓ Branch 1 taken 14 times.
|
14 | ok = setOverallSimulationProgram(mainProgram); |
| 549 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
|
14 | OS_ASSERT(ok); |
| 550 | |||
| 551 | // setup Overall Simulation Program and Manager | ||
| 552 |
1/1✓ Branch 1 taken 14 times.
|
14 | EnergyManagementSystemProgram initProgram(model); |
| 553 |
2/2✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
|
14 | initProgram.setName("initializationSimulationProgram"); |
| 554 | |||
| 555 |
1/1✓ Branch 1 taken 14 times.
|
14 | EnergyManagementSystemProgramCallingManager modelSetupandSizingPCM(model); |
| 556 |
2/2✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
|
28 | modelSetupandSizingPCM.setName("modelSetupandSizingProgramCallingManager"); |
| 557 |
2/2✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
|
14 | modelSetupandSizingPCM.setCallingPoint("UserDefinedComponentModel"); |
| 558 |
1/1✓ Branch 1 taken 14 times.
|
14 | modelSetupandSizingPCM.addProgram(initProgram); |
| 559 | |||
| 560 | // add as children so they delete if object gets removed | ||
| 561 |
1/1✓ Branch 1 taken 14 times.
|
14 | ok = setModelSetupandSizingProgramCallingManager(modelSetupandSizingPCM); |
| 562 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
|
14 | OS_ASSERT(ok); |
| 563 |
1/1✓ Branch 1 taken 14 times.
|
14 | ok = setInitializationSimulationProgram(initProgram); |
| 564 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 14 times.
✗ Branch 3 not taken.
|
14 | OS_ASSERT(ok); |
| 565 | |||
| 566 | // getImpl<detail::CoilUserDefined_Impl>()->renameEMSSubComponents(); | ||
| 567 | 14 | } | |
| 568 | |||
| 569 | 7844 | IddObjectType CoilUserDefined::iddObjectType() { | |
| 570 |
1/1✓ Branch 1 taken 7844 times.
|
7844 | return {IddObjectType::OS_Coil_UserDefined}; |
| 571 | } | ||
| 572 | |||
| 573 | 11 | EnergyManagementSystemProgramCallingManager CoilUserDefined::overallModelSimulationProgramCallingManager() const { | |
| 574 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::CoilUserDefined_Impl>()->overallModelSimulationProgramCallingManager(); |
| 575 | } | ||
| 576 | |||
| 577 | 11 | EnergyManagementSystemProgramCallingManager CoilUserDefined::modelSetupandSizingProgramCallingManager() const { | |
| 578 |
1/1✓ Branch 3 taken 11 times.
|
11 | return getImpl<detail::CoilUserDefined_Impl>()->modelSetupandSizingProgramCallingManager(); |
| 579 | } | ||
| 580 | |||
| 581 | 17 | int CoilUserDefined::numberofAirConnections() const { | |
| 582 |
1/1✓ Branch 3 taken 17 times.
|
17 | return getImpl<detail::CoilUserDefined_Impl>()->numberofAirConnections(); |
| 583 | } | ||
| 584 | |||
| 585 | 10 | boost::optional<ThermalZone> CoilUserDefined::ambientZone() const { | |
| 586 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::CoilUserDefined_Impl>()->ambientZone(); |
| 587 | } | ||
| 588 | |||
| 589 | 7 | EnergyManagementSystemProgram CoilUserDefined::overallSimulationProgram() const { | |
| 590 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::CoilUserDefined_Impl>()->overallSimulationProgram(); |
| 591 | } | ||
| 592 | |||
| 593 | 7 | EnergyManagementSystemProgram CoilUserDefined::initializationSimulationProgram() const { | |
| 594 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::CoilUserDefined_Impl>()->initializationSimulationProgram(); |
| 595 | } | ||
| 596 | |||
| 597 | 13 | EnergyManagementSystemActuator CoilUserDefined::airOutletTemperatureActuator() const { | |
| 598 |
1/1✓ Branch 3 taken 13 times.
|
13 | return getImpl<detail::CoilUserDefined_Impl>()->airOutletTemperatureActuator(); |
| 599 | } | ||
| 600 | |||
| 601 | 13 | EnergyManagementSystemActuator CoilUserDefined::airOutletHumidityRatioActuator() const { | |
| 602 |
1/1✓ Branch 3 taken 13 times.
|
13 | return getImpl<detail::CoilUserDefined_Impl>()->airOutletHumidityRatioActuator(); |
| 603 | } | ||
| 604 | |||
| 605 | 13 | EnergyManagementSystemActuator CoilUserDefined::airMassFlowRateActuator() const { | |
| 606 |
1/1✓ Branch 3 taken 13 times.
|
13 | return getImpl<detail::CoilUserDefined_Impl>()->airMassFlowRateActuator(); |
| 607 | } | ||
| 608 | |||
| 609 | 14 | EnergyManagementSystemActuator CoilUserDefined::plantMinimumMassFlowRateActuator() const { | |
| 610 |
1/1✓ Branch 3 taken 14 times.
|
14 | return getImpl<detail::CoilUserDefined_Impl>()->plantMinimumMassFlowRateActuator(); |
| 611 | } | ||
| 612 | |||
| 613 | 14 | EnergyManagementSystemActuator CoilUserDefined::plantMaximumMassFlowRateActuator() const { | |
| 614 |
1/1✓ Branch 3 taken 14 times.
|
14 | return getImpl<detail::CoilUserDefined_Impl>()->plantMaximumMassFlowRateActuator(); |
| 615 | } | ||
| 616 | |||
| 617 | 14 | EnergyManagementSystemActuator CoilUserDefined::plantDesignVolumeFlowRateActuator() const { | |
| 618 |
1/1✓ Branch 3 taken 14 times.
|
14 | return getImpl<detail::CoilUserDefined_Impl>()->plantDesignVolumeFlowRateActuator(); |
| 619 | } | ||
| 620 | |||
| 621 | 14 | EnergyManagementSystemActuator CoilUserDefined::plantOutletTemperatureActuator() const { | |
| 622 |
1/1✓ Branch 3 taken 14 times.
|
14 | return getImpl<detail::CoilUserDefined_Impl>()->plantOutletTemperatureActuator(); |
| 623 | } | ||
| 624 | |||
| 625 | 14 | EnergyManagementSystemActuator CoilUserDefined::plantMassFlowRateActuator() const { | |
| 626 |
1/1✓ Branch 3 taken 14 times.
|
14 | return getImpl<detail::CoilUserDefined_Impl>()->plantMassFlowRateActuator(); |
| 627 | } | ||
| 628 | |||
| 629 | 18 | bool CoilUserDefined::setOverallModelSimulationProgramCallingManager(const EnergyManagementSystemProgramCallingManager& emsProgramCallingManager) { | |
| 630 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::CoilUserDefined_Impl>()->setOverallModelSimulationProgramCallingManager(emsProgramCallingManager); |
| 631 | } | ||
| 632 | |||
| 633 | 18 | bool CoilUserDefined::setModelSetupandSizingProgramCallingManager(const EnergyManagementSystemProgramCallingManager& emsProgramCallingManager) { | |
| 634 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::CoilUserDefined_Impl>()->setModelSetupandSizingProgramCallingManager(emsProgramCallingManager); |
| 635 | } | ||
| 636 | |||
| 637 | 4 | bool CoilUserDefined::setAmbientZone(const ThermalZone& thermalZone) { | |
| 638 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::CoilUserDefined_Impl>()->setAmbientZone(thermalZone); |
| 639 | } | ||
| 640 | |||
| 641 | 3 | void CoilUserDefined::resetAmbientZone() { | |
| 642 |
1/1✓ Branch 3 taken 3 times.
|
3 | getImpl<detail::CoilUserDefined_Impl>()->resetAmbientZone(); |
| 643 | 3 | } | |
| 644 | |||
| 645 | 18 | bool CoilUserDefined::setOverallSimulationProgram(const EnergyManagementSystemProgram& emsProgram) { | |
| 646 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::CoilUserDefined_Impl>()->setOverallSimulationProgram(emsProgram); |
| 647 | } | ||
| 648 | |||
| 649 | 18 | bool CoilUserDefined::setInitializationSimulationProgram(const EnergyManagementSystemProgram& emsProgram) { | |
| 650 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::CoilUserDefined_Impl>()->setInitializationSimulationProgram(emsProgram); |
| 651 | } | ||
| 652 | |||
| 653 | 18 | bool CoilUserDefined::setAirOutletTemperatureActuator(const EnergyManagementSystemActuator& emsActuator) { | |
| 654 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::CoilUserDefined_Impl>()->setAirOutletTemperatureActuator(emsActuator); |
| 655 | } | ||
| 656 | |||
| 657 | 18 | bool CoilUserDefined::setAirOutletHumidityRatioActuator(const EnergyManagementSystemActuator& emsActuator) { | |
| 658 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::CoilUserDefined_Impl>()->setAirOutletHumidityRatioActuator(emsActuator); |
| 659 | } | ||
| 660 | |||
| 661 | 18 | bool CoilUserDefined::setAirMassFlowRateActuator(const EnergyManagementSystemActuator& emsActuator) { | |
| 662 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::CoilUserDefined_Impl>()->setAirMassFlowRateActuator(emsActuator); |
| 663 | } | ||
| 664 | |||
| 665 | 18 | bool CoilUserDefined::setPlantMinimumMassFlowRateActuator(const EnergyManagementSystemActuator& emsActuator) { | |
| 666 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::CoilUserDefined_Impl>()->setPlantMinimumMassFlowRateActuator(emsActuator); |
| 667 | } | ||
| 668 | |||
| 669 | 18 | bool CoilUserDefined::setPlantMaximumMassFlowRateActuator(const EnergyManagementSystemActuator& emsActuator) { | |
| 670 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::CoilUserDefined_Impl>()->setPlantMaximumMassFlowRateActuator(emsActuator); |
| 671 | } | ||
| 672 | |||
| 673 | 18 | bool CoilUserDefined::setPlantDesignVolumeFlowRateActuator(const EnergyManagementSystemActuator& emsActuator) { | |
| 674 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::CoilUserDefined_Impl>()->setPlantDesignVolumeFlowRateActuator(emsActuator); |
| 675 | } | ||
| 676 | |||
| 677 | 18 | bool CoilUserDefined::setPlantOutletTemperatureActuator(const EnergyManagementSystemActuator& emsActuator) { | |
| 678 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::CoilUserDefined_Impl>()->setPlantOutletTemperatureActuator(emsActuator); |
| 679 | } | ||
| 680 | |||
| 681 | 18 | bool CoilUserDefined::setPlantMassFlowRateActuator(const EnergyManagementSystemActuator& emsActuator) { | |
| 682 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::CoilUserDefined_Impl>()->setPlantMassFlowRateActuator(emsActuator); |
| 683 | } | ||
| 684 | |||
| 685 | 1 | void CoilUserDefined::renameEMSSubComponents() { | |
| 686 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::CoilUserDefined_Impl>()->renameEMSSubComponents(); |
| 687 | } | ||
| 688 | |||
| 689 | /// @cond | ||
| 690 |
1/1✓ Branch 3 taken 12 times.
|
12 | CoilUserDefined::CoilUserDefined(std::shared_ptr<detail::CoilUserDefined_Impl> impl) : WaterToAirComponent(std::move(impl)) {} |
| 691 | /// @endcond | ||
| 692 | |||
| 693 | } // namespace model | ||
| 694 | } // namespace openstudio | ||
| 695 |