src/model/RefrigerationSystem.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 "RefrigerationSystem.hpp" | ||
| 7 | #include "RefrigerationSystem_Impl.hpp" | ||
| 8 | |||
| 9 | #include "ModelObjectList.hpp" | ||
| 10 | #include "ModelObjectList_Impl.hpp" | ||
| 11 | #include "RefrigerationAirChiller.hpp" | ||
| 12 | #include "RefrigerationAirChiller_Impl.hpp" | ||
| 13 | #include "RefrigerationCondenserCascade.hpp" | ||
| 14 | #include "RefrigerationCondenserCascade_Impl.hpp" | ||
| 15 | #include "RefrigerationCase.hpp" | ||
| 16 | #include "RefrigerationCase_Impl.hpp" | ||
| 17 | #include "RefrigerationCompressor.hpp" | ||
| 18 | #include "RefrigerationCompressor_Impl.hpp" | ||
| 19 | #include "RefrigerationSecondarySystem.hpp" | ||
| 20 | #include "RefrigerationSecondarySystem_Impl.hpp" | ||
| 21 | #include "RefrigerationWalkIn.hpp" | ||
| 22 | #include "RefrigerationWalkIn_Impl.hpp" | ||
| 23 | #include "RefrigerationSubcoolerLiquidSuction.hpp" | ||
| 24 | #include "RefrigerationSubcoolerLiquidSuction_Impl.hpp" | ||
| 25 | #include "RefrigerationSubcoolerMechanical.hpp" | ||
| 26 | #include "RefrigerationSubcoolerMechanical_Impl.hpp" | ||
| 27 | #include "RefrigerationCondenserAirCooled.hpp" | ||
| 28 | #include "RefrigerationCondenserAirCooled_Impl.hpp" | ||
| 29 | #include "RefrigerationCondenserWaterCooled.hpp" | ||
| 30 | #include "RefrigerationCondenserWaterCooled_Impl.hpp" | ||
| 31 | #include "RefrigerationCondenserEvaporativeCooled.hpp" | ||
| 32 | #include "RefrigerationCondenserEvaporativeCooled_Impl.hpp" | ||
| 33 | |||
| 34 | #include "ThermalZone.hpp" | ||
| 35 | #include "ThermalZone_Impl.hpp" | ||
| 36 | #include "Model.hpp" | ||
| 37 | #include "Model_Impl.hpp" | ||
| 38 | |||
| 39 | #include <utilities/idd/IddFactory.hxx> | ||
| 40 | |||
| 41 | #include <utilities/idd/OS_Refrigeration_System_FieldEnums.hxx> | ||
| 42 | #include <utilities/idd/IddEnums.hxx> | ||
| 43 | |||
| 44 | #include "../utilities/units/Unit.hpp" | ||
| 45 | |||
| 46 | #include "../utilities/core/Assert.hpp" | ||
| 47 | #include "../utilities/core/ContainersMove.hpp" | ||
| 48 | |||
| 49 | namespace openstudio { | ||
| 50 | namespace model { | ||
| 51 | |||
| 52 | namespace detail { | ||
| 53 | |||
| 54 | 75 | RefrigerationSystem_Impl::RefrigerationSystem_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 55 | 75 | : ModelObject_Impl(idfObject, model, keepHandle) { | |
| 56 |
4/6✓ Branch 1 taken 75 times.
✓ Branch 4 taken 75 times.
✓ Branch 7 taken 75 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 75 times.
✗ Branch 13 not taken.
|
75 | OS_ASSERT(idfObject.iddObject().type() == RefrigerationSystem::iddObjectType()); |
| 57 | 75 | } | |
| 58 | |||
| 59 | ✗ | RefrigerationSystem_Impl::RefrigerationSystem_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle) | |
| 60 | ✗ | : ModelObject_Impl(other, model, keepHandle) { | |
| 61 | ✗ | OS_ASSERT(other.iddObject().type() == RefrigerationSystem::iddObjectType()); | |
| 62 | ✗ | } | |
| 63 | |||
| 64 | 20 | RefrigerationSystem_Impl::RefrigerationSystem_Impl(const RefrigerationSystem_Impl& other, Model_Impl* model, bool keepHandle) | |
| 65 | 20 | : ModelObject_Impl(other, model, keepHandle) {} | |
| 66 | |||
| 67 | ✗ | const std::vector<std::string>& RefrigerationSystem_Impl::outputVariableNames() const { | |
| 68 | static const std::vector<std::string> result{ | ||
| 69 | // TODO: Implement checks | ||
| 70 | // THE FOLLOWING OUTPUTS ARE AVAILABLE FOR SYSTEMS THAT SERVE CASES AND/OR WALKINS: | ||
| 71 | "Refrigeration System Total Compressor Electricity Rate", "Refrigeration System Total Compressor Electricity Energy", | ||
| 72 | "Refrigeration System Average Compressor COP", "Refrigeration System Total Compressor Heat Transfer Rate", | ||
| 73 | "Refrigeration System Total Compressor Heat Transfer Energy", "Refrigeration System Total Cases and Walk Ins Heat Transfer Rate", | ||
| 74 | "Refrigeration System Total Cases and Walk Ins Heat Transfer Energy", "Refrigeration System Total Transferred Load Heat Transfer Rate", | ||
| 75 | "Refrigeration System Total Transferred Load Heat Transfer Energy", "Refrigeration System Total Suction Pipe Heat Gain Rate", | ||
| 76 | "Refrigeration System Total Suction Pipe Heat Gain Energy", "Refrigeration System Net Rejected Heat Transfer Rate", | ||
| 77 | "Refrigeration System Net Rejected Heat Transfer Energy", "Refrigeration System Estimated Refrigerant Inventory Mass", | ||
| 78 | "Refrigeration System Liquid Suction Subcooler Heat Transfer Rate", "Refrigeration System Liquid Suction Subcooler Heat Transfer Energy", | ||
| 79 | "Refrigeration System Estimated Refrigerant Inventory", "Refrigeration System Estimated Refrigerant Mass Flow Rate", | ||
| 80 | "Refrigeration System Condensing Temperature", "Refrigeration System Evaporating Temperature", | ||
| 81 | "Refrigeration System Suction Pipe Suction Temperature", "Refrigeration System Thermostatic Expansion Valve Liquid Temperature", | ||
| 82 | "Refrigeration System Estimated High Stage Refrigerant Mass Flow Rate", "Refrigeration System Total High Stage Compressor Electricity Energy", | ||
| 83 | "Refrigeration System Total High Stage Compressor Electricity Rate", "Refrigeration System Total High Stage Compressor Heat Transfer Energy", | ||
| 84 | "Refrigeration System Total High Stage Compressor Heat Transfer Rate", | ||
| 85 | "Refrigeration System Total Low and High Stage Compressor Electricity Energy", | ||
| 86 | "Refrigeration System Total Low Stage Compressor Electricity Energy", "Refrigeration System Total Low Stage Compressor Electricity Rate", | ||
| 87 | "Refrigeration System Total Low Stage Compressor Heat Transfer Energy", "Refrigeration System Total Low Stage Compressor Heat Transfer Rate", | ||
| 88 | "Refrigeration System Estimated Low Stage Refrigerant Mass Flow Rate", | ||
| 89 | // THE FOLLOWING OUTPUTS ARE AVAILABLE FOR SYSTEMS THAT SERVE AIR CHILLERS: | ||
| 90 | "Refrigeration Air Chiller System Total Compressor Electricity Rate", "Refrigeration Air Chiller System Total Compressor Electricity Energy", | ||
| 91 | "Refrigeration Air Chiller System Average Compressor COP", "Refrigeration Air Chiller System Total Compressor Heat Transfer Rate", | ||
| 92 | "Refrigeration Air Chiller System Total Compressor Heat Transfer Energy", | ||
| 93 | "Refrigeration Air Chiller System Total Air Chiller Heat Transfer Rate", | ||
| 94 | "Refrigeration Air Chiller System Total Case and Walk In Heat Transfer Energy", | ||
| 95 | "Refrigeration Air Chiller System Total Transferred Load Heat Transfer Rate", | ||
| 96 | "Refrigeration Air Chiller System Total Transferred Load Heat Transfer Energy", | ||
| 97 | "Refrigeration Air Chiller System Total Suction Pipe Heat Gain Rate", "Refrigeration Air Chiller System Total Suction Pipe Heat Gain Energy", | ||
| 98 | "Refrigeration Air Chiller System Net Rejected Heat Transfer Rate", "Refrigeration Air Chiller System Net Rejected Heat Transfer Energy", | ||
| 99 | "Refrigeration Air Chiller System Liquid Suction Subcooler Heat Transfer Rate", | ||
| 100 | "Refrigeration Air Chiller System Liquid Suction Subcooler Heat Transfer Energy", | ||
| 101 | "Refrigeration Air Chiller System Estimated Refrigerant Inventory Mass", | ||
| 102 | "Refrigeration Air Chiller System Estimated Refrigerant Mass Flow Rate", "Refrigeration Air Chiller System Intercooler Temperature", | ||
| 103 | "Refrigeration Air Chiller System Intercooler Pressure", "Refrigeration Air Chiller System Condensing Temperature", | ||
| 104 | "Refrigeration Air Chiller System Evaporating Temperature", "Refrigeration Air Chiller System Suction Temperature", | ||
| 105 | "Refrigeration Air Chiller System TXV Liquid Temperature", "Refrigeration Air Chiller System Estimated High Stage Refrigerant Mass Flow Rate", | ||
| 106 | "Refrigeration Air Chiller System Total High Stage Compressor Electricity Energy", | ||
| 107 | "Refrigeration Air Chiller System Total High Stage Compressor Electricity Rate", | ||
| 108 | "Refrigeration Air Chiller System Total High Stage Compressor Heat Transfer Energy", | ||
| 109 | "Refrigeration Air Chiller System Total High Stage Compressor Heat Transfer Rate", | ||
| 110 | "Refrigeration Air Chiller System Total Low and High Stage Compressor Electricity Energy", | ||
| 111 | "Refrigeration Air Chiller System Total Low Stage Compressor Electricity Energy", | ||
| 112 | "Refrigeration Air Chiller System Total Low Stage Compressor Electricity Rate", | ||
| 113 | "Refrigeration Air Chiller System Total Low Stage Compressor Heat Transfer Energy", | ||
| 114 | "Refrigeration Air Chiller System Total Low Stage Compressor Heat Transfer Rate", | ||
| 115 | ✗ | "Refrigeration Air Chiller System Estimated Low Stage Refrigerant Mass Flow Rate"}; | |
| 116 | ✗ | return result; | |
| 117 | ✗ | } | |
| 118 | |||
| 119 | ✗ | IddObjectType RefrigerationSystem_Impl::iddObjectType() const { | |
| 120 | ✗ | return RefrigerationSystem::iddObjectType(); | |
| 121 | } | ||
| 122 | |||
| 123 | 14 | std::vector<IdfObject> RefrigerationSystem_Impl::remove() { | |
| 124 | 14 | std::vector<IdfObject> result; | |
| 125 | |||
| 126 |
3/3✓ Branch 1 taken 14 times.
✓ Branch 3 taken 5 times.
✓ Branch 4 taken 9 times.
|
28 | if (boost::optional<ModelObject> condenser = this->optionalRefrigerationCondenser()) { |
| 127 |
3/3✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
|
5 | openstudio::detail::concat_helper(result, condenser->remove()); |
| 128 | 14 | } | |
| 129 | |||
| 130 |
2/3✓ Branch 1 taken 14 times.
✓ Branch 3 taken 14 times.
✗ Branch 4 not taken.
|
28 | if (boost::optional<ModelObjectList> caseAndWalkinList = this->refrigeratedCaseAndWalkInList()) { |
| 131 |
3/3✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
✓ Branch 7 taken 14 times.
|
14 | openstudio::detail::concat_helper(result, caseAndWalkinList->remove()); |
| 132 | 14 | } | |
| 133 | |||
| 134 |
2/3✓ Branch 1 taken 14 times.
✓ Branch 3 taken 14 times.
✗ Branch 4 not taken.
|
28 | if (boost::optional<ModelObjectList> transferLoadList = this->refrigerationTransferLoadList()) { |
| 135 |
3/3✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
✓ Branch 7 taken 14 times.
|
14 | openstudio::detail::concat_helper(result, transferLoadList->remove()); |
| 136 | 14 | } | |
| 137 | |||
| 138 | // We're clearing the compressor/HighStage compressor list objects first. otherwise a compressor on the high stage list will call | ||
| 139 | // RefrgerationCompressor_Impl::system which will try to locate the compressorList which was deleted first | ||
| 140 |
2/3✓ Branch 1 taken 14 times.
✗ Branch 7 not taken.
✓ Branch 8 taken 14 times.
|
14 | for (auto& c : compressors()) { |
| 141 | ✗ | openstudio::detail::concat_helper(result, c.remove()); | |
| 142 | 14 | } | |
| 143 |
3/3✓ Branch 1 taken 14 times.
✓ Branch 7 taken 1 time.
✓ Branch 8 taken 14 times.
|
15 | for (auto& c : highStageCompressors()) { |
| 144 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | openstudio::detail::concat_helper(result, c.remove()); |
| 145 | 14 | } | |
| 146 |
3/4✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
✓ Branch 8 taken 14 times.
✗ Branch 9 not taken.
|
28 | if (boost::optional<ModelObjectList> compressorList = this->compressorList()) { |
| 147 |
3/3✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
✓ Branch 7 taken 14 times.
|
14 | openstudio::detail::concat_helper(result, compressorList->remove()); |
| 148 | 14 | } | |
| 149 |
2/3✓ Branch 1 taken 14 times.
✓ Branch 3 taken 14 times.
✗ Branch 4 not taken.
|
28 | if (boost::optional<ModelObjectList> highStageCompressorList = this->highStageCompressorList()) { |
| 150 |
3/3✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
✓ Branch 7 taken 14 times.
|
14 | openstudio::detail::concat_helper(result, highStageCompressorList->remove()); |
| 151 | 14 | } | |
| 152 | |||
| 153 |
3/3✓ Branch 1 taken 14 times.
✓ Branch 3 taken 2 times.
✓ Branch 4 taken 12 times.
|
28 | if (boost::optional<RefrigerationSubcoolerMechanical> mechSubcooler = this->mechanicalSubcooler()) { |
| 154 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
|
2 | openstudio::detail::concat_helper(result, mechSubcooler->remove()); |
| 155 | 14 | } | |
| 156 | |||
| 157 |
3/3✓ Branch 1 taken 14 times.
✓ Branch 3 taken 2 times.
✓ Branch 4 taken 12 times.
|
28 | if (boost::optional<RefrigerationSubcoolerLiquidSuction> liqSuctionSubcooler = this->liquidSuctionHeatExchangerSubcooler()) { |
| 158 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
|
2 | openstudio::detail::concat_helper(result, liqSuctionSubcooler->remove()); |
| 159 | 14 | } | |
| 160 | |||
| 161 |
2/2✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
|
14 | openstudio::detail::concat_helper(result, ModelObject_Impl::remove()); |
| 162 | |||
| 163 | 14 | return result; | |
| 164 | ✗ | } | |
| 165 | |||
| 166 | 10 | ModelObject RefrigerationSystem_Impl::clone(Model model) const { | |
| 167 |
3/3✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
✓ Branch 7 taken 10 times.
|
10 | auto modelObjectClone = ModelObject_Impl::clone(model).cast<RefrigerationSystem>(); |
| 168 | |||
| 169 |
3/3✓ Branch 1 taken 10 times.
✓ Branch 3 taken 3 times.
✓ Branch 4 taken 7 times.
|
20 | if (boost::optional<ModelObject> condenser = this->optionalRefrigerationCondenser()) { |
| 170 |
3/3✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 7 taken 3 times.
|
3 | ModelObject condenserClone = condenser->clone(model); |
| 171 |
1/1✓ Branch 1 taken 3 times.
|
3 | modelObjectClone.setRefrigerationCondenser(condenserClone); |
| 172 | 13 | } | |
| 173 | |||
| 174 |
2/3✓ Branch 1 taken 10 times.
✓ Branch 3 taken 10 times.
✗ Branch 4 not taken.
|
20 | if (boost::optional<ModelObjectList> caseAndWalkinList = this->refrigeratedCaseAndWalkInList()) { |
| 175 |
4/4✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
✓ Branch 7 taken 10 times.
✓ Branch 10 taken 10 times.
|
10 | auto caseAndWalkinListClone = caseAndWalkinList->clone(model).cast<ModelObjectList>(); |
| 176 |
2/2✓ Branch 3 taken 10 times.
✓ Branch 6 taken 10 times.
|
10 | modelObjectClone.getImpl<detail::RefrigerationSystem_Impl>()->setRefrigeratedCaseAndWalkInList(caseAndWalkinListClone); |
| 177 | 20 | } | |
| 178 | |||
| 179 |
2/3✓ Branch 1 taken 10 times.
✓ Branch 3 taken 10 times.
✗ Branch 4 not taken.
|
20 | if (boost::optional<ModelObjectList> transferLoadList = this->refrigerationTransferLoadList()) { |
| 180 |
4/4✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
✓ Branch 7 taken 10 times.
✓ Branch 10 taken 10 times.
|
10 | auto transferLoadListClone = transferLoadList->clone(model).cast<ModelObjectList>(); |
| 181 |
2/2✓ Branch 3 taken 10 times.
✓ Branch 6 taken 10 times.
|
10 | modelObjectClone.getImpl<detail::RefrigerationSystem_Impl>()->setRefrigerationTransferLoadList(transferLoadListClone); |
| 182 | 20 | } | |
| 183 | |||
| 184 |
3/4✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
✓ Branch 8 taken 10 times.
✗ Branch 9 not taken.
|
20 | if (boost::optional<ModelObjectList> compressorList = this->compressorList()) { |
| 185 |
4/4✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
✓ Branch 7 taken 10 times.
✓ Branch 10 taken 10 times.
|
10 | auto compressorListClone = compressorList->clone(model).cast<ModelObjectList>(); |
| 186 |
1/1✓ Branch 3 taken 10 times.
|
10 | modelObjectClone.getImpl<detail::RefrigerationSystem_Impl>()->setCompressorList(compressorListClone); |
| 187 | 20 | } | |
| 188 | |||
| 189 |
3/3✓ Branch 1 taken 10 times.
✓ Branch 3 taken 5 times.
✓ Branch 4 taken 5 times.
|
20 | if (boost::optional<RefrigerationSubcoolerMechanical> mechSubcooler = this->mechanicalSubcooler()) { |
| 190 |
4/4✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✓ Branch 10 taken 5 times.
|
5 | auto mechSubClone = mechSubcooler->clone(model).cast<RefrigerationSubcoolerMechanical>(); |
| 191 |
1/1✓ Branch 1 taken 5 times.
|
5 | modelObjectClone.setMechanicalSubcooler(mechSubClone); |
| 192 | 15 | } | |
| 193 | |||
| 194 |
3/3✓ Branch 1 taken 10 times.
✓ Branch 3 taken 5 times.
✓ Branch 4 taken 5 times.
|
20 | if (boost::optional<RefrigerationSubcoolerLiquidSuction> liqSuctionSubcooler = this->liquidSuctionHeatExchangerSubcooler()) { |
| 195 |
4/4✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
✓ Branch 7 taken 5 times.
✓ Branch 10 taken 5 times.
|
5 | auto liqSuctionSubClone = liqSuctionSubcooler->clone(model).cast<RefrigerationSubcoolerLiquidSuction>(); |
| 196 |
1/1✓ Branch 1 taken 5 times.
|
5 | modelObjectClone.setLiquidSuctionHeatExchangerSubcooler(liqSuctionSubClone); |
| 197 | 15 | } | |
| 198 | |||
| 199 |
2/3✓ Branch 1 taken 10 times.
✓ Branch 3 taken 10 times.
✗ Branch 4 not taken.
|
20 | if (boost::optional<ModelObjectList> highStageCompressorList = this->highStageCompressorList()) { |
| 200 |
4/4✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
✓ Branch 7 taken 10 times.
✓ Branch 10 taken 10 times.
|
10 | auto highStageCompressorListClone = highStageCompressorList->clone(model).cast<ModelObjectList>(); |
| 201 |
2/2✓ Branch 3 taken 10 times.
✓ Branch 6 taken 10 times.
|
10 | modelObjectClone.getImpl<detail::RefrigerationSystem_Impl>()->setHighStageCompressorList(highStageCompressorListClone); |
| 202 | 20 | } | |
| 203 | |||
| 204 |
1/1✓ Branch 1 taken 10 times.
|
10 | modelObjectClone.resetSuctionPipingZone(); |
| 205 | |||
| 206 | 20 | return std::move(modelObjectClone); | |
| 207 | 10 | } | |
| 208 | |||
| 209 | template <class T> | ||
| 210 | 342 | std::vector<T> RefrigerationSystem_Impl::listTemplate(const boost::optional<ModelObjectList>& modelObjectList) const { | |
| 211 | 342 | std::vector<T> result; | |
| 212 | |||
| 213 |
6/12std::vector<openstudio::model::RefrigerationAirChiller, std::allocator<openstudio::model::RefrigerationAirChiller> > openstudio::model::detail::RefrigerationSystem_Impl::listTemplate<openstudio::model::RefrigerationAirChiller>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 0 taken 68 times.
✗ Branch 1 not taken.
std::vector<openstudio::model::RefrigerationCase, std::allocator<openstudio::model::RefrigerationCase> > openstudio::model::detail::RefrigerationSystem_Impl::listTemplate<openstudio::model::RefrigerationCase>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 0 taken 48 times.
✗ Branch 1 not taken.
std::vector<openstudio::model::RefrigerationCompressor, std::allocator<openstudio::model::RefrigerationCompressor> > openstudio::model::detail::RefrigerationSystem_Impl::listTemplate<openstudio::model::RefrigerationCompressor>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 0 taken 98 times.
✗ Branch 1 not taken.
std::vector<openstudio::model::RefrigerationCondenserCascade, std::allocator<openstudio::model::RefrigerationCondenserCascade> > openstudio::model::detail::RefrigerationSystem_Impl::listTemplate<openstudio::model::RefrigerationCondenserCascade>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 0 taken 50 times.
✗ Branch 1 not taken.
std::vector<openstudio::model::RefrigerationSecondarySystem, std::allocator<openstudio::model::RefrigerationSecondarySystem> > openstudio::model::detail::RefrigerationSystem_Impl::listTemplate<openstudio::model::RefrigerationSecondarySystem>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 0 taken 32 times.
✗ Branch 1 not taken.
std::vector<openstudio::model::RefrigerationWalkIn, std::allocator<openstudio::model::RefrigerationWalkIn> > openstudio::model::detail::RefrigerationSystem_Impl::listTemplate<openstudio::model::RefrigerationWalkIn>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 0 taken 46 times.
✗ Branch 1 not taken.
|
342 | if (modelObjectList) { |
| 214 |
12/12std::vector<openstudio::model::RefrigerationAirChiller, std::allocator<openstudio::model::RefrigerationAirChiller> > openstudio::model::detail::RefrigerationSystem_Impl::listTemplate<openstudio::model::RefrigerationAirChiller>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 1 taken 68 times.
✓ Branch 4 taken 68 times.
std::vector<openstudio::model::RefrigerationCase, std::allocator<openstudio::model::RefrigerationCase> > openstudio::model::detail::RefrigerationSystem_Impl::listTemplate<openstudio::model::RefrigerationCase>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 1 taken 48 times.
✓ Branch 4 taken 48 times.
std::vector<openstudio::model::RefrigerationCompressor, std::allocator<openstudio::model::RefrigerationCompressor> > openstudio::model::detail::RefrigerationSystem_Impl::listTemplate<openstudio::model::RefrigerationCompressor>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 1 taken 98 times.
✓ Branch 4 taken 98 times.
std::vector<openstudio::model::RefrigerationCondenserCascade, std::allocator<openstudio::model::RefrigerationCondenserCascade> > openstudio::model::detail::RefrigerationSystem_Impl::listTemplate<openstudio::model::RefrigerationCondenserCascade>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 1 taken 50 times.
✓ Branch 4 taken 50 times.
std::vector<openstudio::model::RefrigerationSecondarySystem, std::allocator<openstudio::model::RefrigerationSecondarySystem> > openstudio::model::detail::RefrigerationSystem_Impl::listTemplate<openstudio::model::RefrigerationSecondarySystem>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 1 taken 32 times.
✓ Branch 4 taken 32 times.
std::vector<openstudio::model::RefrigerationWalkIn, std::allocator<openstudio::model::RefrigerationWalkIn> > openstudio::model::detail::RefrigerationSystem_Impl::listTemplate<openstudio::model::RefrigerationWalkIn>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 1 taken 46 times.
✓ Branch 4 taken 46 times.
|
342 | std::vector<ModelObject> modelObjects = modelObjectList->modelObjects(); |
| 215 | |||
| 216 |
12/12std::vector<openstudio::model::RefrigerationAirChiller, std::allocator<openstudio::model::RefrigerationAirChiller> > openstudio::model::detail::RefrigerationSystem_Impl::listTemplate<openstudio::model::RefrigerationAirChiller>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 6 taken 44 times.
✓ Branch 7 taken 68 times.
std::vector<openstudio::model::RefrigerationCase, std::allocator<openstudio::model::RefrigerationCase> > openstudio::model::detail::RefrigerationSystem_Impl::listTemplate<openstudio::model::RefrigerationCase>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 6 taken 43 times.
✓ Branch 7 taken 48 times.
std::vector<openstudio::model::RefrigerationCompressor, std::allocator<openstudio::model::RefrigerationCompressor> > openstudio::model::detail::RefrigerationSystem_Impl::listTemplate<openstudio::model::RefrigerationCompressor>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 6 taken 30 times.
✓ Branch 7 taken 98 times.
std::vector<openstudio::model::RefrigerationCondenserCascade, std::allocator<openstudio::model::RefrigerationCondenserCascade> > openstudio::model::detail::RefrigerationSystem_Impl::listTemplate<openstudio::model::RefrigerationCondenserCascade>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 6 taken 18 times.
✓ Branch 7 taken 50 times.
std::vector<openstudio::model::RefrigerationSecondarySystem, std::allocator<openstudio::model::RefrigerationSecondarySystem> > openstudio::model::detail::RefrigerationSystem_Impl::listTemplate<openstudio::model::RefrigerationSecondarySystem>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 6 taken 22 times.
✓ Branch 7 taken 32 times.
std::vector<openstudio::model::RefrigerationWalkIn, std::allocator<openstudio::model::RefrigerationWalkIn> > openstudio::model::detail::RefrigerationSystem_Impl::listTemplate<openstudio::model::RefrigerationWalkIn>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 6 taken 36 times.
✓ Branch 7 taken 46 times.
|
535 | for (const auto& elem : modelObjects) { |
| 217 |
6/6std::vector<openstudio::model::RefrigerationAirChiller, std::allocator<openstudio::model::RefrigerationAirChiller> > openstudio::model::detail::RefrigerationSystem_Impl::listTemplate<openstudio::model::RefrigerationAirChiller>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 1 taken 44 times.
std::vector<openstudio::model::RefrigerationCase, std::allocator<openstudio::model::RefrigerationCase> > openstudio::model::detail::RefrigerationSystem_Impl::listTemplate<openstudio::model::RefrigerationCase>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 1 taken 43 times.
std::vector<openstudio::model::RefrigerationCompressor, std::allocator<openstudio::model::RefrigerationCompressor> > openstudio::model::detail::RefrigerationSystem_Impl::listTemplate<openstudio::model::RefrigerationCompressor>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 1 taken 30 times.
std::vector<openstudio::model::RefrigerationCondenserCascade, std::allocator<openstudio::model::RefrigerationCondenserCascade> > openstudio::model::detail::RefrigerationSystem_Impl::listTemplate<openstudio::model::RefrigerationCondenserCascade>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 1 taken 18 times.
std::vector<openstudio::model::RefrigerationSecondarySystem, std::allocator<openstudio::model::RefrigerationSecondarySystem> > openstudio::model::detail::RefrigerationSystem_Impl::listTemplate<openstudio::model::RefrigerationSecondarySystem>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 1 taken 22 times.
std::vector<openstudio::model::RefrigerationWalkIn, std::allocator<openstudio::model::RefrigerationWalkIn> > openstudio::model::detail::RefrigerationSystem_Impl::listTemplate<openstudio::model::RefrigerationWalkIn>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 1 taken 36 times.
|
193 | boost::optional<T> modelObject = elem.optionalCast<T>(); |
| 218 |
11/12std::vector<openstudio::model::RefrigerationAirChiller, std::allocator<openstudio::model::RefrigerationAirChiller> > openstudio::model::detail::RefrigerationSystem_Impl::listTemplate<openstudio::model::RefrigerationAirChiller>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 0 taken 18 times.
✓ Branch 1 taken 26 times.
std::vector<openstudio::model::RefrigerationCase, std::allocator<openstudio::model::RefrigerationCase> > openstudio::model::detail::RefrigerationSystem_Impl::listTemplate<openstudio::model::RefrigerationCase>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 0 taken 21 times.
✓ Branch 1 taken 22 times.
std::vector<openstudio::model::RefrigerationCompressor, std::allocator<openstudio::model::RefrigerationCompressor> > openstudio::model::detail::RefrigerationSystem_Impl::listTemplate<openstudio::model::RefrigerationCompressor>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 0 taken 30 times.
✗ Branch 1 not taken.
std::vector<openstudio::model::RefrigerationCondenserCascade, std::allocator<openstudio::model::RefrigerationCondenserCascade> > openstudio::model::detail::RefrigerationSystem_Impl::listTemplate<openstudio::model::RefrigerationCondenserCascade>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 0 taken 15 times.
✓ Branch 1 taken 3 times.
std::vector<openstudio::model::RefrigerationSecondarySystem, std::allocator<openstudio::model::RefrigerationSecondarySystem> > openstudio::model::detail::RefrigerationSystem_Impl::listTemplate<openstudio::model::RefrigerationSecondarySystem>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 0 taken 15 times.
✓ Branch 1 taken 7 times.
std::vector<openstudio::model::RefrigerationWalkIn, std::allocator<openstudio::model::RefrigerationWalkIn> > openstudio::model::detail::RefrigerationSystem_Impl::listTemplate<openstudio::model::RefrigerationWalkIn>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 0 taken 23 times.
✓ Branch 1 taken 13 times.
|
193 | if (modelObject) { |
| 219 |
12/12std::vector<openstudio::model::RefrigerationAirChiller, std::allocator<openstudio::model::RefrigerationAirChiller> > openstudio::model::detail::RefrigerationSystem_Impl::listTemplate<openstudio::model::RefrigerationAirChiller>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 1 taken 18 times.
✓ Branch 4 taken 18 times.
std::vector<openstudio::model::RefrigerationCase, std::allocator<openstudio::model::RefrigerationCase> > openstudio::model::detail::RefrigerationSystem_Impl::listTemplate<openstudio::model::RefrigerationCase>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 1 taken 21 times.
✓ Branch 4 taken 21 times.
std::vector<openstudio::model::RefrigerationCompressor, std::allocator<openstudio::model::RefrigerationCompressor> > openstudio::model::detail::RefrigerationSystem_Impl::listTemplate<openstudio::model::RefrigerationCompressor>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 1 taken 30 times.
✓ Branch 4 taken 30 times.
std::vector<openstudio::model::RefrigerationCondenserCascade, std::allocator<openstudio::model::RefrigerationCondenserCascade> > openstudio::model::detail::RefrigerationSystem_Impl::listTemplate<openstudio::model::RefrigerationCondenserCascade>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 1 taken 15 times.
✓ Branch 4 taken 15 times.
std::vector<openstudio::model::RefrigerationSecondarySystem, std::allocator<openstudio::model::RefrigerationSecondarySystem> > openstudio::model::detail::RefrigerationSystem_Impl::listTemplate<openstudio::model::RefrigerationSecondarySystem>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 1 taken 15 times.
✓ Branch 4 taken 15 times.
std::vector<openstudio::model::RefrigerationWalkIn, std::allocator<openstudio::model::RefrigerationWalkIn> > openstudio::model::detail::RefrigerationSystem_Impl::listTemplate<openstudio::model::RefrigerationWalkIn>(boost::optional<openstudio::model::ModelObjectList> const&) const:
✓ Branch 1 taken 23 times.
✓ Branch 4 taken 23 times.
|
122 | result.push_back(modelObject.get()); |
| 220 | } | ||
| 221 | } | ||
| 222 | 342 | } | |
| 223 | |||
| 224 | 342 | return result; | |
| 225 | ✗ | } | |
| 226 | |||
| 227 | 48 | std::vector<RefrigerationCase> RefrigerationSystem_Impl::cases() const { | |
| 228 |
2/2✓ Branch 1 taken 48 times.
✓ Branch 4 taken 48 times.
|
48 | return RefrigerationSystem_Impl::listTemplate<RefrigerationCase>(refrigeratedCaseAndWalkInList()); |
| 229 | } | ||
| 230 | |||
| 231 | 46 | std::vector<RefrigerationWalkIn> RefrigerationSystem_Impl::walkins() const { | |
| 232 |
2/2✓ Branch 1 taken 46 times.
✓ Branch 4 taken 46 times.
|
46 | return RefrigerationSystem_Impl::listTemplate<RefrigerationWalkIn>(refrigeratedCaseAndWalkInList()); |
| 233 | } | ||
| 234 | |||
| 235 | 51 | std::vector<RefrigerationCompressor> RefrigerationSystem_Impl::compressors() const { | |
| 236 |
3/3✓ Branch 1 taken 51 times.
✓ Branch 4 taken 51 times.
✓ Branch 7 taken 51 times.
|
51 | return RefrigerationSystem_Impl::listTemplate<RefrigerationCompressor>(compressorList()); |
| 237 | } | ||
| 238 | |||
| 239 | 47 | std::vector<RefrigerationCompressor> RefrigerationSystem_Impl::highStageCompressors() const { | |
| 240 |
2/2✓ Branch 1 taken 47 times.
✓ Branch 4 taken 47 times.
|
47 | return RefrigerationSystem_Impl::listTemplate<RefrigerationCompressor>(highStageCompressorList()); |
| 241 | } | ||
| 242 | |||
| 243 | 32 | std::vector<RefrigerationSecondarySystem> RefrigerationSystem_Impl::secondarySystemLoads() const { | |
| 244 |
2/2✓ Branch 1 taken 32 times.
✓ Branch 4 taken 32 times.
|
32 | return RefrigerationSystem_Impl::listTemplate<RefrigerationSecondarySystem>(refrigerationTransferLoadList()); |
| 245 | } | ||
| 246 | |||
| 247 | 50 | std::vector<RefrigerationCondenserCascade> RefrigerationSystem_Impl::cascadeCondenserLoads() const { | |
| 248 |
2/2✓ Branch 1 taken 50 times.
✓ Branch 4 taken 50 times.
|
50 | return RefrigerationSystem_Impl::listTemplate<RefrigerationCondenserCascade>(refrigerationTransferLoadList()); |
| 249 | } | ||
| 250 | |||
| 251 | 68 | std::vector<RefrigerationAirChiller> RefrigerationSystem_Impl::airChillers() const { | |
| 252 |
2/2✓ Branch 1 taken 68 times.
✓ Branch 4 taken 68 times.
|
68 | return RefrigerationSystem_Impl::listTemplate<RefrigerationAirChiller>(refrigeratedCaseAndWalkInList()); |
| 253 | } | ||
| 254 | |||
| 255 | 300 | boost::optional<ModelObjectList> RefrigerationSystem_Impl::refrigeratedCaseAndWalkInList() const { | |
| 256 |
2/2✓ Branch 1 taken 300 times.
✓ Branch 4 taken 300 times.
|
300 | return getObject<ModelObject>().getModelObjectTarget<ModelObjectList>(OS_Refrigeration_SystemFields::RefrigeratedCaseAndWalkInListName); |
| 257 | } | ||
| 258 | |||
| 259 | 171 | boost::optional<ModelObjectList> RefrigerationSystem_Impl::refrigerationTransferLoadList() const { | |
| 260 |
2/2✓ Branch 1 taken 171 times.
✓ Branch 4 taken 171 times.
|
171 | return getObject<ModelObject>().getModelObjectTarget<ModelObjectList>(OS_Refrigeration_SystemFields::RefrigerationTransferLoadListName); |
| 261 | } | ||
| 262 | |||
| 263 | 56 | boost::optional<ModelObject> RefrigerationSystem_Impl::refrigerationCondenser() const { | |
| 264 | 56 | return optionalRefrigerationCondenser(); | |
| 265 | } | ||
| 266 | |||
| 267 | 97 | ModelObjectList RefrigerationSystem_Impl::compressorList() const { | |
| 268 |
1/1✓ Branch 1 taken 97 times.
|
97 | boost::optional<ModelObjectList> value = optionalCompressorList(); |
| 269 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 97 times.
|
97 | if (!value) { |
| 270 | ✗ | LOG_AND_THROW(briefDescription() << " does not have an Compressor List attached."); | |
| 271 | } | ||
| 272 |
2/2✓ Branch 1 taken 97 times.
✓ Branch 4 taken 97 times.
|
194 | return value.get(); |
| 273 | 97 | } | |
| 274 | |||
| 275 | 4 | double RefrigerationSystem_Impl::minimumCondensingTemperature() const { | |
| 276 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Refrigeration_SystemFields::MinimumCondensingTemperature, true); |
| 277 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 278 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 279 | } | ||
| 280 | |||
| 281 | 5 | std::string RefrigerationSystem_Impl::refrigerationSystemWorkingFluidType() const { | |
| 282 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<std::string> value = getString(OS_Refrigeration_SystemFields::RefrigerationSystemWorkingFluidType, true); |
| 283 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 5 times.
✗ Branch 4 not taken.
|
5 | OS_ASSERT(value); |
| 284 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
10 | return value.get(); |
| 285 | 5 | } | |
| 286 | |||
| 287 | 4 | std::string RefrigerationSystem_Impl::suctionTemperatureControlType() const { | |
| 288 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<std::string> value = getString(OS_Refrigeration_SystemFields::SuctionTemperatureControlType, true); |
| 289 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 290 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | return value.get(); |
| 291 | 4 | } | |
| 292 | |||
| 293 | ✗ | bool RefrigerationSystem_Impl::isSuctionTemperatureControlTypeDefaulted() const { | |
| 294 | ✗ | return isEmpty(OS_Refrigeration_SystemFields::SuctionTemperatureControlType); | |
| 295 | } | ||
| 296 | |||
| 297 | 39 | boost::optional<RefrigerationSubcoolerMechanical> RefrigerationSystem_Impl::mechanicalSubcooler() const { | |
| 298 |
2/2✓ Branch 1 taken 39 times.
✓ Branch 4 taken 39 times.
|
39 | return getObject<ModelObject>().getModelObjectTarget<RefrigerationSubcoolerMechanical>(OS_Refrigeration_SystemFields::MechanicalSubcoolerName); |
| 299 | } | ||
| 300 | |||
| 301 | 39 | boost::optional<RefrigerationSubcoolerLiquidSuction> RefrigerationSystem_Impl::liquidSuctionHeatExchangerSubcooler() const { | |
| 302 |
1/1✓ Branch 1 taken 39 times.
|
78 | return getObject<ModelObject>().getModelObjectTarget<RefrigerationSubcoolerLiquidSuction>( |
| 303 |
1/1✓ Branch 1 taken 39 times.
|
78 | OS_Refrigeration_SystemFields::LiquidSuctionHeatExchangerSubcoolerName); |
| 304 | } | ||
| 305 | |||
| 306 | 4 | double RefrigerationSystem_Impl::sumUASuctionPiping() const { | |
| 307 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Refrigeration_SystemFields::SumUASuctionPiping, true); |
| 308 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 309 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 310 | } | ||
| 311 | |||
| 312 | 4 | bool RefrigerationSystem_Impl::isSumUASuctionPipingDefaulted() const { | |
| 313 | 4 | return isEmpty(OS_Refrigeration_SystemFields::SumUASuctionPiping); | |
| 314 | } | ||
| 315 | |||
| 316 | 2 | boost::optional<ThermalZone> RefrigerationSystem_Impl::suctionPipingZone() const { | |
| 317 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | return getObject<ModelObject>().getModelObjectTarget<ThermalZone>(OS_Refrigeration_SystemFields::SuctionPipingZoneName); |
| 318 | } | ||
| 319 | |||
| 320 | ✗ | std::string RefrigerationSystem_Impl::endUseSubcategory() const { | |
| 321 | ✗ | boost::optional<std::string> value = getString(OS_Refrigeration_SystemFields::EndUseSubcategory, true); | |
| 322 | ✗ | OS_ASSERT(value); | |
| 323 | ✗ | return value.get(); | |
| 324 | ✗ | } | |
| 325 | |||
| 326 | ✗ | bool RefrigerationSystem_Impl::isEndUseSubcategoryDefaulted() const { | |
| 327 | ✗ | return isEmpty(OS_Refrigeration_SystemFields::EndUseSubcategory); | |
| 328 | } | ||
| 329 | |||
| 330 | ✗ | std::string RefrigerationSystem_Impl::numberofCompressorStages() const { | |
| 331 | ✗ | if (this->highStageCompressors().empty()) { | |
| 332 | ✗ | return "1"; | |
| 333 | } else { | ||
| 334 | ✗ | return "2"; | |
| 335 | } | ||
| 336 | } | ||
| 337 | |||
| 338 | ✗ | std::string RefrigerationSystem_Impl::intercoolerType() const { | |
| 339 | ✗ | boost::optional<std::string> value = getString(OS_Refrigeration_SystemFields::IntercoolerType, true); | |
| 340 | ✗ | OS_ASSERT(value); | |
| 341 | ✗ | return value.get(); | |
| 342 | ✗ | } | |
| 343 | |||
| 344 | ✗ | bool RefrigerationSystem_Impl::isIntercoolerTypeDefaulted() const { | |
| 345 | ✗ | return isEmpty(OS_Refrigeration_SystemFields::IntercoolerType); | |
| 346 | } | ||
| 347 | |||
| 348 | ✗ | double RefrigerationSystem_Impl::shellandCoilIntercoolerEffectiveness() const { | |
| 349 | ✗ | boost::optional<double> value = getDouble(OS_Refrigeration_SystemFields::ShellandCoilIntercoolerEffectiveness, true); | |
| 350 | ✗ | OS_ASSERT(value); | |
| 351 | ✗ | return value.get(); | |
| 352 | } | ||
| 353 | |||
| 354 | ✗ | bool RefrigerationSystem_Impl::isShellandCoilIntercoolerEffectivenessDefaulted() const { | |
| 355 | ✗ | return isEmpty(OS_Refrigeration_SystemFields::ShellandCoilIntercoolerEffectiveness); | |
| 356 | } | ||
| 357 | |||
| 358 | 90 | boost::optional<ModelObjectList> RefrigerationSystem_Impl::highStageCompressorList() const { | |
| 359 |
2/2✓ Branch 1 taken 90 times.
✓ Branch 4 taken 90 times.
|
90 | return getObject<ModelObject>().getModelObjectTarget<ModelObjectList>(OS_Refrigeration_SystemFields::HighStageCompressorListName); |
| 360 | } | ||
| 361 | |||
| 362 | template <class T> | ||
| 363 | 12 | void RefrigerationSystem_Impl::removeAllTemplate(boost::optional<ModelObjectList>& modelObjectList) { | |
| 364 |
6/12void openstudio::model::detail::RefrigerationSystem_Impl::removeAllTemplate<openstudio::model::RefrigerationAirChiller>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
void openstudio::model::detail::RefrigerationSystem_Impl::removeAllTemplate<openstudio::model::RefrigerationCase>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
void openstudio::model::detail::RefrigerationSystem_Impl::removeAllTemplate<openstudio::model::RefrigerationCompressor>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
void openstudio::model::detail::RefrigerationSystem_Impl::removeAllTemplate<openstudio::model::RefrigerationCondenserCascade>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
void openstudio::model::detail::RefrigerationSystem_Impl::removeAllTemplate<openstudio::model::RefrigerationSecondarySystem>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
void openstudio::model::detail::RefrigerationSystem_Impl::removeAllTemplate<openstudio::model::RefrigerationWalkIn>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 3 times.
✗ Branch 1 not taken.
|
12 | if (modelObjectList) { |
| 365 |
12/12void openstudio::model::detail::RefrigerationSystem_Impl::removeAllTemplate<openstudio::model::RefrigerationAirChiller>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
void openstudio::model::detail::RefrigerationSystem_Impl::removeAllTemplate<openstudio::model::RefrigerationCase>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
void openstudio::model::detail::RefrigerationSystem_Impl::removeAllTemplate<openstudio::model::RefrigerationCompressor>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
void openstudio::model::detail::RefrigerationSystem_Impl::removeAllTemplate<openstudio::model::RefrigerationCondenserCascade>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
void openstudio::model::detail::RefrigerationSystem_Impl::removeAllTemplate<openstudio::model::RefrigerationSecondarySystem>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
void openstudio::model::detail::RefrigerationSystem_Impl::removeAllTemplate<openstudio::model::RefrigerationWalkIn>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
12 | std::vector<ModelObject> modelObjects = modelObjectList->modelObjects(); |
| 366 | |||
| 367 |
12/12void openstudio::model::detail::RefrigerationSystem_Impl::removeAllTemplate<openstudio::model::RefrigerationAirChiller>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 6 taken 2 times.
✓ Branch 7 taken 1 time.
void openstudio::model::detail::RefrigerationSystem_Impl::removeAllTemplate<openstudio::model::RefrigerationCase>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 6 taken 8 times.
✓ Branch 7 taken 3 times.
void openstudio::model::detail::RefrigerationSystem_Impl::removeAllTemplate<openstudio::model::RefrigerationCompressor>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 6 taken 2 times.
✓ Branch 7 taken 1 time.
void openstudio::model::detail::RefrigerationSystem_Impl::removeAllTemplate<openstudio::model::RefrigerationCondenserCascade>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 6 taken 6 times.
✓ Branch 7 taken 2 times.
void openstudio::model::detail::RefrigerationSystem_Impl::removeAllTemplate<openstudio::model::RefrigerationSecondarySystem>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 6 taken 4 times.
✓ Branch 7 taken 2 times.
void openstudio::model::detail::RefrigerationSystem_Impl::removeAllTemplate<openstudio::model::RefrigerationWalkIn>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 6 taken 5 times.
✓ Branch 7 taken 3 times.
|
39 | for (const auto& elem : modelObjects) { |
| 368 |
6/6void openstudio::model::detail::RefrigerationSystem_Impl::removeAllTemplate<openstudio::model::RefrigerationAirChiller>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 1 taken 2 times.
void openstudio::model::detail::RefrigerationSystem_Impl::removeAllTemplate<openstudio::model::RefrigerationCase>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 1 taken 8 times.
void openstudio::model::detail::RefrigerationSystem_Impl::removeAllTemplate<openstudio::model::RefrigerationCompressor>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 1 taken 2 times.
void openstudio::model::detail::RefrigerationSystem_Impl::removeAllTemplate<openstudio::model::RefrigerationCondenserCascade>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 1 taken 6 times.
void openstudio::model::detail::RefrigerationSystem_Impl::removeAllTemplate<openstudio::model::RefrigerationSecondarySystem>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 1 taken 4 times.
void openstudio::model::detail::RefrigerationSystem_Impl::removeAllTemplate<openstudio::model::RefrigerationWalkIn>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 1 taken 5 times.
|
27 | boost::optional<T> modelObject = elem.optionalCast<T>(); |
| 369 |
8/12void openstudio::model::detail::RefrigerationSystem_Impl::removeAllTemplate<openstudio::model::RefrigerationAirChiller>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
void openstudio::model::detail::RefrigerationSystem_Impl::removeAllTemplate<openstudio::model::RefrigerationCase>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 5 times.
✓ Branch 1 taken 3 times.
void openstudio::model::detail::RefrigerationSystem_Impl::removeAllTemplate<openstudio::model::RefrigerationCompressor>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
void openstudio::model::detail::RefrigerationSystem_Impl::removeAllTemplate<openstudio::model::RefrigerationCondenserCascade>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 4 times.
✓ Branch 1 taken 2 times.
void openstudio::model::detail::RefrigerationSystem_Impl::removeAllTemplate<openstudio::model::RefrigerationSecondarySystem>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
void openstudio::model::detail::RefrigerationSystem_Impl::removeAllTemplate<openstudio::model::RefrigerationWalkIn>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
|
27 | if (modelObject) { |
| 370 |
12/12void openstudio::model::detail::RefrigerationSystem_Impl::removeAllTemplate<openstudio::model::RefrigerationAirChiller>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
void openstudio::model::detail::RefrigerationSystem_Impl::removeAllTemplate<openstudio::model::RefrigerationCase>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
void openstudio::model::detail::RefrigerationSystem_Impl::removeAllTemplate<openstudio::model::RefrigerationCompressor>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
void openstudio::model::detail::RefrigerationSystem_Impl::removeAllTemplate<openstudio::model::RefrigerationCondenserCascade>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
void openstudio::model::detail::RefrigerationSystem_Impl::removeAllTemplate<openstudio::model::RefrigerationSecondarySystem>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
void openstudio::model::detail::RefrigerationSystem_Impl::removeAllTemplate<openstudio::model::RefrigerationWalkIn>(boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
22 | modelObjectList->removeModelObject(elem); |
| 371 | } | ||
| 372 | } | ||
| 373 | 12 | } | |
| 374 | 12 | } | |
| 375 | |||
| 376 | template <class T> | ||
| 377 | 38 | void RefrigerationSystem_Impl::removeTemplate(const T& modelObject, boost::optional<ModelObjectList>& modelObjectList) { | |
| 378 |
6/12void openstudio::model::detail::RefrigerationSystem_Impl::removeTemplate<openstudio::model::RefrigerationAirChiller>(openstudio::model::RefrigerationAirChiller const&, boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
void openstudio::model::detail::RefrigerationSystem_Impl::removeTemplate<openstudio::model::RefrigerationCase>(openstudio::model::RefrigerationCase const&, boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 7 times.
✗ Branch 1 not taken.
void openstudio::model::detail::RefrigerationSystem_Impl::removeTemplate<openstudio::model::RefrigerationCompressor>(openstudio::model::RefrigerationCompressor const&, boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
void openstudio::model::detail::RefrigerationSystem_Impl::removeTemplate<openstudio::model::RefrigerationCondenserCascade>(openstudio::model::RefrigerationCondenserCascade const&, boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 7 times.
✗ Branch 1 not taken.
void openstudio::model::detail::RefrigerationSystem_Impl::removeTemplate<openstudio::model::RefrigerationSecondarySystem>(openstudio::model::RefrigerationSecondarySystem const&, boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 7 times.
✗ Branch 1 not taken.
void openstudio::model::detail::RefrigerationSystem_Impl::removeTemplate<openstudio::model::RefrigerationWalkIn>(openstudio::model::RefrigerationWalkIn const&, boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 7 times.
✗ Branch 1 not taken.
|
38 | if (modelObjectList) { |
| 379 | 38 | modelObjectList->removeModelObject(modelObject); | |
| 380 | } | ||
| 381 | 38 | } | |
| 382 | |||
| 383 | template <class T> | ||
| 384 | 82 | bool RefrigerationSystem_Impl::addTemplate(const T& modelObject, boost::optional<ModelObjectList>& modelObjectList) { | |
| 385 |
6/12bool openstudio::model::detail::RefrigerationSystem_Impl::addTemplate<openstudio::model::RefrigerationAirChiller>(openstudio::model::RefrigerationAirChiller const&, boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 11 times.
✗ Branch 1 not taken.
bool openstudio::model::detail::RefrigerationSystem_Impl::addTemplate<openstudio::model::RefrigerationCase>(openstudio::model::RefrigerationCase const&, boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 17 times.
✗ Branch 1 not taken.
bool openstudio::model::detail::RefrigerationSystem_Impl::addTemplate<openstudio::model::RefrigerationCompressor>(openstudio::model::RefrigerationCompressor const&, boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 9 times.
✗ Branch 1 not taken.
bool openstudio::model::detail::RefrigerationSystem_Impl::addTemplate<openstudio::model::RefrigerationCondenserCascade>(openstudio::model::RefrigerationCondenserCascade const&, boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 14 times.
✗ Branch 1 not taken.
bool openstudio::model::detail::RefrigerationSystem_Impl::addTemplate<openstudio::model::RefrigerationSecondarySystem>(openstudio::model::RefrigerationSecondarySystem const&, boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 14 times.
✗ Branch 1 not taken.
bool openstudio::model::detail::RefrigerationSystem_Impl::addTemplate<openstudio::model::RefrigerationWalkIn>(openstudio::model::RefrigerationWalkIn const&, boost::optional<openstudio::model::ModelObjectList>&):
✓ Branch 0 taken 17 times.
✗ Branch 1 not taken.
|
82 | if (modelObjectList) { |
| 386 | 82 | return modelObjectList->addModelObject(modelObject); | |
| 387 | } | ||
| 388 | ✗ | return false; | |
| 389 | } | ||
| 390 | |||
| 391 | 18 | bool RefrigerationSystem_Impl::addCase(const RefrigerationCase& refrigerationCase) { | |
| 392 | // From 9.2 IO ref: | ||
| 393 | // > This list may contain a combination of case and walk-in names OR a list of air chiller names. | ||
| 394 | // > Air chillers may not be included in any list that also includes cases or walk-ins. | ||
| 395 |
3/3✓ Branch 1 taken 18 times.
✓ Branch 5 taken 1 time.
✓ Branch 6 taken 17 times.
|
18 | if (!this->airChillers().empty()) { |
| 396 |
7/7✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 14 taken 1 time.
✓ Branch 17 taken 1 time.
✓ Branch 20 taken 1 time.
|
1 | LOG(Warn, "You cannot mix RefigerationCase/RefrigerationWalkins with RefrigerationAirChillers, occurred for " << briefDescription()); |
| 397 | 1 | return false; | |
| 398 | } | ||
| 399 | |||
| 400 | // Enforce unicity | ||
| 401 |
3/3✓ Branch 1 taken 17 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 16 times.
|
34 | if (boost::optional<RefrigerationSystem> currentSystem = refrigerationCase.system()) { |
| 402 |
11/11✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 27 taken 1 time.
✓ Branch 30 taken 1 time.
✓ Branch 33 taken 1 time.
|
1 | LOG(Warn, refrigerationCase.briefDescription() |
| 403 | << " was removed from its existing RefrigerationSystem named '" << currentSystem->nameString() << "'."); | ||
| 404 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | currentSystem->removeCase(refrigerationCase); |
| 405 | 17 | } | |
| 406 | |||
| 407 |
1/1✓ Branch 1 taken 17 times.
|
17 | boost::optional<ModelObjectList> modelObjectList = refrigeratedCaseAndWalkInList(); |
| 408 |
1/1✓ Branch 1 taken 17 times.
|
17 | return addTemplate<RefrigerationCase>(refrigerationCase, modelObjectList); |
| 409 | 17 | } | |
| 410 | |||
| 411 | 7 | void RefrigerationSystem_Impl::removeCase(const RefrigerationCase& refrigerationCase) { | |
| 412 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<ModelObjectList> modelObjectList = refrigeratedCaseAndWalkInList(); |
| 413 |
1/1✓ Branch 1 taken 7 times.
|
7 | removeTemplate<RefrigerationCase>(refrigerationCase, modelObjectList); |
| 414 | 7 | } | |
| 415 | |||
| 416 | 3 | void RefrigerationSystem_Impl::removeAllCases() { | |
| 417 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<ModelObjectList> modelObjectList = refrigeratedCaseAndWalkInList(); |
| 418 |
1/1✓ Branch 1 taken 3 times.
|
3 | removeAllTemplate<RefrigerationCase>(modelObjectList); |
| 419 | 3 | } | |
| 420 | |||
| 421 | 18 | bool RefrigerationSystem_Impl::addWalkin(const RefrigerationWalkIn& refrigerationWalkin) { | |
| 422 | // From 9.2 IO ref: | ||
| 423 | // > This list may contain a combination of case and walk-in names OR a list of air chiller names. | ||
| 424 | // > Air chillers may not be included in any list that also includes cases or walk-ins. | ||
| 425 |
3/3✓ Branch 1 taken 18 times.
✓ Branch 5 taken 1 time.
✓ Branch 6 taken 17 times.
|
18 | if (!this->airChillers().empty()) { |
| 426 |
7/7✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 14 taken 1 time.
✓ Branch 17 taken 1 time.
✓ Branch 20 taken 1 time.
|
1 | LOG(Warn, "You cannot mix RefigerationCase/RefrigerationWalkins with RefrigerationAirChillers, occurred for " << briefDescription()); |
| 427 | 1 | return false; | |
| 428 | } | ||
| 429 | |||
| 430 | // Enforce unicity | ||
| 431 |
3/3✓ Branch 1 taken 17 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 16 times.
|
34 | if (boost::optional<RefrigerationSystem> currentSystem = refrigerationWalkin.system()) { |
| 432 |
11/11✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 27 taken 1 time.
✓ Branch 30 taken 1 time.
✓ Branch 33 taken 1 time.
|
1 | LOG(Warn, refrigerationWalkin.briefDescription() |
| 433 | << " was removed from its existing RefrigerationSystem named '" << currentSystem->nameString() << "'."); | ||
| 434 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | currentSystem->removeWalkin(refrigerationWalkin); |
| 435 | 17 | } | |
| 436 | |||
| 437 |
1/1✓ Branch 1 taken 17 times.
|
17 | boost::optional<ModelObjectList> modelObjectList = refrigeratedCaseAndWalkInList(); |
| 438 |
1/1✓ Branch 1 taken 17 times.
|
17 | return addTemplate<RefrigerationWalkIn>(refrigerationWalkin, modelObjectList); |
| 439 | 17 | } | |
| 440 | |||
| 441 | 7 | void RefrigerationSystem_Impl::removeWalkin(const RefrigerationWalkIn& refrigerationWalkin) { | |
| 442 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<ModelObjectList> modelObjectList = refrigeratedCaseAndWalkInList(); |
| 443 |
1/1✓ Branch 1 taken 7 times.
|
7 | removeTemplate<RefrigerationWalkIn>(refrigerationWalkin, modelObjectList); |
| 444 | 7 | } | |
| 445 | |||
| 446 | 3 | void RefrigerationSystem_Impl::removeAllWalkins() { | |
| 447 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<ModelObjectList> modelObjectList = refrigeratedCaseAndWalkInList(); |
| 448 |
1/1✓ Branch 1 taken 3 times.
|
3 | removeAllTemplate<RefrigerationWalkIn>(modelObjectList); |
| 449 | 3 | } | |
| 450 | |||
| 451 | 12 | bool RefrigerationSystem_Impl::addAirChiller(const RefrigerationAirChiller& refrigerationAirChiller) { | |
| 452 | // From 9.2 IO ref: | ||
| 453 | // > This list may contain a combination of case and walk-in names OR a list of air chiller names. | ||
| 454 | // > Air chillers may not be included in any list that also includes cases or walk-ins. | ||
| 455 |
2/3✓ Branch 1 taken 12 times.
✓ Branch 3 taken 12 times.
✗ Branch 4 not taken.
|
24 | if (boost::optional<ModelObjectList> modelObjectList = refrigeratedCaseAndWalkInList()) { |
| 456 |
2/2✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
|
12 | std::vector<ModelObject> modelObjects = modelObjectList->modelObjects(); |
| 457 | |||
| 458 |
2/2✓ Branch 5 taken 5 times.
✓ Branch 6 taken 11 times.
|
16 | for (const auto& elem : modelObjects) { |
| 459 |
10/16✓ Branch 1 taken 5 times.
✓ Branch 4 taken 4 times.
✓ Branch 5 taken 1 time.
✓ Branch 7 taken 4 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 4 times.
✓ Branch 12 taken 4 times.
✓ Branch 13 taken 1 time.
✓ Branch 15 taken 5 times.
✗ Branch 16 not taken.
✓ Branch 18 taken 1 time.
✓ Branch 19 taken 4 times.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 23 not taken.
✗ Branch 24 not taken.
|
14 | if (elem.optionalCast<RefrigerationWalkIn>() || elem.optionalCast<RefrigerationCase>()) { |
| 460 |
7/7✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 14 taken 1 time.
✓ Branch 17 taken 1 time.
✓ Branch 20 taken 1 time.
|
1 | LOG(Warn, "You cannot mix RefigerationCase/RefrigerationWalkins with RefrigerationAirChillers, occurred for " << briefDescription()); |
| 461 | 1 | return false; | |
| 462 | } | ||
| 463 | } | ||
| 464 | 24 | } | |
| 465 | |||
| 466 | // Enforce unicity | ||
| 467 |
3/3✓ Branch 1 taken 11 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 10 times.
|
22 | if (boost::optional<RefrigerationSystem> currentSystem = refrigerationAirChiller.system()) { |
| 468 |
11/11✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 27 taken 1 time.
✓ Branch 30 taken 1 time.
✓ Branch 33 taken 1 time.
|
1 | LOG(Warn, refrigerationAirChiller.briefDescription() |
| 469 | << " was removed from its existing RefrigerationSystem named '" << currentSystem->nameString() << "'."); | ||
| 470 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | currentSystem->removeAirChiller(refrigerationAirChiller); |
| 471 | 11 | } | |
| 472 | |||
| 473 |
1/1✓ Branch 1 taken 11 times.
|
11 | boost::optional<ModelObjectList> modelObjectList = refrigeratedCaseAndWalkInList(); |
| 474 |
1/1✓ Branch 1 taken 11 times.
|
11 | return addTemplate<RefrigerationAirChiller>(refrigerationAirChiller, modelObjectList); |
| 475 | 11 | } | |
| 476 | |||
| 477 | 5 | void RefrigerationSystem_Impl::removeAirChiller(const RefrigerationAirChiller& refrigerationAirChiller) { | |
| 478 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<ModelObjectList> modelObjectList = refrigeratedCaseAndWalkInList(); |
| 479 |
1/1✓ Branch 1 taken 5 times.
|
5 | removeTemplate<RefrigerationAirChiller>(refrigerationAirChiller, modelObjectList); |
| 480 | 5 | } | |
| 481 | |||
| 482 | 1 | void RefrigerationSystem_Impl::removeAllAirChillers() { | |
| 483 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<ModelObjectList> modelObjectList = refrigeratedCaseAndWalkInList(); |
| 484 |
1/1✓ Branch 1 taken 1 time.
|
1 | removeAllTemplate<RefrigerationAirChiller>(modelObjectList); |
| 485 | 1 | } | |
| 486 | |||
| 487 | 10 | bool RefrigerationSystem_Impl::addCompressor(const RefrigerationCompressor& refrigerationCompressor) { | |
| 488 | // Enforce unicity | ||
| 489 |
3/3✓ Branch 1 taken 10 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 9 times.
|
20 | if (boost::optional<RefrigerationSystem> currentSystem = refrigerationCompressor.system()) { |
| 490 |
11/11✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 27 taken 1 time.
✓ Branch 30 taken 1 time.
✓ Branch 33 taken 1 time.
|
1 | LOG(Warn, refrigerationCompressor.briefDescription() |
| 491 | << " was removed from its existing RefrigerationSystem (non High Stage) named '" << currentSystem->nameString() << "'."); | ||
| 492 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | currentSystem->removeCompressor(refrigerationCompressor); |
| 493 | 10 | } | |
| 494 | |||
| 495 |
2/2✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
|
10 | return compressorList().addModelObject(refrigerationCompressor); |
| 496 | } | ||
| 497 | |||
| 498 | 7 | void RefrigerationSystem_Impl::removeCompressor(const RefrigerationCompressor& refrigerationCompressor) { | |
| 499 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
7 | compressorList().removeModelObject(refrigerationCompressor); |
| 500 | 7 | } | |
| 501 | |||
| 502 | 1 | void RefrigerationSystem_Impl::removeAllCompressors() { | |
| 503 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | compressorList().removeAllModelObjects(); |
| 504 | 1 | } | |
| 505 | |||
| 506 | 9 | bool RefrigerationSystem_Impl::addHighStageCompressor(const RefrigerationCompressor& refrigerationHighStageCompressor) { | |
| 507 | // Enforce unicity | ||
| 508 |
3/3✓ Branch 1 taken 9 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 8 times.
|
18 | if (boost::optional<RefrigerationSystem> currentSystem = refrigerationHighStageCompressor.system()) { |
| 509 |
11/11✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 27 taken 1 time.
✓ Branch 30 taken 1 time.
✓ Branch 33 taken 1 time.
|
1 | LOG(Warn, refrigerationHighStageCompressor.briefDescription() |
| 510 | << " was removed from its existing RefrigerationSystem (High Stage) named '" << currentSystem->nameString() << "'."); | ||
| 511 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | currentSystem->removeCompressor(refrigerationHighStageCompressor); |
| 512 | 9 | } | |
| 513 |
1/1✓ Branch 1 taken 9 times.
|
9 | boost::optional<ModelObjectList> modelObjectList = highStageCompressorList(); |
| 514 |
1/1✓ Branch 1 taken 9 times.
|
18 | return addTemplate<RefrigerationCompressor>(refrigerationHighStageCompressor, modelObjectList); |
| 515 | 9 | } | |
| 516 | |||
| 517 | 5 | void RefrigerationSystem_Impl::removeHighStageCompressor(const RefrigerationCompressor& refrigerationHighStageCompressor) { | |
| 518 |
1/1✓ Branch 1 taken 5 times.
|
5 | boost::optional<ModelObjectList> modelObjectList = highStageCompressorList(); |
| 519 |
1/1✓ Branch 1 taken 5 times.
|
5 | removeTemplate<RefrigerationCompressor>(refrigerationHighStageCompressor, modelObjectList); |
| 520 | 5 | } | |
| 521 | |||
| 522 | 1 | void RefrigerationSystem_Impl::removeAllHighStageCompressors() { | |
| 523 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<ModelObjectList> modelObjectList = highStageCompressorList(); |
| 524 |
1/1✓ Branch 1 taken 1 time.
|
1 | removeAllTemplate<RefrigerationCompressor>(modelObjectList); |
| 525 | 1 | } | |
| 526 | |||
| 527 | 14 | bool RefrigerationSystem_Impl::addSecondarySystemLoad(const RefrigerationSecondarySystem& refrigerationSecondarySystem) { | |
| 528 | // Enforce unicity | ||
| 529 |
3/3✓ Branch 1 taken 14 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 13 times.
|
28 | if (boost::optional<RefrigerationSystem> currentSystem = refrigerationSecondarySystem.system()) { |
| 530 |
11/11✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 27 taken 1 time.
✓ Branch 30 taken 1 time.
✓ Branch 33 taken 1 time.
|
1 | LOG(Warn, refrigerationSecondarySystem.briefDescription() |
| 531 | << " was removed from its existing RefrigerationSystem named '" << currentSystem->nameString() << "'."); | ||
| 532 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | currentSystem->removeSecondarySystemLoad(refrigerationSecondarySystem); |
| 533 | 14 | } | |
| 534 |
1/1✓ Branch 1 taken 14 times.
|
14 | boost::optional<ModelObjectList> modelObjectList = refrigerationTransferLoadList(); |
| 535 |
1/1✓ Branch 1 taken 14 times.
|
28 | return addTemplate<RefrigerationSecondarySystem>(refrigerationSecondarySystem, modelObjectList); |
| 536 | 14 | } | |
| 537 | |||
| 538 | 7 | void RefrigerationSystem_Impl::removeSecondarySystemLoad(const RefrigerationSecondarySystem& refrigerationSecondarySystem) { | |
| 539 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<ModelObjectList> modelObjectList = refrigerationTransferLoadList(); |
| 540 |
1/1✓ Branch 1 taken 7 times.
|
7 | removeTemplate<RefrigerationSecondarySystem>(refrigerationSecondarySystem, modelObjectList); |
| 541 | 7 | } | |
| 542 | |||
| 543 | 2 | void RefrigerationSystem_Impl::removeAllSecondarySystemLoads() { | |
| 544 |
1/1✓ Branch 1 taken 2 times.
|
2 | boost::optional<ModelObjectList> modelObjectList = refrigerationTransferLoadList(); |
| 545 |
1/1✓ Branch 1 taken 2 times.
|
2 | removeAllTemplate<RefrigerationSecondarySystem>(modelObjectList); |
| 546 | 2 | } | |
| 547 | |||
| 548 | 14 | bool RefrigerationSystem_Impl::addCascadeCondenserLoad(const RefrigerationCondenserCascade& refrigerationCondenserCascade) { | |
| 549 | // Enforce unicity | ||
| 550 |
3/3✓ Branch 1 taken 14 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 13 times.
|
28 | if (boost::optional<RefrigerationSystem> currentSystem = refrigerationCondenserCascade.system()) { |
| 551 |
11/11✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 27 taken 1 time.
✓ Branch 30 taken 1 time.
✓ Branch 33 taken 1 time.
|
1 | LOG(Warn, refrigerationCondenserCascade.briefDescription() |
| 552 | << " was removed from its existing RefrigerationSystem named '" << currentSystem->nameString() << "'."); | ||
| 553 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | currentSystem->removeCascadeCondenserLoad(refrigerationCondenserCascade); |
| 554 | 14 | } | |
| 555 |
1/1✓ Branch 1 taken 14 times.
|
14 | boost::optional<ModelObjectList> modelObjectList = refrigerationTransferLoadList(); |
| 556 |
1/1✓ Branch 1 taken 14 times.
|
28 | return addTemplate<RefrigerationCondenserCascade>(refrigerationCondenserCascade, modelObjectList); |
| 557 | 14 | } | |
| 558 | |||
| 559 | 7 | void RefrigerationSystem_Impl::removeCascadeCondenserLoad(const RefrigerationCondenserCascade& refrigerationCondenserCascade) { | |
| 560 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<ModelObjectList> modelObjectList = refrigerationTransferLoadList(); |
| 561 |
1/1✓ Branch 1 taken 7 times.
|
7 | removeTemplate<RefrigerationCondenserCascade>(refrigerationCondenserCascade, modelObjectList); |
| 562 | 7 | } | |
| 563 | |||
| 564 | 2 | void RefrigerationSystem_Impl::removeAllCascadeCondenserLoads() { | |
| 565 |
1/1✓ Branch 1 taken 2 times.
|
2 | boost::optional<ModelObjectList> modelObjectList = refrigerationTransferLoadList(); |
| 566 |
1/1✓ Branch 1 taken 2 times.
|
2 | removeAllTemplate<RefrigerationCondenserCascade>(modelObjectList); |
| 567 | 2 | } | |
| 568 | |||
| 569 | 85 | bool RefrigerationSystem_Impl::setRefrigeratedCaseAndWalkInList(const boost::optional<ModelObjectList>& modelObjectList) { | |
| 570 | 85 | bool result(false); | |
| 571 |
1/2✓ Branch 0 taken 85 times.
✗ Branch 1 not taken.
|
85 | if (modelObjectList) { |
| 572 |
3/3✓ Branch 1 taken 85 times.
✓ Branch 4 taken 85 times.
✓ Branch 7 taken 85 times.
|
85 | result = setPointer(OS_Refrigeration_SystemFields::RefrigeratedCaseAndWalkInListName, modelObjectList.get().handle()); |
| 573 | } else { | ||
| 574 | ✗ | resetRefrigeratedCaseAndWalkInList(); | |
| 575 | ✗ | result = true; | |
| 576 | } | ||
| 577 | 85 | return result; | |
| 578 | } | ||
| 579 | |||
| 580 | ✗ | void RefrigerationSystem_Impl::resetRefrigeratedCaseAndWalkInList() { | |
| 581 | ✗ | bool result = setString(OS_Refrigeration_SystemFields::RefrigeratedCaseAndWalkInListName, ""); | |
| 582 | ✗ | OS_ASSERT(result); | |
| 583 | ✗ | } | |
| 584 | |||
| 585 | 85 | bool RefrigerationSystem_Impl::setRefrigerationTransferLoadList(const boost::optional<ModelObjectList>& modelObjectList) { | |
| 586 | 85 | bool result(false); | |
| 587 |
1/2✓ Branch 0 taken 85 times.
✗ Branch 1 not taken.
|
85 | if (modelObjectList) { |
| 588 |
3/3✓ Branch 1 taken 85 times.
✓ Branch 4 taken 85 times.
✓ Branch 7 taken 85 times.
|
85 | result = setPointer(OS_Refrigeration_SystemFields::RefrigerationTransferLoadListName, modelObjectList.get().handle()); |
| 589 | } else { | ||
| 590 | ✗ | resetRefrigerationTransferLoadList(); | |
| 591 | ✗ | result = true; | |
| 592 | } | ||
| 593 | 85 | return result; | |
| 594 | } | ||
| 595 | |||
| 596 | ✗ | void RefrigerationSystem_Impl::resetRefrigerationTransferLoadList() { | |
| 597 | ✗ | bool result = setString(OS_Refrigeration_SystemFields::RefrigerationTransferLoadListName, ""); | |
| 598 | ✗ | OS_ASSERT(result); | |
| 599 | ✗ | } | |
| 600 | |||
| 601 | 19 | bool RefrigerationSystem_Impl::setRefrigerationCondenser(const ModelObject& refrigerationCondenser) { | |
| 602 | |||
| 603 | 19 | boost::optional<RefrigerationSystem> currentSystem; | |
| 604 | // Enforce unicity | ||
| 605 |
3/3✓ Branch 1 taken 19 times.
✓ Branch 3 taken 4 times.
✓ Branch 4 taken 15 times.
|
38 | if (auto refrigerationCondenserAirCooled = refrigerationCondenser.optionalCast<RefrigerationCondenserAirCooled>()) { |
| 606 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | currentSystem = refrigerationCondenserAirCooled->system(); |
| 607 | 19 | } | |
| 608 | |||
| 609 |
2/2✓ Branch 1 taken 18 times.
✓ Branch 2 taken 1 time.
|
19 | if (!currentSystem) { |
| 610 |
3/3✓ Branch 1 taken 18 times.
✓ Branch 3 taken 3 times.
✓ Branch 4 taken 15 times.
|
36 | if (auto refrigerationCondenserWaterCooled = refrigerationCondenser.optionalCast<RefrigerationCondenserWaterCooled>()) { |
| 611 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | currentSystem = refrigerationCondenserWaterCooled->system(); |
| 612 | 18 | } | |
| 613 | } | ||
| 614 | |||
| 615 |
2/2✓ Branch 1 taken 17 times.
✓ Branch 2 taken 2 times.
|
19 | if (!currentSystem) { |
| 616 |
3/3✓ Branch 1 taken 17 times.
✓ Branch 3 taken 3 times.
✓ Branch 4 taken 14 times.
|
34 | if (auto refrigerationCondenserEvaporativeCooled = refrigerationCondenser.optionalCast<RefrigerationCondenserEvaporativeCooled>()) { |
| 617 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | currentSystem = refrigerationCondenserEvaporativeCooled->system(); |
| 618 | 17 | } | |
| 619 | } | ||
| 620 | |||
| 621 |
2/2✓ Branch 1 taken 16 times.
✓ Branch 2 taken 3 times.
|
19 | if (!currentSystem) { |
| 622 |
3/3✓ Branch 1 taken 16 times.
✓ Branch 3 taken 8 times.
✓ Branch 4 taken 8 times.
|
32 | if (auto refrigerationCondenserCascade = refrigerationCondenser.optionalCast<RefrigerationCondenserCascade>()) { |
| 623 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
|
8 | currentSystem = refrigerationCondenserCascade->heatRejectingSystem(); |
| 624 | 16 | } | |
| 625 | } | ||
| 626 | |||
| 627 |
2/2✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
|
19 | bool result = setPointer(OS_Refrigeration_SystemFields::RefrigerationCondenserName, refrigerationCondenser.handle()); |
| 628 |
11/12✓ Branch 0 taken 18 times.
✓ Branch 1 taken 1 time.
✓ Branch 2 taken 4 times.
✓ Branch 3 taken 14 times.
✓ Branch 5 taken 4 times.
✓ Branch 8 taken 4 times.
✓ Branch 11 taken 4 times.
✓ Branch 14 taken 4 times.
✓ Branch 16 taken 4 times.
✗ Branch 17 not taken.
✓ Branch 18 taken 4 times.
✓ Branch 19 taken 15 times.
|
37 | if (result && currentSystem && (currentSystem->handle() != this->handle())) { |
| 629 |
11/11✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 10 taken 4 times.
✓ Branch 13 taken 4 times.
✓ Branch 16 taken 4 times.
✓ Branch 19 taken 4 times.
✓ Branch 22 taken 4 times.
✓ Branch 27 taken 4 times.
✓ Branch 30 taken 4 times.
✓ Branch 33 taken 4 times.
|
4 | LOG(Warn, refrigerationCondenser.briefDescription() |
| 630 | << " was removed from its existing RefrigerationSystem (Condenser Name) named '" << currentSystem->nameString() << "'."); | ||
| 631 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
4 | currentSystem->resetRefrigerationCondenser(); |
| 632 | } | ||
| 633 | |||
| 634 | 19 | return result; | |
| 635 | 19 | } | |
| 636 | |||
| 637 | 4 | void RefrigerationSystem_Impl::resetRefrigerationCondenser() { | |
| 638 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | bool result = setString(OS_Refrigeration_SystemFields::RefrigerationCondenserName, ""); |
| 639 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
|
4 | OS_ASSERT(result); |
| 640 | 4 | } | |
| 641 | |||
| 642 | 85 | bool RefrigerationSystem_Impl::setCompressorList(const ModelObjectList& modelObjectList) { | |
| 643 |
2/2✓ Branch 1 taken 85 times.
✓ Branch 4 taken 85 times.
|
85 | bool result = setPointer(OS_Refrigeration_SystemFields::CompressorListName, modelObjectList.handle()); |
| 644 | 85 | return result; | |
| 645 | } | ||
| 646 | |||
| 647 | 77 | bool RefrigerationSystem_Impl::setMinimumCondensingTemperature(double minimumCondensingTemperature) { | |
| 648 | 77 | bool result = setDouble(OS_Refrigeration_SystemFields::MinimumCondensingTemperature, minimumCondensingTemperature); | |
| 649 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 77 times.
|
77 | OS_ASSERT(result); |
| 650 | 77 | return result; | |
| 651 | } | ||
| 652 | |||
| 653 | 80 | bool RefrigerationSystem_Impl::setRefrigerationSystemWorkingFluidType(const std::string& refrigerationSystemWorkingFluidType) { | |
| 654 | 80 | bool result = setString(OS_Refrigeration_SystemFields::RefrigerationSystemWorkingFluidType, refrigerationSystemWorkingFluidType); | |
| 655 | 80 | return result; | |
| 656 | } | ||
| 657 | |||
| 658 | 77 | bool RefrigerationSystem_Impl::setSuctionTemperatureControlType(const std::string& suctionTemperatureControlType) { | |
| 659 | 77 | bool result = setString(OS_Refrigeration_SystemFields::SuctionTemperatureControlType, suctionTemperatureControlType); | |
| 660 | 77 | return result; | |
| 661 | } | ||
| 662 | |||
| 663 | ✗ | void RefrigerationSystem_Impl::resetSuctionTemperatureControlType() { | |
| 664 | ✗ | bool result = setString(OS_Refrigeration_SystemFields::SuctionTemperatureControlType, ""); | |
| 665 | ✗ | OS_ASSERT(result); | |
| 666 | ✗ | } | |
| 667 | |||
| 668 | 11 | bool RefrigerationSystem_Impl::setMechanicalSubcooler(const boost::optional<RefrigerationSubcoolerMechanical>& refrigerationSubcoolerMechanical) { | |
| 669 | 11 | bool result(false); | |
| 670 |
1/2✓ Branch 0 taken 11 times.
✗ Branch 1 not taken.
|
11 | if (refrigerationSubcoolerMechanical) { |
| 671 | // Enforce unicity | ||
| 672 |
4/4✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
✓ Branch 6 taken 1 time.
✓ Branch 7 taken 10 times.
|
22 | if (boost::optional<RefrigerationSystem> currentSystem = refrigerationSubcoolerMechanical->system()) { |
| 673 |
12/12✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 25 taken 1 time.
✓ Branch 30 taken 1 time.
✓ Branch 33 taken 1 time.
✓ Branch 36 taken 1 time.
|
1 | LOG(Warn, refrigerationSubcoolerMechanical->briefDescription() |
| 674 | << " was removed from its existing RefrigerationSystem named '" << currentSystem->nameString() << "'."); | ||
| 675 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | currentSystem->resetMechanicalSubcooler(); |
| 676 | 11 | } | |
| 677 |
3/3✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
✓ Branch 7 taken 11 times.
|
11 | result = setPointer(OS_Refrigeration_SystemFields::MechanicalSubcoolerName, refrigerationSubcoolerMechanical.get().handle()); |
| 678 | } else { | ||
| 679 | ✗ | resetMechanicalSubcooler(); | |
| 680 | ✗ | result = true; | |
| 681 | } | ||
| 682 | 11 | return result; | |
| 683 | } | ||
| 684 | |||
| 685 | 1 | void RefrigerationSystem_Impl::resetMechanicalSubcooler() { | |
| 686 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Refrigeration_SystemFields::MechanicalSubcoolerName, ""); |
| 687 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 688 | 1 | } | |
| 689 | |||
| 690 | 11 | bool RefrigerationSystem_Impl::setLiquidSuctionHeatExchangerSubcooler( | |
| 691 | const boost::optional<RefrigerationSubcoolerLiquidSuction>& refrigerationSubcoolerLiquidSuction) { | ||
| 692 | 11 | bool result(false); | |
| 693 |
1/2✓ Branch 0 taken 11 times.
✗ Branch 1 not taken.
|
11 | if (refrigerationSubcoolerLiquidSuction) { |
| 694 | // Enforce unicity | ||
| 695 |
4/4✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
✓ Branch 6 taken 1 time.
✓ Branch 7 taken 10 times.
|
22 | if (boost::optional<RefrigerationSystem> currentSystem = refrigerationSubcoolerLiquidSuction->system()) { |
| 696 |
12/12✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 22 taken 1 time.
✓ Branch 25 taken 1 time.
✓ Branch 30 taken 1 time.
✓ Branch 33 taken 1 time.
✓ Branch 36 taken 1 time.
|
1 | LOG(Warn, refrigerationSubcoolerLiquidSuction->briefDescription() |
| 697 | << " was removed from its existing RefrigerationSystem named '" << currentSystem->nameString() << "'."); | ||
| 698 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | currentSystem->resetLiquidSuctionHeatExchangerSubcooler(); |
| 699 | 11 | } | |
| 700 |
3/3✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
✓ Branch 7 taken 11 times.
|
11 | result = setPointer(OS_Refrigeration_SystemFields::LiquidSuctionHeatExchangerSubcoolerName, refrigerationSubcoolerLiquidSuction->handle()); |
| 701 | } else { | ||
| 702 | ✗ | resetLiquidSuctionHeatExchangerSubcooler(); | |
| 703 | ✗ | result = true; | |
| 704 | } | ||
| 705 | 11 | return result; | |
| 706 | } | ||
| 707 | |||
| 708 | 1 | void RefrigerationSystem_Impl::resetLiquidSuctionHeatExchangerSubcooler() { | |
| 709 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Refrigeration_SystemFields::LiquidSuctionHeatExchangerSubcoolerName, ""); |
| 710 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 711 | 1 | } | |
| 712 | |||
| 713 | 2 | bool RefrigerationSystem_Impl::setSumUASuctionPiping(double sumUASuctionPiping) { | |
| 714 | 2 | bool result = setDouble(OS_Refrigeration_SystemFields::SumUASuctionPiping, sumUASuctionPiping); | |
| 715 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
|
2 | OS_ASSERT(result); |
| 716 | 2 | return result; | |
| 717 | } | ||
| 718 | |||
| 719 | ✗ | void RefrigerationSystem_Impl::resetSumUASuctionPiping() { | |
| 720 | ✗ | bool result = setString(OS_Refrigeration_SystemFields::SumUASuctionPiping, ""); | |
| 721 | ✗ | OS_ASSERT(result); | |
| 722 | ✗ | } | |
| 723 | |||
| 724 | 2 | bool RefrigerationSystem_Impl::setSuctionPipingZone(const boost::optional<ThermalZone>& thermalZone) { | |
| 725 | 2 | bool result(false); | |
| 726 |
1/2✓ Branch 0 taken 2 times.
✗ Branch 1 not taken.
|
2 | if (thermalZone) { |
| 727 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
|
2 | result = setPointer(OS_Refrigeration_SystemFields::SuctionPipingZoneName, thermalZone.get().handle()); |
| 728 | } else { | ||
| 729 | ✗ | resetSuctionPipingZone(); | |
| 730 | ✗ | result = true; | |
| 731 | } | ||
| 732 | 2 | return result; | |
| 733 | } | ||
| 734 | |||
| 735 | 10 | void RefrigerationSystem_Impl::resetSuctionPipingZone() { | |
| 736 |
2/2✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
|
20 | bool result = setString(OS_Refrigeration_SystemFields::SuctionPipingZoneName, ""); |
| 737 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 10 times.
|
10 | OS_ASSERT(result); |
| 738 | 10 | } | |
| 739 | |||
| 740 | ✗ | bool RefrigerationSystem_Impl::setEndUseSubcategory(const std::string& endUseSubcategory) { | |
| 741 | ✗ | bool result = setString(OS_Refrigeration_SystemFields::EndUseSubcategory, endUseSubcategory); | |
| 742 | ✗ | OS_ASSERT(result); | |
| 743 | ✗ | return result; | |
| 744 | } | ||
| 745 | |||
| 746 | ✗ | void RefrigerationSystem_Impl::resetEndUseSubcategory() { | |
| 747 | ✗ | bool result = setString(OS_Refrigeration_SystemFields::EndUseSubcategory, ""); | |
| 748 | ✗ | OS_ASSERT(result); | |
| 749 | ✗ | } | |
| 750 | |||
| 751 | ✗ | bool RefrigerationSystem_Impl::setIntercoolerType(const std::string& intercoolerType) { | |
| 752 | ✗ | bool result = setString(OS_Refrigeration_SystemFields::IntercoolerType, intercoolerType); | |
| 753 | ✗ | return result; | |
| 754 | } | ||
| 755 | |||
| 756 | ✗ | void RefrigerationSystem_Impl::resetIntercoolerType() { | |
| 757 | ✗ | bool result = setString(OS_Refrigeration_SystemFields::IntercoolerType, ""); | |
| 758 | ✗ | OS_ASSERT(result); | |
| 759 | ✗ | } | |
| 760 | |||
| 761 | ✗ | bool RefrigerationSystem_Impl::setShellandCoilIntercoolerEffectiveness(double shellandCoilIntercoolerEffectiveness) { | |
| 762 | ✗ | bool result = setDouble(OS_Refrigeration_SystemFields::ShellandCoilIntercoolerEffectiveness, shellandCoilIntercoolerEffectiveness); | |
| 763 | ✗ | OS_ASSERT(result); | |
| 764 | ✗ | return result; | |
| 765 | } | ||
| 766 | |||
| 767 | ✗ | void RefrigerationSystem_Impl::resetShellandCoilIntercoolerEffectiveness() { | |
| 768 | ✗ | bool result = setString(OS_Refrigeration_SystemFields::ShellandCoilIntercoolerEffectiveness, ""); | |
| 769 | ✗ | OS_ASSERT(result); | |
| 770 | ✗ | } | |
| 771 | |||
| 772 | 85 | bool RefrigerationSystem_Impl::setHighStageCompressorList(const boost::optional<ModelObjectList>& modelObjectList) { | |
| 773 | 85 | bool result(false); | |
| 774 |
1/2✓ Branch 0 taken 85 times.
✗ Branch 1 not taken.
|
85 | if (modelObjectList) { |
| 775 |
3/3✓ Branch 1 taken 85 times.
✓ Branch 4 taken 85 times.
✓ Branch 7 taken 85 times.
|
85 | result = setPointer(OS_Refrigeration_SystemFields::HighStageCompressorListName, modelObjectList.get().handle()); |
| 776 | } else { | ||
| 777 | ✗ | resetHighStageCompressorList(); | |
| 778 | ✗ | result = true; | |
| 779 | } | ||
| 780 | 85 | return result; | |
| 781 | } | ||
| 782 | |||
| 783 | ✗ | void RefrigerationSystem_Impl::resetHighStageCompressorList() { | |
| 784 | ✗ | bool result = setString(OS_Refrigeration_SystemFields::HighStageCompressorListName, ""); | |
| 785 | ✗ | OS_ASSERT(result); | |
| 786 | ✗ | } | |
| 787 | |||
| 788 | 80 | boost::optional<ModelObject> RefrigerationSystem_Impl::optionalRefrigerationCondenser() const { | |
| 789 |
2/2✓ Branch 1 taken 80 times.
✓ Branch 4 taken 80 times.
|
80 | return getObject<ModelObject>().getModelObjectTarget<ModelObject>(OS_Refrigeration_SystemFields::RefrigerationCondenserName); |
| 790 | } | ||
| 791 | |||
| 792 | 97 | boost::optional<ModelObjectList> RefrigerationSystem_Impl::optionalCompressorList() const { | |
| 793 |
2/2✓ Branch 1 taken 97 times.
✓ Branch 4 taken 97 times.
|
97 | return getObject<ModelObject>().getModelObjectTarget<ModelObjectList>(OS_Refrigeration_SystemFields::CompressorListName); |
| 794 | } | ||
| 795 | |||
| 796 | ✗ | std::vector<EMSActuatorNames> RefrigerationSystem_Impl::emsActuatorNames() const { | |
| 797 | ✗ | std::vector<EMSActuatorNames> actuators{{"Refrigeration:System", "Minimum Condensing Temperature"}}; | |
| 798 | ✗ | return actuators; | |
| 799 | ✗ | } | |
| 800 | |||
| 801 | ✗ | std::vector<std::string> RefrigerationSystem_Impl::emsInternalVariableNames() const { | |
| 802 | ✗ | std::vector<std::string> types; | |
| 803 | ✗ | return types; | |
| 804 | } | ||
| 805 | |||
| 806 | } // namespace detail | ||
| 807 | |||
| 808 | 75 | RefrigerationSystem::RefrigerationSystem(const Model& model) : ModelObject(RefrigerationSystem::iddObjectType(), model) { | |
| 809 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 75 times.
✗ Branch 5 not taken.
|
75 | OS_ASSERT(getImpl<detail::RefrigerationSystem_Impl>()); |
| 810 | |||
| 811 |
1/1✓ Branch 1 taken 75 times.
|
75 | ModelObjectList caseAndWalkinList = ModelObjectList(model); |
| 812 |
4/4✓ Branch 1 taken 75 times.
✓ Branch 4 taken 75 times.
✓ Branch 7 taken 75 times.
✓ Branch 10 taken 75 times.
|
75 | caseAndWalkinList.setName(this->name().get() + " Case and Walkin List"); |
| 813 |
2/2✓ Branch 3 taken 75 times.
✓ Branch 6 taken 75 times.
|
75 | bool ok = getImpl<detail::RefrigerationSystem_Impl>()->setRefrigeratedCaseAndWalkInList(caseAndWalkinList); |
| 814 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 75 times.
✗ Branch 3 not taken.
|
75 | OS_ASSERT(ok); |
| 815 |
1/1✓ Branch 1 taken 75 times.
|
75 | ModelObjectList transferLoadList = ModelObjectList(model); |
| 816 |
4/4✓ Branch 1 taken 75 times.
✓ Branch 4 taken 75 times.
✓ Branch 7 taken 75 times.
✓ Branch 10 taken 75 times.
|
75 | transferLoadList.setName(this->name().get() + " Transfer Load List"); |
| 817 |
2/2✓ Branch 3 taken 75 times.
✓ Branch 6 taken 75 times.
|
75 | ok = getImpl<detail::RefrigerationSystem_Impl>()->setRefrigerationTransferLoadList(transferLoadList); |
| 818 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 75 times.
✗ Branch 3 not taken.
|
75 | OS_ASSERT(ok); |
| 819 |
1/1✓ Branch 1 taken 75 times.
|
75 | ModelObjectList compressorlist = ModelObjectList(model); |
| 820 |
4/4✓ Branch 1 taken 75 times.
✓ Branch 4 taken 75 times.
✓ Branch 7 taken 75 times.
✓ Branch 10 taken 75 times.
|
75 | compressorlist.setName(this->name().get() + " Compressor List"); |
| 821 |
1/1✓ Branch 3 taken 75 times.
|
75 | ok = getImpl<detail::RefrigerationSystem_Impl>()->setCompressorList(compressorlist); |
| 822 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 75 times.
✗ Branch 3 not taken.
|
75 | OS_ASSERT(ok); |
| 823 |
1/1✓ Branch 1 taken 75 times.
|
75 | ModelObjectList highStageCompressorlist = ModelObjectList(model); |
| 824 |
4/4✓ Branch 1 taken 75 times.
✓ Branch 4 taken 75 times.
✓ Branch 7 taken 75 times.
✓ Branch 10 taken 75 times.
|
75 | highStageCompressorlist.setName(this->name().get() + " High Stage Compressor List"); |
| 825 |
2/2✓ Branch 3 taken 75 times.
✓ Branch 6 taken 75 times.
|
75 | ok = getImpl<detail::RefrigerationSystem_Impl>()->setHighStageCompressorList(highStageCompressorlist); |
| 826 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 75 times.
✗ Branch 3 not taken.
|
75 | OS_ASSERT(ok); |
| 827 |
1/1✓ Branch 1 taken 75 times.
|
75 | setMinimumCondensingTemperature(21.0); |
| 828 |
2/2✓ Branch 1 taken 75 times.
✓ Branch 4 taken 75 times.
|
75 | ok = setRefrigerationSystemWorkingFluidType("R404a"); |
| 829 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 75 times.
✗ Branch 3 not taken.
|
75 | OS_ASSERT(ok); |
| 830 |
2/2✓ Branch 1 taken 75 times.
✓ Branch 4 taken 75 times.
|
75 | ok = setSuctionTemperatureControlType("ConstantSuctionTemperature"); |
| 831 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 75 times.
✗ Branch 3 not taken.
|
75 | OS_ASSERT(ok); |
| 832 | 75 | } | |
| 833 | |||
| 834 | 8076 | IddObjectType RefrigerationSystem::iddObjectType() { | |
| 835 |
1/1✓ Branch 1 taken 8076 times.
|
8076 | return {IddObjectType::OS_Refrigeration_System}; |
| 836 | } | ||
| 837 | |||
| 838 | ✗ | std::vector<std::string> RefrigerationSystem::refrigerationSystemWorkingFluidTypeValues() { | |
| 839 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), | |
| 840 | ✗ | OS_Refrigeration_SystemFields::RefrigerationSystemWorkingFluidType); | |
| 841 | } | ||
| 842 | |||
| 843 | ✗ | std::vector<std::string> RefrigerationSystem::suctionTemperatureControlTypeValues() { | |
| 844 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Refrigeration_SystemFields::SuctionTemperatureControlType); | |
| 845 | } | ||
| 846 | |||
| 847 | ✗ | std::vector<std::string> RefrigerationSystem::intercoolerTypeValues() { | |
| 848 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_Refrigeration_SystemFields::IntercoolerType); | |
| 849 | } | ||
| 850 | |||
| 851 | 48 | std::vector<RefrigerationCase> RefrigerationSystem::cases() const { | |
| 852 |
1/1✓ Branch 3 taken 48 times.
|
48 | return getImpl<detail::RefrigerationSystem_Impl>()->cases(); |
| 853 | } | ||
| 854 | |||
| 855 | 46 | std::vector<RefrigerationWalkIn> RefrigerationSystem::walkins() const { | |
| 856 |
1/1✓ Branch 3 taken 46 times.
|
46 | return getImpl<detail::RefrigerationSystem_Impl>()->walkins(); |
| 857 | } | ||
| 858 | |||
| 859 | 37 | std::vector<RefrigerationCompressor> RefrigerationSystem::compressors() const { | |
| 860 |
1/1✓ Branch 3 taken 37 times.
|
37 | return getImpl<detail::RefrigerationSystem_Impl>()->compressors(); |
| 861 | } | ||
| 862 | |||
| 863 | 33 | std::vector<RefrigerationCompressor> RefrigerationSystem::highStageCompressors() const { | |
| 864 |
1/1✓ Branch 3 taken 33 times.
|
33 | return getImpl<detail::RefrigerationSystem_Impl>()->highStageCompressors(); |
| 865 | } | ||
| 866 | |||
| 867 | 32 | std::vector<RefrigerationSecondarySystem> RefrigerationSystem::secondarySystemLoads() const { | |
| 868 |
1/1✓ Branch 3 taken 32 times.
|
32 | return getImpl<detail::RefrigerationSystem_Impl>()->secondarySystemLoads(); |
| 869 | } | ||
| 870 | |||
| 871 | 50 | std::vector<RefrigerationCondenserCascade> RefrigerationSystem::cascadeCondenserLoads() const { | |
| 872 |
1/1✓ Branch 3 taken 50 times.
|
50 | return getImpl<detail::RefrigerationSystem_Impl>()->cascadeCondenserLoads(); |
| 873 | } | ||
| 874 | |||
| 875 | 32 | std::vector<RefrigerationAirChiller> RefrigerationSystem::airChillers() const { | |
| 876 |
1/1✓ Branch 3 taken 32 times.
|
32 | return getImpl<detail::RefrigerationSystem_Impl>()->airChillers(); |
| 877 | } | ||
| 878 | |||
| 879 | 56 | boost::optional<ModelObject> RefrigerationSystem::refrigerationCondenser() const { | |
| 880 |
1/1✓ Branch 3 taken 56 times.
|
56 | return getImpl<detail::RefrigerationSystem_Impl>()->refrigerationCondenser(); |
| 881 | } | ||
| 882 | |||
| 883 | 4 | double RefrigerationSystem::minimumCondensingTemperature() const { | |
| 884 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::RefrigerationSystem_Impl>()->minimumCondensingTemperature(); |
| 885 | } | ||
| 886 | |||
| 887 | 5 | std::string RefrigerationSystem::refrigerationSystemWorkingFluidType() const { | |
| 888 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::RefrigerationSystem_Impl>()->refrigerationSystemWorkingFluidType(); |
| 889 | } | ||
| 890 | |||
| 891 | 4 | std::string RefrigerationSystem::suctionTemperatureControlType() const { | |
| 892 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::RefrigerationSystem_Impl>()->suctionTemperatureControlType(); |
| 893 | } | ||
| 894 | |||
| 895 | ✗ | bool RefrigerationSystem::isSuctionTemperatureControlTypeDefaulted() const { | |
| 896 | ✗ | return getImpl<detail::RefrigerationSystem_Impl>()->isSuctionTemperatureControlTypeDefaulted(); | |
| 897 | } | ||
| 898 | |||
| 899 | 15 | boost::optional<RefrigerationSubcoolerMechanical> RefrigerationSystem::mechanicalSubcooler() const { | |
| 900 |
1/1✓ Branch 3 taken 15 times.
|
15 | return getImpl<detail::RefrigerationSystem_Impl>()->mechanicalSubcooler(); |
| 901 | } | ||
| 902 | |||
| 903 | 15 | boost::optional<RefrigerationSubcoolerLiquidSuction> RefrigerationSystem::liquidSuctionHeatExchangerSubcooler() const { | |
| 904 |
1/1✓ Branch 3 taken 15 times.
|
15 | return getImpl<detail::RefrigerationSystem_Impl>()->liquidSuctionHeatExchangerSubcooler(); |
| 905 | } | ||
| 906 | |||
| 907 | 4 | double RefrigerationSystem::sumUASuctionPiping() const { | |
| 908 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::RefrigerationSystem_Impl>()->sumUASuctionPiping(); |
| 909 | } | ||
| 910 | |||
| 911 | 4 | bool RefrigerationSystem::isSumUASuctionPipingDefaulted() const { | |
| 912 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::RefrigerationSystem_Impl>()->isSumUASuctionPipingDefaulted(); |
| 913 | } | ||
| 914 | |||
| 915 | 2 | boost::optional<ThermalZone> RefrigerationSystem::suctionPipingZone() const { | |
| 916 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::RefrigerationSystem_Impl>()->suctionPipingZone(); |
| 917 | } | ||
| 918 | |||
| 919 | ✗ | std::string RefrigerationSystem::endUseSubcategory() const { | |
| 920 | ✗ | return getImpl<detail::RefrigerationSystem_Impl>()->endUseSubcategory(); | |
| 921 | } | ||
| 922 | |||
| 923 | ✗ | bool RefrigerationSystem::isEndUseSubcategoryDefaulted() const { | |
| 924 | ✗ | return getImpl<detail::RefrigerationSystem_Impl>()->isEndUseSubcategoryDefaulted(); | |
| 925 | } | ||
| 926 | |||
| 927 | ✗ | std::string RefrigerationSystem::numberofCompressorStages() const { | |
| 928 | ✗ | return getImpl<detail::RefrigerationSystem_Impl>()->numberofCompressorStages(); | |
| 929 | } | ||
| 930 | |||
| 931 | ✗ | std::string RefrigerationSystem::intercoolerType() const { | |
| 932 | ✗ | return getImpl<detail::RefrigerationSystem_Impl>()->intercoolerType(); | |
| 933 | } | ||
| 934 | |||
| 935 | ✗ | bool RefrigerationSystem::isIntercoolerTypeDefaulted() const { | |
| 936 | ✗ | return getImpl<detail::RefrigerationSystem_Impl>()->isIntercoolerTypeDefaulted(); | |
| 937 | } | ||
| 938 | |||
| 939 | ✗ | double RefrigerationSystem::shellandCoilIntercoolerEffectiveness() const { | |
| 940 | ✗ | return getImpl<detail::RefrigerationSystem_Impl>()->shellandCoilIntercoolerEffectiveness(); | |
| 941 | } | ||
| 942 | |||
| 943 | ✗ | bool RefrigerationSystem::isShellandCoilIntercoolerEffectivenessDefaulted() const { | |
| 944 | ✗ | return getImpl<detail::RefrigerationSystem_Impl>()->isShellandCoilIntercoolerEffectivenessDefaulted(); | |
| 945 | } | ||
| 946 | |||
| 947 | 18 | bool RefrigerationSystem::addCase(const RefrigerationCase& refrigerationCase) { | |
| 948 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::RefrigerationSystem_Impl>()->addCase(refrigerationCase); |
| 949 | } | ||
| 950 | |||
| 951 | 7 | void RefrigerationSystem::removeCase(const RefrigerationCase& refrigerationCase) { | |
| 952 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::RefrigerationSystem_Impl>()->removeCase(refrigerationCase); |
| 953 | } | ||
| 954 | |||
| 955 | 3 | void RefrigerationSystem::removeAllCases() { | |
| 956 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::RefrigerationSystem_Impl>()->removeAllCases(); |
| 957 | } | ||
| 958 | |||
| 959 | 18 | bool RefrigerationSystem::addWalkin(const RefrigerationWalkIn& refrigerationWalkin) { | |
| 960 |
1/1✓ Branch 3 taken 18 times.
|
18 | return getImpl<detail::RefrigerationSystem_Impl>()->addWalkin(refrigerationWalkin); |
| 961 | } | ||
| 962 | |||
| 963 | 7 | void RefrigerationSystem::removeWalkin(const RefrigerationWalkIn& refrigerationWalkin) { | |
| 964 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::RefrigerationSystem_Impl>()->removeWalkin(refrigerationWalkin); |
| 965 | } | ||
| 966 | |||
| 967 | 3 | void RefrigerationSystem::removeAllWalkins() { | |
| 968 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::RefrigerationSystem_Impl>()->removeAllWalkins(); |
| 969 | } | ||
| 970 | |||
| 971 | 10 | bool RefrigerationSystem::addCompressor(const RefrigerationCompressor& refrigerationCompressor) { | |
| 972 |
1/1✓ Branch 3 taken 10 times.
|
10 | return getImpl<detail::RefrigerationSystem_Impl>()->addCompressor(refrigerationCompressor); |
| 973 | } | ||
| 974 | |||
| 975 | 7 | void RefrigerationSystem::removeCompressor(const RefrigerationCompressor& refrigerationCompressor) { | |
| 976 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::RefrigerationSystem_Impl>()->removeCompressor(refrigerationCompressor); |
| 977 | } | ||
| 978 | |||
| 979 | 1 | void RefrigerationSystem::removeAllCompressors() { | |
| 980 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RefrigerationSystem_Impl>()->removeAllCompressors(); |
| 981 | } | ||
| 982 | |||
| 983 | 9 | bool RefrigerationSystem::addHighStageCompressor(const RefrigerationCompressor& refrigerationHighStageCompressor) { | |
| 984 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::RefrigerationSystem_Impl>()->addHighStageCompressor(refrigerationHighStageCompressor); |
| 985 | } | ||
| 986 | |||
| 987 | 5 | void RefrigerationSystem::removeHighStageCompressor(const RefrigerationCompressor& refrigerationHighStageCompressor) { | |
| 988 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::RefrigerationSystem_Impl>()->removeHighStageCompressor(refrigerationHighStageCompressor); |
| 989 | } | ||
| 990 | |||
| 991 | 1 | void RefrigerationSystem::removeAllHighStageCompressors() { | |
| 992 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RefrigerationSystem_Impl>()->removeAllHighStageCompressors(); |
| 993 | } | ||
| 994 | |||
| 995 | 14 | bool RefrigerationSystem::addSecondarySystemLoad(const RefrigerationSecondarySystem& refrigerationSecondarySystemLoad) { | |
| 996 |
1/1✓ Branch 3 taken 14 times.
|
14 | return getImpl<detail::RefrigerationSystem_Impl>()->addSecondarySystemLoad(refrigerationSecondarySystemLoad); |
| 997 | } | ||
| 998 | |||
| 999 | 7 | void RefrigerationSystem::removeSecondarySystemLoad(const RefrigerationSecondarySystem& refrigerationSecondarySystemLoad) { | |
| 1000 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::RefrigerationSystem_Impl>()->removeSecondarySystemLoad(refrigerationSecondarySystemLoad); |
| 1001 | } | ||
| 1002 | |||
| 1003 | 2 | void RefrigerationSystem::removeAllSecondarySystemLoads() { | |
| 1004 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::RefrigerationSystem_Impl>()->removeAllSecondarySystemLoads(); |
| 1005 | } | ||
| 1006 | |||
| 1007 | 14 | bool RefrigerationSystem::addCascadeCondenserLoad(const RefrigerationCondenserCascade& refrigerationCondenserCascade) { | |
| 1008 |
1/1✓ Branch 3 taken 14 times.
|
14 | return getImpl<detail::RefrigerationSystem_Impl>()->addCascadeCondenserLoad(refrigerationCondenserCascade); |
| 1009 | } | ||
| 1010 | |||
| 1011 | 7 | void RefrigerationSystem::removeCascadeCondenserLoad(const RefrigerationCondenserCascade& refrigerationCondenserCascade) { | |
| 1012 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::RefrigerationSystem_Impl>()->removeCascadeCondenserLoad(refrigerationCondenserCascade); |
| 1013 | } | ||
| 1014 | |||
| 1015 | 2 | void RefrigerationSystem::removeAllCascadeCondenserLoads() { | |
| 1016 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::RefrigerationSystem_Impl>()->removeAllCascadeCondenserLoads(); |
| 1017 | } | ||
| 1018 | |||
| 1019 | 12 | bool RefrigerationSystem::addAirChiller(const RefrigerationAirChiller& refrigerationAirChiller) { | |
| 1020 |
1/1✓ Branch 3 taken 12 times.
|
12 | return getImpl<detail::RefrigerationSystem_Impl>()->addAirChiller(refrigerationAirChiller); |
| 1021 | } | ||
| 1022 | |||
| 1023 | 5 | void RefrigerationSystem::removeAirChiller(const RefrigerationAirChiller& refrigerationAirChiller) { | |
| 1024 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::RefrigerationSystem_Impl>()->removeAirChiller(refrigerationAirChiller); |
| 1025 | } | ||
| 1026 | |||
| 1027 | 1 | void RefrigerationSystem::removeAllAirChillers() { | |
| 1028 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RefrigerationSystem_Impl>()->removeAllAirChillers(); |
| 1029 | } | ||
| 1030 | |||
| 1031 | 19 | bool RefrigerationSystem::setRefrigerationCondenser(const ModelObject& refrigerationCondenser) { | |
| 1032 |
1/1✓ Branch 3 taken 19 times.
|
19 | return getImpl<detail::RefrigerationSystem_Impl>()->setRefrigerationCondenser(refrigerationCondenser); |
| 1033 | } | ||
| 1034 | |||
| 1035 | 4 | void RefrigerationSystem::resetRefrigerationCondenser() { | |
| 1036 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::RefrigerationSystem_Impl>()->resetRefrigerationCondenser(); |
| 1037 | } | ||
| 1038 | |||
| 1039 | 77 | bool RefrigerationSystem::setMinimumCondensingTemperature(double minimumCondensingTemperature) { | |
| 1040 |
1/1✓ Branch 3 taken 77 times.
|
77 | return getImpl<detail::RefrigerationSystem_Impl>()->setMinimumCondensingTemperature(minimumCondensingTemperature); |
| 1041 | } | ||
| 1042 | |||
| 1043 | 80 | bool RefrigerationSystem::setRefrigerationSystemWorkingFluidType(const std::string& refrigerationSystemWorkingFluidType) { | |
| 1044 |
1/1✓ Branch 3 taken 80 times.
|
80 | return getImpl<detail::RefrigerationSystem_Impl>()->setRefrigerationSystemWorkingFluidType(refrigerationSystemWorkingFluidType); |
| 1045 | } | ||
| 1046 | |||
| 1047 | 77 | bool RefrigerationSystem::setSuctionTemperatureControlType(const std::string& suctionTemperatureControlType) { | |
| 1048 |
1/1✓ Branch 3 taken 77 times.
|
77 | return getImpl<detail::RefrigerationSystem_Impl>()->setSuctionTemperatureControlType(suctionTemperatureControlType); |
| 1049 | } | ||
| 1050 | |||
| 1051 | ✗ | void RefrigerationSystem::resetSuctionTemperatureControlType() { | |
| 1052 | ✗ | getImpl<detail::RefrigerationSystem_Impl>()->resetSuctionTemperatureControlType(); | |
| 1053 | ✗ | } | |
| 1054 | |||
| 1055 | 11 | bool RefrigerationSystem::setMechanicalSubcooler(const RefrigerationSubcoolerMechanical& refrigerationSubcoolerMechanical) { | |
| 1056 |
2/2✓ Branch 3 taken 11 times.
✓ Branch 6 taken 11 times.
|
11 | return getImpl<detail::RefrigerationSystem_Impl>()->setMechanicalSubcooler(refrigerationSubcoolerMechanical); |
| 1057 | } | ||
| 1058 | |||
| 1059 | 1 | void RefrigerationSystem::resetMechanicalSubcooler() { | |
| 1060 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::RefrigerationSystem_Impl>()->resetMechanicalSubcooler(); |
| 1061 | 1 | } | |
| 1062 | |||
| 1063 | 11 | bool RefrigerationSystem::setLiquidSuctionHeatExchangerSubcooler(const RefrigerationSubcoolerLiquidSuction& refrigerationSubcoolerLiquidSuction) { | |
| 1064 |
2/2✓ Branch 3 taken 11 times.
✓ Branch 6 taken 11 times.
|
11 | return getImpl<detail::RefrigerationSystem_Impl>()->setLiquidSuctionHeatExchangerSubcooler(refrigerationSubcoolerLiquidSuction); |
| 1065 | } | ||
| 1066 | |||
| 1067 | 1 | void RefrigerationSystem::resetLiquidSuctionHeatExchangerSubcooler() { | |
| 1068 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::RefrigerationSystem_Impl>()->resetLiquidSuctionHeatExchangerSubcooler(); |
| 1069 | 1 | } | |
| 1070 | |||
| 1071 | 2 | bool RefrigerationSystem::setSumUASuctionPiping(double sumUASuctionPiping) { | |
| 1072 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::RefrigerationSystem_Impl>()->setSumUASuctionPiping(sumUASuctionPiping); |
| 1073 | } | ||
| 1074 | |||
| 1075 | ✗ | void RefrigerationSystem::resetSumUASuctionPiping() { | |
| 1076 | ✗ | getImpl<detail::RefrigerationSystem_Impl>()->resetSumUASuctionPiping(); | |
| 1077 | ✗ | } | |
| 1078 | |||
| 1079 | 2 | bool RefrigerationSystem::setSuctionPipingZone(const ThermalZone& thermalZone) { | |
| 1080 |
2/2✓ Branch 3 taken 2 times.
✓ Branch 6 taken 2 times.
|
2 | return getImpl<detail::RefrigerationSystem_Impl>()->setSuctionPipingZone(thermalZone); |
| 1081 | } | ||
| 1082 | |||
| 1083 | 10 | void RefrigerationSystem::resetSuctionPipingZone() { | |
| 1084 |
1/1✓ Branch 3 taken 10 times.
|
10 | getImpl<detail::RefrigerationSystem_Impl>()->resetSuctionPipingZone(); |
| 1085 | 10 | } | |
| 1086 | |||
| 1087 | ✗ | bool RefrigerationSystem::setEndUseSubcategory(const std::string& endUseSubcategory) { | |
| 1088 | ✗ | return getImpl<detail::RefrigerationSystem_Impl>()->setEndUseSubcategory(endUseSubcategory); | |
| 1089 | } | ||
| 1090 | |||
| 1091 | ✗ | void RefrigerationSystem::resetEndUseSubcategory() { | |
| 1092 | ✗ | getImpl<detail::RefrigerationSystem_Impl>()->resetEndUseSubcategory(); | |
| 1093 | ✗ | } | |
| 1094 | |||
| 1095 | ✗ | bool RefrigerationSystem::setIntercoolerType(const std::string& intercoolerType) { | |
| 1096 | ✗ | return getImpl<detail::RefrigerationSystem_Impl>()->setIntercoolerType(intercoolerType); | |
| 1097 | } | ||
| 1098 | |||
| 1099 | ✗ | void RefrigerationSystem::resetIntercoolerType() { | |
| 1100 | ✗ | getImpl<detail::RefrigerationSystem_Impl>()->resetIntercoolerType(); | |
| 1101 | ✗ | } | |
| 1102 | |||
| 1103 | ✗ | bool RefrigerationSystem::setShellandCoilIntercoolerEffectiveness(double shellandCoilIntercoolerEffectiveness) { | |
| 1104 | ✗ | return getImpl<detail::RefrigerationSystem_Impl>()->setShellandCoilIntercoolerEffectiveness(shellandCoilIntercoolerEffectiveness); | |
| 1105 | } | ||
| 1106 | |||
| 1107 | ✗ | void RefrigerationSystem::resetShellandCoilIntercoolerEffectiveness() { | |
| 1108 | ✗ | getImpl<detail::RefrigerationSystem_Impl>()->resetShellandCoilIntercoolerEffectiveness(); | |
| 1109 | ✗ | } | |
| 1110 | |||
| 1111 | /// @cond | ||
| 1112 |
1/1✓ Branch 3 taken 218 times.
|
218 | RefrigerationSystem::RefrigerationSystem(std::shared_ptr<detail::RefrigerationSystem_Impl> impl) : ModelObject(std::move(impl)) {} |
| 1113 | /// @endcond | ||
| 1114 | |||
| 1115 | } // namespace model | ||
| 1116 | } // namespace openstudio | ||
| 1117 |