src/model/RefrigerationWalkInZoneBoundary.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 "RefrigerationWalkInZoneBoundary.hpp" | ||
| 7 | #include "RefrigerationWalkInZoneBoundary_Impl.hpp" | ||
| 8 | |||
| 9 | #include "ThermalZone.hpp" | ||
| 10 | #include "ThermalZone_Impl.hpp" | ||
| 11 | #include "Schedule.hpp" | ||
| 12 | #include "Schedule_Impl.hpp" | ||
| 13 | #include "ScheduleTypeLimits.hpp" | ||
| 14 | #include "ScheduleTypeRegistry.hpp" | ||
| 15 | #include "Model.hpp" | ||
| 16 | #include "Model_Impl.hpp" | ||
| 17 | |||
| 18 | #include <utilities/idd/IddFactory.hxx> | ||
| 19 | |||
| 20 | #include <utilities/idd/OS_Refrigeration_WalkIn_ZoneBoundary_FieldEnums.hxx> | ||
| 21 | #include <utilities/idd/IddEnums.hxx> | ||
| 22 | |||
| 23 | #include "../utilities/units/Unit.hpp" | ||
| 24 | |||
| 25 | #include "../utilities/core/Assert.hpp" | ||
| 26 | |||
| 27 | namespace openstudio { | ||
| 28 | namespace model { | ||
| 29 | |||
| 30 | namespace detail { | ||
| 31 | |||
| 32 | 68 | RefrigerationWalkInZoneBoundary_Impl::RefrigerationWalkInZoneBoundary_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 33 | 68 | : ModelObject_Impl(idfObject, model, keepHandle) { | |
| 34 |
4/6✓ Branch 1 taken 68 times.
✓ Branch 4 taken 68 times.
✓ Branch 7 taken 68 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 68 times.
✗ Branch 13 not taken.
|
68 | OS_ASSERT(idfObject.iddObject().type() == RefrigerationWalkInZoneBoundary::iddObjectType()); |
| 35 | 68 | } | |
| 36 | |||
| 37 | ✗ | RefrigerationWalkInZoneBoundary_Impl::RefrigerationWalkInZoneBoundary_Impl(const openstudio::detail::WorkspaceObject_Impl& other, | |
| 38 | ✗ | Model_Impl* model, bool keepHandle) | |
| 39 | ✗ | : ModelObject_Impl(other, model, keepHandle) { | |
| 40 | ✗ | OS_ASSERT(other.iddObject().type() == RefrigerationWalkInZoneBoundary::iddObjectType()); | |
| 41 | ✗ | } | |
| 42 | |||
| 43 | 38 | RefrigerationWalkInZoneBoundary_Impl::RefrigerationWalkInZoneBoundary_Impl(const RefrigerationWalkInZoneBoundary_Impl& other, Model_Impl* model, | |
| 44 | 38 | bool keepHandle) | |
| 45 | 38 | : ModelObject_Impl(other, model, keepHandle) {} | |
| 46 | |||
| 47 | ✗ | const std::vector<std::string>& RefrigerationWalkInZoneBoundary_Impl::outputVariableNames() const { | |
| 48 | ✗ | static const std::vector<std::string> result; | |
| 49 | ✗ | return result; | |
| 50 | } | ||
| 51 | |||
| 52 | ✗ | IddObjectType RefrigerationWalkInZoneBoundary_Impl::iddObjectType() const { | |
| 53 | ✗ | return RefrigerationWalkInZoneBoundary::iddObjectType(); | |
| 54 | } | ||
| 55 | |||
| 56 | ✗ | std::vector<ScheduleTypeKey> RefrigerationWalkInZoneBoundary_Impl::getScheduleTypeKeys(const Schedule& schedule) const { | |
| 57 | ✗ | std::vector<ScheduleTypeKey> result; | |
| 58 | ✗ | UnsignedVector fieldIndices = getSourceIndices(schedule.handle()); | |
| 59 | ✗ | UnsignedVector::const_iterator b(fieldIndices.begin()); | |
| 60 | ✗ | UnsignedVector::const_iterator e(fieldIndices.end()); | |
| 61 | ✗ | if (std::find(b, e, OS_Refrigeration_WalkIn_ZoneBoundaryFields::GlassReachInDoorOpeningScheduleNameFacingZone) != e) { | |
| 62 | ✗ | result.push_back(ScheduleTypeKey("RefrigerationWalkInZoneBoundary", "Glass Reach In Door Opening Facing Zone")); | |
| 63 | } | ||
| 64 | ✗ | if (std::find(b, e, OS_Refrigeration_WalkIn_ZoneBoundaryFields::StockingDoorOpeningScheduleNameFacingZone) != e) { | |
| 65 | ✗ | result.push_back(ScheduleTypeKey("RefrigerationWalkInZoneBoundary", "Stocking Door Opening Facing Zone")); | |
| 66 | } | ||
| 67 | ✗ | return result; | |
| 68 | ✗ | } | |
| 69 | |||
| 70 | 19 | ModelObject RefrigerationWalkInZoneBoundary_Impl::clone(Model model) const { | |
| 71 |
3/3✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
✓ Branch 7 taken 19 times.
|
19 | auto modelObjectClone = ModelObject_Impl::clone(model).cast<RefrigerationWalkInZoneBoundary>(); |
| 72 | |||
| 73 |
1/1✓ Branch 1 taken 19 times.
|
19 | modelObjectClone.resetThermalZone(); |
| 74 | |||
| 75 | 38 | return std::move(modelObjectClone); | |
| 76 | 19 | } | |
| 77 | |||
| 78 | 1 | boost::optional<ThermalZone> RefrigerationWalkInZoneBoundary_Impl::thermalZone() const { | |
| 79 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | return getObject<ModelObject>().getModelObjectTarget<ThermalZone>(OS_Refrigeration_WalkIn_ZoneBoundaryFields::ZoneName); |
| 80 | } | ||
| 81 | |||
| 82 | 3 | double RefrigerationWalkInZoneBoundary_Impl::totalInsulatedSurfaceAreaFacingZone() const { | |
| 83 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_Refrigeration_WalkIn_ZoneBoundaryFields::TotalInsulatedSurfaceAreaFacingZone, true); |
| 84 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 85 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 86 | } | ||
| 87 | |||
| 88 | 3 | double RefrigerationWalkInZoneBoundary_Impl::insulatedSurfaceUValueFacingZone() const { | |
| 89 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_Refrigeration_WalkIn_ZoneBoundaryFields::InsulatedSurfaceUValueFacingZone, true); |
| 90 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 91 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 92 | } | ||
| 93 | |||
| 94 | ✗ | bool RefrigerationWalkInZoneBoundary_Impl::isInsulatedSurfaceUValueFacingZoneDefaulted() const { | |
| 95 | ✗ | return isEmpty(OS_Refrigeration_WalkIn_ZoneBoundaryFields::InsulatedSurfaceUValueFacingZone); | |
| 96 | } | ||
| 97 | |||
| 98 | ✗ | double RefrigerationWalkInZoneBoundary_Impl::areaofGlassReachInDoorsFacingZone() const { | |
| 99 | ✗ | boost::optional<double> value = getDouble(OS_Refrigeration_WalkIn_ZoneBoundaryFields::AreaofGlassReachInDoorsFacingZone, true); | |
| 100 | ✗ | OS_ASSERT(value); | |
| 101 | ✗ | return value.get(); | |
| 102 | } | ||
| 103 | |||
| 104 | ✗ | bool RefrigerationWalkInZoneBoundary_Impl::isAreaofGlassReachInDoorsFacingZoneDefaulted() const { | |
| 105 | ✗ | return isEmpty(OS_Refrigeration_WalkIn_ZoneBoundaryFields::AreaofGlassReachInDoorsFacingZone); | |
| 106 | } | ||
| 107 | |||
| 108 | ✗ | double RefrigerationWalkInZoneBoundary_Impl::heightofGlassReachInDoorsFacingZone() const { | |
| 109 | ✗ | boost::optional<double> value = getDouble(OS_Refrigeration_WalkIn_ZoneBoundaryFields::HeightofGlassReachInDoorsFacingZone, true); | |
| 110 | ✗ | OS_ASSERT(value); | |
| 111 | ✗ | return value.get(); | |
| 112 | } | ||
| 113 | |||
| 114 | ✗ | bool RefrigerationWalkInZoneBoundary_Impl::isHeightofGlassReachInDoorsFacingZoneDefaulted() const { | |
| 115 | ✗ | return isEmpty(OS_Refrigeration_WalkIn_ZoneBoundaryFields::HeightofGlassReachInDoorsFacingZone); | |
| 116 | } | ||
| 117 | |||
| 118 | ✗ | double RefrigerationWalkInZoneBoundary_Impl::glassReachInDoorUValueFacingZone() const { | |
| 119 | ✗ | boost::optional<double> value = getDouble(OS_Refrigeration_WalkIn_ZoneBoundaryFields::GlassReachInDoorUValueFacingZone, true); | |
| 120 | ✗ | OS_ASSERT(value); | |
| 121 | ✗ | return value.get(); | |
| 122 | } | ||
| 123 | |||
| 124 | ✗ | bool RefrigerationWalkInZoneBoundary_Impl::isGlassReachInDoorUValueFacingZoneDefaulted() const { | |
| 125 | ✗ | return isEmpty(OS_Refrigeration_WalkIn_ZoneBoundaryFields::GlassReachInDoorUValueFacingZone); | |
| 126 | } | ||
| 127 | |||
| 128 | 2 | boost::optional<Schedule> RefrigerationWalkInZoneBoundary_Impl::glassReachInDoorOpeningScheduleFacingZone() const { | |
| 129 |
1/1✓ Branch 1 taken 2 times.
|
4 | return getObject<ModelObject>().getModelObjectTarget<Schedule>( |
| 130 |
1/1✓ Branch 1 taken 2 times.
|
4 | OS_Refrigeration_WalkIn_ZoneBoundaryFields::GlassReachInDoorOpeningScheduleNameFacingZone); |
| 131 | } | ||
| 132 | |||
| 133 | 3 | double RefrigerationWalkInZoneBoundary_Impl::areaofStockingDoorsFacingZone() const { | |
| 134 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_Refrigeration_WalkIn_ZoneBoundaryFields::AreaofStockingDoorsFacingZone, true); |
| 135 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 136 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 137 | } | ||
| 138 | |||
| 139 | ✗ | bool RefrigerationWalkInZoneBoundary_Impl::isAreaofStockingDoorsFacingZoneDefaulted() const { | |
| 140 | ✗ | return isEmpty(OS_Refrigeration_WalkIn_ZoneBoundaryFields::AreaofStockingDoorsFacingZone); | |
| 141 | } | ||
| 142 | |||
| 143 | 3 | double RefrigerationWalkInZoneBoundary_Impl::heightofStockingDoorsFacingZone() const { | |
| 144 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<double> value = getDouble(OS_Refrigeration_WalkIn_ZoneBoundaryFields::HeightofStockingDoorsFacingZone, true); |
| 145 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 146 |
1/1✓ Branch 1 taken 3 times.
|
6 | return value.get(); |
| 147 | } | ||
| 148 | |||
| 149 | ✗ | bool RefrigerationWalkInZoneBoundary_Impl::isHeightofStockingDoorsFacingZoneDefaulted() const { | |
| 150 | ✗ | return isEmpty(OS_Refrigeration_WalkIn_ZoneBoundaryFields::HeightofStockingDoorsFacingZone); | |
| 151 | } | ||
| 152 | |||
| 153 | 1 | double RefrigerationWalkInZoneBoundary_Impl::stockingDoorUValueFacingZone() const { | |
| 154 |
1/1✓ Branch 1 taken 1 time.
|
1 | boost::optional<double> value = getDouble(OS_Refrigeration_WalkIn_ZoneBoundaryFields::StockingDoorUValueFacingZone, true); |
| 155 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 1 time.
✗ Branch 4 not taken.
|
1 | OS_ASSERT(value); |
| 156 |
1/1✓ Branch 1 taken 1 time.
|
2 | return value.get(); |
| 157 | } | ||
| 158 | |||
| 159 | ✗ | bool RefrigerationWalkInZoneBoundary_Impl::isStockingDoorUValueFacingZoneDefaulted() const { | |
| 160 | ✗ | return isEmpty(OS_Refrigeration_WalkIn_ZoneBoundaryFields::StockingDoorUValueFacingZone); | |
| 161 | } | ||
| 162 | |||
| 163 | 2 | boost::optional<Schedule> RefrigerationWalkInZoneBoundary_Impl::stockingDoorOpeningScheduleFacingZone() const { | |
| 164 |
1/1✓ Branch 1 taken 2 times.
|
4 | return getObject<ModelObject>().getModelObjectTarget<Schedule>( |
| 165 |
1/1✓ Branch 1 taken 2 times.
|
4 | OS_Refrigeration_WalkIn_ZoneBoundaryFields::StockingDoorOpeningScheduleNameFacingZone); |
| 166 | } | ||
| 167 | |||
| 168 | 3 | std::string RefrigerationWalkInZoneBoundary_Impl::stockingDoorOpeningProtectionTypeFacingZone() const { | |
| 169 |
1/1✓ Branch 1 taken 3 times.
|
3 | boost::optional<std::string> value = getString(OS_Refrigeration_WalkIn_ZoneBoundaryFields::StockingDoorOpeningProtectionTypeFacingZone, true); |
| 170 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 3 times.
✗ Branch 4 not taken.
|
3 | OS_ASSERT(value); |
| 171 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | return value.get(); |
| 172 | 3 | } | |
| 173 | |||
| 174 | ✗ | bool RefrigerationWalkInZoneBoundary_Impl::isStockingDoorOpeningProtectionTypeFacingZoneDefaulted() const { | |
| 175 | ✗ | return isEmpty(OS_Refrigeration_WalkIn_ZoneBoundaryFields::StockingDoorOpeningProtectionTypeFacingZone); | |
| 176 | } | ||
| 177 | |||
| 178 | 1 | bool RefrigerationWalkInZoneBoundary_Impl::setThermalZone(const ThermalZone& thermalZone) { | |
| 179 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
1 | bool result = setPointer(OS_Refrigeration_WalkIn_ZoneBoundaryFields::ZoneName, thermalZone.handle()); |
| 180 | 1 | return result; | |
| 181 | } | ||
| 182 | |||
| 183 | 19 | void RefrigerationWalkInZoneBoundary_Impl::resetThermalZone() { | |
| 184 |
2/2✓ Branch 1 taken 19 times.
✓ Branch 4 taken 19 times.
|
38 | bool result = setString(OS_Refrigeration_WalkIn_ZoneBoundaryFields::ZoneName, ""); |
| 185 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 19 times.
|
19 | OS_ASSERT(result); |
| 186 | 19 | } | |
| 187 | |||
| 188 | 69 | bool RefrigerationWalkInZoneBoundary_Impl::setTotalInsulatedSurfaceAreaFacingZone(double totalInsulatedSurfaceAreaFacingZone) { | |
| 189 | 69 | bool result = setDouble(OS_Refrigeration_WalkIn_ZoneBoundaryFields::TotalInsulatedSurfaceAreaFacingZone, totalInsulatedSurfaceAreaFacingZone); | |
| 190 | 69 | return result; | |
| 191 | } | ||
| 192 | |||
| 193 | 69 | bool RefrigerationWalkInZoneBoundary_Impl::setInsulatedSurfaceUValueFacingZone(double insulatedSurfaceUValueFacingZone) { | |
| 194 | 69 | bool result = setDouble(OS_Refrigeration_WalkIn_ZoneBoundaryFields::InsulatedSurfaceUValueFacingZone, insulatedSurfaceUValueFacingZone); | |
| 195 | 69 | return result; | |
| 196 | } | ||
| 197 | |||
| 198 | ✗ | void RefrigerationWalkInZoneBoundary_Impl::resetInsulatedSurfaceUValueFacingZone() { | |
| 199 | ✗ | bool result = setString(OS_Refrigeration_WalkIn_ZoneBoundaryFields::InsulatedSurfaceUValueFacingZone, ""); | |
| 200 | ✗ | OS_ASSERT(result); | |
| 201 | ✗ | } | |
| 202 | |||
| 203 | ✗ | bool RefrigerationWalkInZoneBoundary_Impl::setAreaofGlassReachInDoorsFacingZone(double areaofGlassReachInDoorsFacingZone) { | |
| 204 | ✗ | bool result = setDouble(OS_Refrigeration_WalkIn_ZoneBoundaryFields::AreaofGlassReachInDoorsFacingZone, areaofGlassReachInDoorsFacingZone); | |
| 205 | ✗ | OS_ASSERT(result); | |
| 206 | ✗ | return result; | |
| 207 | } | ||
| 208 | |||
| 209 | ✗ | void RefrigerationWalkInZoneBoundary_Impl::resetAreaofGlassReachInDoorsFacingZone() { | |
| 210 | ✗ | bool result = setString(OS_Refrigeration_WalkIn_ZoneBoundaryFields::AreaofGlassReachInDoorsFacingZone, ""); | |
| 211 | ✗ | OS_ASSERT(result); | |
| 212 | ✗ | } | |
| 213 | |||
| 214 | ✗ | bool RefrigerationWalkInZoneBoundary_Impl::setHeightofGlassReachInDoorsFacingZone(double heightofGlassReachInDoorsFacingZone) { | |
| 215 | ✗ | bool result = setDouble(OS_Refrigeration_WalkIn_ZoneBoundaryFields::HeightofGlassReachInDoorsFacingZone, heightofGlassReachInDoorsFacingZone); | |
| 216 | ✗ | OS_ASSERT(result); | |
| 217 | ✗ | return result; | |
| 218 | } | ||
| 219 | |||
| 220 | ✗ | void RefrigerationWalkInZoneBoundary_Impl::resetHeightofGlassReachInDoorsFacingZone() { | |
| 221 | ✗ | bool result = setString(OS_Refrigeration_WalkIn_ZoneBoundaryFields::HeightofGlassReachInDoorsFacingZone, ""); | |
| 222 | ✗ | OS_ASSERT(result); | |
| 223 | ✗ | } | |
| 224 | |||
| 225 | ✗ | bool RefrigerationWalkInZoneBoundary_Impl::setGlassReachInDoorUValueFacingZone(double glassReachInDoorUValueFacingZone) { | |
| 226 | ✗ | bool result = setDouble(OS_Refrigeration_WalkIn_ZoneBoundaryFields::GlassReachInDoorUValueFacingZone, glassReachInDoorUValueFacingZone); | |
| 227 | ✗ | return result; | |
| 228 | } | ||
| 229 | |||
| 230 | ✗ | void RefrigerationWalkInZoneBoundary_Impl::resetGlassReachInDoorUValueFacingZone() { | |
| 231 | ✗ | bool result = setString(OS_Refrigeration_WalkIn_ZoneBoundaryFields::GlassReachInDoorUValueFacingZone, ""); | |
| 232 | ✗ | OS_ASSERT(result); | |
| 233 | ✗ | } | |
| 234 | |||
| 235 | 1 | bool RefrigerationWalkInZoneBoundary_Impl::setGlassReachInDoorOpeningScheduleFacingZone(Schedule& schedule) { | |
| 236 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
4 | bool result = setSchedule(OS_Refrigeration_WalkIn_ZoneBoundaryFields::GlassReachInDoorOpeningScheduleNameFacingZone, |
| 237 | "RefrigerationWalkInZoneBoundary", "Glass Reach In Door Opening Facing Zone", schedule); | ||
| 238 | 1 | return result; | |
| 239 | } | ||
| 240 | |||
| 241 | ✗ | void RefrigerationWalkInZoneBoundary_Impl::resetGlassReachInDoorOpeningScheduleFacingZone() { | |
| 242 | ✗ | bool result = setString(OS_Refrigeration_WalkIn_ZoneBoundaryFields::GlassReachInDoorOpeningScheduleNameFacingZone, ""); | |
| 243 | ✗ | OS_ASSERT(result); | |
| 244 | ✗ | } | |
| 245 | |||
| 246 | 69 | bool RefrigerationWalkInZoneBoundary_Impl::setAreaofStockingDoorsFacingZone(double areaofStockingDoorsFacingZone) { | |
| 247 | 69 | bool result = setDouble(OS_Refrigeration_WalkIn_ZoneBoundaryFields::AreaofStockingDoorsFacingZone, areaofStockingDoorsFacingZone); | |
| 248 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 69 times.
|
69 | OS_ASSERT(result); |
| 249 | 69 | return result; | |
| 250 | } | ||
| 251 | |||
| 252 | ✗ | void RefrigerationWalkInZoneBoundary_Impl::resetAreaofStockingDoorsFacingZone() { | |
| 253 | ✗ | bool result = setString(OS_Refrigeration_WalkIn_ZoneBoundaryFields::AreaofStockingDoorsFacingZone, ""); | |
| 254 | ✗ | OS_ASSERT(result); | |
| 255 | ✗ | } | |
| 256 | |||
| 257 | 69 | bool RefrigerationWalkInZoneBoundary_Impl::setHeightofStockingDoorsFacingZone(double heightofStockingDoorsFacingZone) { | |
| 258 | 69 | bool result = setDouble(OS_Refrigeration_WalkIn_ZoneBoundaryFields::HeightofStockingDoorsFacingZone, heightofStockingDoorsFacingZone); | |
| 259 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 69 times.
|
69 | OS_ASSERT(result); |
| 260 | 69 | return result; | |
| 261 | } | ||
| 262 | |||
| 263 | ✗ | void RefrigerationWalkInZoneBoundary_Impl::resetHeightofStockingDoorsFacingZone() { | |
| 264 | ✗ | bool result = setString(OS_Refrigeration_WalkIn_ZoneBoundaryFields::HeightofStockingDoorsFacingZone, ""); | |
| 265 | ✗ | OS_ASSERT(result); | |
| 266 | ✗ | } | |
| 267 | |||
| 268 | 1 | bool RefrigerationWalkInZoneBoundary_Impl::setStockingDoorUValueFacingZone(double stockingDoorUValueFacingZone) { | |
| 269 | 1 | bool result = setDouble(OS_Refrigeration_WalkIn_ZoneBoundaryFields::StockingDoorUValueFacingZone, stockingDoorUValueFacingZone); | |
| 270 | 1 | return result; | |
| 271 | } | ||
| 272 | |||
| 273 | ✗ | void RefrigerationWalkInZoneBoundary_Impl::resetStockingDoorUValueFacingZone() { | |
| 274 | ✗ | bool result = setString(OS_Refrigeration_WalkIn_ZoneBoundaryFields::StockingDoorUValueFacingZone, ""); | |
| 275 | ✗ | OS_ASSERT(result); | |
| 276 | ✗ | } | |
| 277 | |||
| 278 | 1 | bool RefrigerationWalkInZoneBoundary_Impl::setStockingDoorOpeningScheduleFacingZone(Schedule& schedule) { | |
| 279 |
3/3✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
|
4 | bool result = setSchedule(OS_Refrigeration_WalkIn_ZoneBoundaryFields::StockingDoorOpeningScheduleNameFacingZone, |
| 280 | "RefrigerationWalkInZoneBoundary", "Stocking Door Opening Facing Zone", schedule); | ||
| 281 | 1 | return result; | |
| 282 | } | ||
| 283 | |||
| 284 | ✗ | void RefrigerationWalkInZoneBoundary_Impl::resetStockingDoorOpeningScheduleFacingZone() { | |
| 285 | ✗ | bool result = setString(OS_Refrigeration_WalkIn_ZoneBoundaryFields::StockingDoorOpeningScheduleNameFacingZone, ""); | |
| 286 | ✗ | OS_ASSERT(result); | |
| 287 | ✗ | } | |
| 288 | |||
| 289 | 69 | bool RefrigerationWalkInZoneBoundary_Impl::setStockingDoorOpeningProtectionTypeFacingZone( | |
| 290 | const std::string& stockingDoorOpeningProtectionTypeFacingZone) { | ||
| 291 | 69 | bool result = setString(OS_Refrigeration_WalkIn_ZoneBoundaryFields::StockingDoorOpeningProtectionTypeFacingZone, | |
| 292 | stockingDoorOpeningProtectionTypeFacingZone); | ||
| 293 | 69 | return result; | |
| 294 | } | ||
| 295 | |||
| 296 | ✗ | void RefrigerationWalkInZoneBoundary_Impl::resetStockingDoorOpeningProtectionTypeFacingZone() { | |
| 297 | ✗ | bool result = setString(OS_Refrigeration_WalkIn_ZoneBoundaryFields::StockingDoorOpeningProtectionTypeFacingZone, ""); | |
| 298 | ✗ | OS_ASSERT(result); | |
| 299 | ✗ | } | |
| 300 | |||
| 301 | } // namespace detail | ||
| 302 | |||
| 303 | 68 | RefrigerationWalkInZoneBoundary::RefrigerationWalkInZoneBoundary(const Model& model) | |
| 304 | 68 | : ModelObject(RefrigerationWalkInZoneBoundary::iddObjectType(), model) { | |
| 305 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 68 times.
✗ Branch 5 not taken.
|
68 | OS_ASSERT(getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()); |
| 306 | |||
| 307 |
1/1✓ Branch 1 taken 68 times.
|
68 | bool ok = setTotalInsulatedSurfaceAreaFacingZone(43.4); |
| 308 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 68 times.
✗ Branch 3 not taken.
|
68 | OS_ASSERT(ok); |
| 309 |
1/1✓ Branch 1 taken 68 times.
|
68 | ok = setInsulatedSurfaceUValueFacingZone(.235); |
| 310 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 68 times.
✗ Branch 3 not taken.
|
68 | OS_ASSERT(ok); |
| 311 |
1/1✓ Branch 1 taken 68 times.
|
68 | setAreaofStockingDoorsFacingZone(2.0); |
| 312 |
1/1✓ Branch 1 taken 68 times.
|
68 | setHeightofStockingDoorsFacingZone(2.0); |
| 313 |
2/2✓ Branch 1 taken 68 times.
✓ Branch 4 taken 68 times.
|
68 | ok = setStockingDoorOpeningProtectionTypeFacingZone("StripCurtain"); |
| 314 |
1/3✗ Branch 0 not taken.
✓ Branch 1 taken 68 times.
✗ Branch 3 not taken.
|
68 | OS_ASSERT(ok); |
| 315 | 68 | } | |
| 316 | |||
| 317 | 7741 | IddObjectType RefrigerationWalkInZoneBoundary::iddObjectType() { | |
| 318 |
1/1✓ Branch 1 taken 7741 times.
|
7741 | return {IddObjectType::OS_Refrigeration_WalkIn_ZoneBoundary}; |
| 319 | } | ||
| 320 | |||
| 321 | ✗ | std::vector<std::string> RefrigerationWalkInZoneBoundary::stockingDoorOpeningProtectionTypeFacingZoneValues() { | |
| 322 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), | |
| 323 | ✗ | OS_Refrigeration_WalkIn_ZoneBoundaryFields::StockingDoorOpeningProtectionTypeFacingZone); | |
| 324 | } | ||
| 325 | |||
| 326 | 1 | boost::optional<ThermalZone> RefrigerationWalkInZoneBoundary::thermalZone() const { | |
| 327 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->thermalZone(); |
| 328 | } | ||
| 329 | |||
| 330 | 3 | double RefrigerationWalkInZoneBoundary::totalInsulatedSurfaceAreaFacingZone() const { | |
| 331 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->totalInsulatedSurfaceAreaFacingZone(); |
| 332 | } | ||
| 333 | |||
| 334 | 3 | double RefrigerationWalkInZoneBoundary::insulatedSurfaceUValueFacingZone() const { | |
| 335 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->insulatedSurfaceUValueFacingZone(); |
| 336 | } | ||
| 337 | |||
| 338 | ✗ | bool RefrigerationWalkInZoneBoundary::isInsulatedSurfaceUValueFacingZoneDefaulted() const { | |
| 339 | ✗ | return getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->isInsulatedSurfaceUValueFacingZoneDefaulted(); | |
| 340 | } | ||
| 341 | |||
| 342 | ✗ | double RefrigerationWalkInZoneBoundary::areaofGlassReachInDoorsFacingZone() const { | |
| 343 | ✗ | return getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->areaofGlassReachInDoorsFacingZone(); | |
| 344 | } | ||
| 345 | |||
| 346 | ✗ | bool RefrigerationWalkInZoneBoundary::isAreaofGlassReachInDoorsFacingZoneDefaulted() const { | |
| 347 | ✗ | return getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->isAreaofGlassReachInDoorsFacingZoneDefaulted(); | |
| 348 | } | ||
| 349 | |||
| 350 | ✗ | double RefrigerationWalkInZoneBoundary::heightofGlassReachInDoorsFacingZone() const { | |
| 351 | ✗ | return getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->heightofGlassReachInDoorsFacingZone(); | |
| 352 | } | ||
| 353 | |||
| 354 | ✗ | bool RefrigerationWalkInZoneBoundary::isHeightofGlassReachInDoorsFacingZoneDefaulted() const { | |
| 355 | ✗ | return getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->isHeightofGlassReachInDoorsFacingZoneDefaulted(); | |
| 356 | } | ||
| 357 | |||
| 358 | ✗ | double RefrigerationWalkInZoneBoundary::glassReachInDoorUValueFacingZone() const { | |
| 359 | ✗ | return getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->glassReachInDoorUValueFacingZone(); | |
| 360 | } | ||
| 361 | |||
| 362 | ✗ | bool RefrigerationWalkInZoneBoundary::isGlassReachInDoorUValueFacingZoneDefaulted() const { | |
| 363 | ✗ | return getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->isGlassReachInDoorUValueFacingZoneDefaulted(); | |
| 364 | } | ||
| 365 | |||
| 366 | 2 | boost::optional<Schedule> RefrigerationWalkInZoneBoundary::glassReachInDoorOpeningScheduleFacingZone() const { | |
| 367 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->glassReachInDoorOpeningScheduleFacingZone(); |
| 368 | } | ||
| 369 | |||
| 370 | 3 | double RefrigerationWalkInZoneBoundary::areaofStockingDoorsFacingZone() const { | |
| 371 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->areaofStockingDoorsFacingZone(); |
| 372 | } | ||
| 373 | |||
| 374 | ✗ | bool RefrigerationWalkInZoneBoundary::isAreaofStockingDoorsFacingZoneDefaulted() const { | |
| 375 | ✗ | return getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->isAreaofStockingDoorsFacingZoneDefaulted(); | |
| 376 | } | ||
| 377 | |||
| 378 | 3 | double RefrigerationWalkInZoneBoundary::heightofStockingDoorsFacingZone() const { | |
| 379 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->heightofStockingDoorsFacingZone(); |
| 380 | } | ||
| 381 | |||
| 382 | ✗ | bool RefrigerationWalkInZoneBoundary::isHeightofStockingDoorsFacingZoneDefaulted() const { | |
| 383 | ✗ | return getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->isHeightofStockingDoorsFacingZoneDefaulted(); | |
| 384 | } | ||
| 385 | |||
| 386 | 1 | double RefrigerationWalkInZoneBoundary::stockingDoorUValueFacingZone() const { | |
| 387 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->stockingDoorUValueFacingZone(); |
| 388 | } | ||
| 389 | |||
| 390 | ✗ | bool RefrigerationWalkInZoneBoundary::isStockingDoorUValueFacingZoneDefaulted() const { | |
| 391 | ✗ | return getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->isStockingDoorUValueFacingZoneDefaulted(); | |
| 392 | } | ||
| 393 | |||
| 394 | 2 | boost::optional<Schedule> RefrigerationWalkInZoneBoundary::stockingDoorOpeningScheduleFacingZone() const { | |
| 395 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->stockingDoorOpeningScheduleFacingZone(); |
| 396 | } | ||
| 397 | |||
| 398 | 3 | std::string RefrigerationWalkInZoneBoundary::stockingDoorOpeningProtectionTypeFacingZone() const { | |
| 399 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->stockingDoorOpeningProtectionTypeFacingZone(); |
| 400 | } | ||
| 401 | |||
| 402 | ✗ | bool RefrigerationWalkInZoneBoundary::isStockingDoorOpeningProtectionTypeFacingZoneDefaulted() const { | |
| 403 | ✗ | return getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->isStockingDoorOpeningProtectionTypeFacingZoneDefaulted(); | |
| 404 | } | ||
| 405 | |||
| 406 | 1 | bool RefrigerationWalkInZoneBoundary::setThermalZone(const ThermalZone& thermalZone) { | |
| 407 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->setThermalZone(thermalZone); |
| 408 | } | ||
| 409 | |||
| 410 | 19 | void RefrigerationWalkInZoneBoundary::resetThermalZone() { | |
| 411 |
1/1✓ Branch 3 taken 19 times.
|
19 | getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->resetThermalZone(); |
| 412 | 19 | } | |
| 413 | |||
| 414 | 69 | bool RefrigerationWalkInZoneBoundary::setTotalInsulatedSurfaceAreaFacingZone(double totalInsulatedSurfaceAreaFacingZone) { | |
| 415 |
1/1✓ Branch 3 taken 69 times.
|
69 | return getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->setTotalInsulatedSurfaceAreaFacingZone(totalInsulatedSurfaceAreaFacingZone); |
| 416 | } | ||
| 417 | |||
| 418 | 69 | bool RefrigerationWalkInZoneBoundary::setInsulatedSurfaceUValueFacingZone(double insulatedSurfaceUValueFacingZone) { | |
| 419 |
1/1✓ Branch 3 taken 69 times.
|
69 | return getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->setInsulatedSurfaceUValueFacingZone(insulatedSurfaceUValueFacingZone); |
| 420 | } | ||
| 421 | |||
| 422 | ✗ | void RefrigerationWalkInZoneBoundary::resetInsulatedSurfaceUValueFacingZone() { | |
| 423 | ✗ | getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->resetInsulatedSurfaceUValueFacingZone(); | |
| 424 | ✗ | } | |
| 425 | |||
| 426 | ✗ | bool RefrigerationWalkInZoneBoundary::setAreaofGlassReachInDoorsFacingZone(double areaofGlassReachInDoorsFacingZone) { | |
| 427 | ✗ | return getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->setAreaofGlassReachInDoorsFacingZone(areaofGlassReachInDoorsFacingZone); | |
| 428 | } | ||
| 429 | |||
| 430 | ✗ | void RefrigerationWalkInZoneBoundary::resetAreaofGlassReachInDoorsFacingZone() { | |
| 431 | ✗ | getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->resetAreaofGlassReachInDoorsFacingZone(); | |
| 432 | ✗ | } | |
| 433 | |||
| 434 | ✗ | bool RefrigerationWalkInZoneBoundary::setHeightofGlassReachInDoorsFacingZone(double heightofGlassReachInDoorsFacingZone) { | |
| 435 | ✗ | return getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->setHeightofGlassReachInDoorsFacingZone(heightofGlassReachInDoorsFacingZone); | |
| 436 | } | ||
| 437 | |||
| 438 | ✗ | void RefrigerationWalkInZoneBoundary::resetHeightofGlassReachInDoorsFacingZone() { | |
| 439 | ✗ | getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->resetHeightofGlassReachInDoorsFacingZone(); | |
| 440 | ✗ | } | |
| 441 | |||
| 442 | ✗ | bool RefrigerationWalkInZoneBoundary::setGlassReachInDoorUValueFacingZone(double glassReachInDoorUValueFacingZone) { | |
| 443 | ✗ | return getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->setGlassReachInDoorUValueFacingZone(glassReachInDoorUValueFacingZone); | |
| 444 | } | ||
| 445 | |||
| 446 | ✗ | void RefrigerationWalkInZoneBoundary::resetGlassReachInDoorUValueFacingZone() { | |
| 447 | ✗ | getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->resetGlassReachInDoorUValueFacingZone(); | |
| 448 | ✗ | } | |
| 449 | |||
| 450 | 1 | bool RefrigerationWalkInZoneBoundary::setGlassReachInDoorOpeningScheduleFacingZone(Schedule& schedule) { | |
| 451 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->setGlassReachInDoorOpeningScheduleFacingZone(schedule); |
| 452 | } | ||
| 453 | |||
| 454 | ✗ | void RefrigerationWalkInZoneBoundary::resetGlassReachInDoorOpeningScheduleFacingZone() { | |
| 455 | ✗ | getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->resetGlassReachInDoorOpeningScheduleFacingZone(); | |
| 456 | ✗ | } | |
| 457 | |||
| 458 | 69 | bool RefrigerationWalkInZoneBoundary::setAreaofStockingDoorsFacingZone(double areaofStockingDoorsFacingZone) { | |
| 459 |
1/1✓ Branch 3 taken 69 times.
|
69 | return getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->setAreaofStockingDoorsFacingZone(areaofStockingDoorsFacingZone); |
| 460 | } | ||
| 461 | |||
| 462 | ✗ | void RefrigerationWalkInZoneBoundary::resetAreaofStockingDoorsFacingZone() { | |
| 463 | ✗ | getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->resetAreaofStockingDoorsFacingZone(); | |
| 464 | ✗ | } | |
| 465 | |||
| 466 | 69 | bool RefrigerationWalkInZoneBoundary::setHeightofStockingDoorsFacingZone(double heightofStockingDoorsFacingZone) { | |
| 467 |
1/1✓ Branch 3 taken 69 times.
|
69 | return getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->setHeightofStockingDoorsFacingZone(heightofStockingDoorsFacingZone); |
| 468 | } | ||
| 469 | |||
| 470 | ✗ | void RefrigerationWalkInZoneBoundary::resetHeightofStockingDoorsFacingZone() { | |
| 471 | ✗ | getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->resetHeightofStockingDoorsFacingZone(); | |
| 472 | ✗ | } | |
| 473 | |||
| 474 | 1 | bool RefrigerationWalkInZoneBoundary::setStockingDoorUValueFacingZone(double stockingDoorUValueFacingZone) { | |
| 475 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->setStockingDoorUValueFacingZone(stockingDoorUValueFacingZone); |
| 476 | } | ||
| 477 | |||
| 478 | ✗ | void RefrigerationWalkInZoneBoundary::resetStockingDoorUValueFacingZone() { | |
| 479 | ✗ | getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->resetStockingDoorUValueFacingZone(); | |
| 480 | ✗ | } | |
| 481 | |||
| 482 | 1 | bool RefrigerationWalkInZoneBoundary::setStockingDoorOpeningScheduleFacingZone(Schedule& schedule) { | |
| 483 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->setStockingDoorOpeningScheduleFacingZone(schedule); |
| 484 | } | ||
| 485 | |||
| 486 | ✗ | void RefrigerationWalkInZoneBoundary::resetStockingDoorOpeningScheduleFacingZone() { | |
| 487 | ✗ | getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->resetStockingDoorOpeningScheduleFacingZone(); | |
| 488 | ✗ | } | |
| 489 | |||
| 490 | bool | ||
| 491 | 69 | RefrigerationWalkInZoneBoundary::setStockingDoorOpeningProtectionTypeFacingZone(const std::string& stockingDoorOpeningProtectionTypeFacingZone) { | |
| 492 |
1/1✓ Branch 3 taken 69 times.
|
138 | return getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->setStockingDoorOpeningProtectionTypeFacingZone( |
| 493 | 138 | stockingDoorOpeningProtectionTypeFacingZone); | |
| 494 | } | ||
| 495 | |||
| 496 | ✗ | void RefrigerationWalkInZoneBoundary::resetStockingDoorOpeningProtectionTypeFacingZone() { | |
| 497 | ✗ | getImpl<detail::RefrigerationWalkInZoneBoundary_Impl>()->resetStockingDoorOpeningProtectionTypeFacingZone(); | |
| 498 | ✗ | } | |
| 499 | |||
| 500 | /// @cond | ||
| 501 | 74 | RefrigerationWalkInZoneBoundary::RefrigerationWalkInZoneBoundary(std::shared_ptr<detail::RefrigerationWalkInZoneBoundary_Impl> impl) | |
| 502 |
1/1✓ Branch 3 taken 74 times.
|
74 | : ModelObject(std::move(impl)) {} |
| 503 | /// @endcond | ||
| 504 | |||
| 505 | } // namespace model | ||
| 506 | } // namespace openstudio | ||
| 507 |