src/model/OtherEquipmentDefinition.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 "OtherEquipmentDefinition.hpp" | ||
| 7 | #include "OtherEquipmentDefinition_Impl.hpp" | ||
| 8 | |||
| 9 | #include <utilities/idd/IddFactory.hxx> | ||
| 10 | |||
| 11 | #include <utilities/idd/OS_OtherEquipment_Definition_FieldEnums.hxx> | ||
| 12 | #include <utilities/idd/IddEnums.hxx> | ||
| 13 | |||
| 14 | #include "../utilities/math/FloatCompare.hpp" | ||
| 15 | #include "../utilities/core/Compare.hpp" | ||
| 16 | #include "../utilities/core/Assert.hpp" | ||
| 17 | |||
| 18 | namespace openstudio { | ||
| 19 | namespace model { | ||
| 20 | |||
| 21 | namespace detail { | ||
| 22 | |||
| 23 | 11 | OtherEquipmentDefinition_Impl::OtherEquipmentDefinition_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 24 | 11 | : SpaceLoadDefinition_Impl(idfObject, model, keepHandle) { | |
| 25 |
4/6✓ Branch 1 taken 11 times.
✓ Branch 4 taken 11 times.
✓ Branch 7 taken 11 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 11 times.
✗ Branch 13 not taken.
|
11 | OS_ASSERT(idfObject.iddObject().type() == OtherEquipmentDefinition::iddObjectType()); |
| 26 | 11 | } | |
| 27 | |||
| 28 | 2 | OtherEquipmentDefinition_Impl::OtherEquipmentDefinition_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, | |
| 29 | 2 | bool keepHandle) | |
| 30 | 2 | : SpaceLoadDefinition_Impl(other, model, keepHandle) { | |
| 31 |
4/6✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 2 times.
✗ Branch 13 not taken.
|
2 | OS_ASSERT(other.iddObject().type() == OtherEquipmentDefinition::iddObjectType()); |
| 32 | 2 | } | |
| 33 | |||
| 34 | 3 | OtherEquipmentDefinition_Impl::OtherEquipmentDefinition_Impl(const OtherEquipmentDefinition_Impl& other, Model_Impl* model, bool keepHandle) | |
| 35 | 3 | : SpaceLoadDefinition_Impl(other, model, keepHandle) {} | |
| 36 | |||
| 37 | ✗ | const std::vector<std::string>& OtherEquipmentDefinition_Impl::outputVariableNames() const { | |
| 38 | ✗ | static const std::vector<std::string> result; | |
| 39 | // Not appropriate: output is listed in OtherEquipment instead | ||
| 40 | ✗ | return result; | |
| 41 | } | ||
| 42 | |||
| 43 | ✗ | IddObjectType OtherEquipmentDefinition_Impl::iddObjectType() const { | |
| 44 | ✗ | return OtherEquipmentDefinition::iddObjectType(); | |
| 45 | } | ||
| 46 | |||
| 47 | 7 | std::string OtherEquipmentDefinition_Impl::designLevelCalculationMethod() const { | |
| 48 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<std::string> value = getString(OS_OtherEquipment_DefinitionFields::DesignLevelCalculationMethod, true); |
| 49 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
✗ Branch 4 not taken.
|
7 | OS_ASSERT(value); |
| 50 |
2/2✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
|
14 | return value.get(); |
| 51 | 7 | } | |
| 52 | |||
| 53 | 9 | boost::optional<double> OtherEquipmentDefinition_Impl::designLevel() const { | |
| 54 | 9 | return getDouble(OS_OtherEquipment_DefinitionFields::DesignLevel, true); | |
| 55 | } | ||
| 56 | |||
| 57 | 8 | boost::optional<double> OtherEquipmentDefinition_Impl::wattsperSpaceFloorArea() const { | |
| 58 | 8 | return getDouble(OS_OtherEquipment_DefinitionFields::WattsperSpaceFloorArea, true); | |
| 59 | } | ||
| 60 | |||
| 61 | 8 | boost::optional<double> OtherEquipmentDefinition_Impl::wattsperPerson() const { | |
| 62 | 8 | return getDouble(OS_OtherEquipment_DefinitionFields::WattsperPerson, true); | |
| 63 | } | ||
| 64 | |||
| 65 | 6 | double OtherEquipmentDefinition_Impl::fractionLatent() const { | |
| 66 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<double> value = getDouble(OS_OtherEquipment_DefinitionFields::FractionLatent, true); |
| 67 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 68 |
1/1✓ Branch 1 taken 6 times.
|
12 | return value.get(); |
| 69 | } | ||
| 70 | |||
| 71 | 3 | bool OtherEquipmentDefinition_Impl::isFractionLatentDefaulted() const { | |
| 72 | 3 | return isEmpty(OS_OtherEquipment_DefinitionFields::FractionLatent); | |
| 73 | } | ||
| 74 | |||
| 75 | 6 | double OtherEquipmentDefinition_Impl::fractionRadiant() const { | |
| 76 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<double> value = getDouble(OS_OtherEquipment_DefinitionFields::FractionRadiant, true); |
| 77 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 78 |
1/1✓ Branch 1 taken 6 times.
|
12 | return value.get(); |
| 79 | } | ||
| 80 | |||
| 81 | 3 | bool OtherEquipmentDefinition_Impl::isFractionRadiantDefaulted() const { | |
| 82 | 3 | return isEmpty(OS_OtherEquipment_DefinitionFields::FractionRadiant); | |
| 83 | } | ||
| 84 | |||
| 85 | 7 | double OtherEquipmentDefinition_Impl::fractionLost() const { | |
| 86 |
1/1✓ Branch 1 taken 7 times.
|
7 | boost::optional<double> value = getDouble(OS_OtherEquipment_DefinitionFields::FractionLost, true); |
| 87 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 7 times.
✗ Branch 4 not taken.
|
7 | OS_ASSERT(value); |
| 88 |
1/1✓ Branch 1 taken 7 times.
|
14 | return value.get(); |
| 89 | } | ||
| 90 | |||
| 91 | 3 | bool OtherEquipmentDefinition_Impl::isFractionLostDefaulted() const { | |
| 92 | 3 | return isEmpty(OS_OtherEquipment_DefinitionFields::FractionLost); | |
| 93 | } | ||
| 94 | |||
| 95 | 15 | bool OtherEquipmentDefinition_Impl::setDesignLevel(boost::optional<double> designLevel) { | |
| 96 | 15 | bool result = false; | |
| 97 |
2/2✓ Branch 0 taken 13 times.
✓ Branch 1 taken 2 times.
|
15 | if (designLevel) { |
| 98 |
2/2✓ Branch 1 taken 13 times.
✓ Branch 4 taken 13 times.
|
26 | result = setString(OS_OtherEquipment_DefinitionFields::DesignLevelCalculationMethod, "EquipmentLevel"); |
| 99 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 13 times.
|
13 | OS_ASSERT(result); |
| 100 | 13 | result = setDouble(OS_OtherEquipment_DefinitionFields::DesignLevel, designLevel.get()); | |
| 101 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 13 times.
|
13 | OS_ASSERT(result); |
| 102 |
1/1✓ Branch 2 taken 13 times.
|
13 | result = setWattsperSpaceFloorArea(boost::none); |
| 103 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 13 times.
|
13 | OS_ASSERT(result); |
| 104 |
1/1✓ Branch 2 taken 13 times.
|
13 | result = setWattsperPerson(boost::none); |
| 105 | } else { | ||
| 106 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
6 | result = setString(OS_OtherEquipment_DefinitionFields::DesignLevel, ""); |
| 107 | } | ||
| 108 | |||
| 109 | 15 | return result; | |
| 110 | } | ||
| 111 | |||
| 112 | 15 | bool OtherEquipmentDefinition_Impl::setWattsperSpaceFloorArea(boost::optional<double> wattsperSpaceFloorArea) { | |
| 113 | 15 | bool result = false; | |
| 114 |
2/2✓ Branch 0 taken 1 time.
✓ Branch 1 taken 14 times.
|
15 | if (wattsperSpaceFloorArea) { |
| 115 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | result = setString(OS_OtherEquipment_DefinitionFields::DesignLevelCalculationMethod, "Watts/Area"); |
| 116 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 117 |
1/1✓ Branch 2 taken 1 time.
|
1 | setDesignLevel(boost::none); |
| 118 | 1 | result = setDouble(OS_OtherEquipment_DefinitionFields::WattsperSpaceFloorArea, wattsperSpaceFloorArea.get()); | |
| 119 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 120 |
1/1✓ Branch 2 taken 1 time.
|
1 | result = setWattsperPerson(boost::none); |
| 121 | } else { | ||
| 122 |
2/2✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
|
42 | result = setString(OS_OtherEquipment_DefinitionFields::WattsperSpaceFloorArea, ""); |
| 123 | } | ||
| 124 | 15 | return result; | |
| 125 | } | ||
| 126 | |||
| 127 | 15 | bool OtherEquipmentDefinition_Impl::setWattsperPerson(boost::optional<double> wattsperPerson) { | |
| 128 | 15 | bool result = false; | |
| 129 |
2/2✓ Branch 0 taken 1 time.
✓ Branch 1 taken 14 times.
|
15 | if (wattsperPerson) { |
| 130 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | result = setString(OS_OtherEquipment_DefinitionFields::DesignLevelCalculationMethod, "Watts/Person"); |
| 131 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 132 |
1/1✓ Branch 2 taken 1 time.
|
1 | setDesignLevel(boost::none); |
| 133 |
1/1✓ Branch 2 taken 1 time.
|
1 | result = setWattsperSpaceFloorArea(boost::none); |
| 134 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 135 | 1 | result = setDouble(OS_OtherEquipment_DefinitionFields::WattsperPerson, wattsperPerson.get()); | |
| 136 | } else { | ||
| 137 |
2/2✓ Branch 1 taken 14 times.
✓ Branch 4 taken 14 times.
|
42 | result = setString(OS_OtherEquipment_DefinitionFields::WattsperPerson, ""); |
| 138 | } | ||
| 139 | 15 | return result; | |
| 140 | } | ||
| 141 | |||
| 142 | 3 | bool OtherEquipmentDefinition_Impl::setFractionLatent(double fractionLatent) { | |
| 143 | |||
| 144 | 3 | double fractionRadiantAndLost = fractionRadiant() + fractionLost(); | |
| 145 |
2/2✓ Branch 0 taken 1 time.
✓ Branch 1 taken 2 times.
|
3 | if ((fractionLatent + fractionRadiantAndLost) > 1.0) { |
| 146 |
9/9✓ 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.
|
1 | LOG(Error, "Radiant Fraction and Lost Fraction sum to " << fractionRadiantAndLost << " and you supplied a Latent Fraction of " |
| 147 | << fractionLatent << " which would result in a sum greater than 1.0"); | ||
| 148 | 1 | return false; | |
| 149 | } | ||
| 150 | 2 | bool result = setDouble(OS_OtherEquipment_DefinitionFields::FractionLatent, fractionLatent); | |
| 151 | 2 | return result; | |
| 152 | } | ||
| 153 | |||
| 154 | ✗ | void OtherEquipmentDefinition_Impl::resetFractionLatent() { | |
| 155 | ✗ | bool result = setString(OS_OtherEquipment_DefinitionFields::FractionLatent, ""); | |
| 156 | ✗ | OS_ASSERT(result); | |
| 157 | ✗ | } | |
| 158 | |||
| 159 | 3 | bool OtherEquipmentDefinition_Impl::setFractionRadiant(double fractionRadiant) { | |
| 160 | |||
| 161 | 3 | double fractionLatentAndLost = fractionLatent() + fractionLost(); | |
| 162 |
2/2✓ Branch 0 taken 1 time.
✓ Branch 1 taken 2 times.
|
3 | if ((fractionRadiant + fractionLatentAndLost) > 1.0) { |
| 163 |
9/9✓ 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.
|
1 | LOG(Error, "Latent Fraction and Lost Fraction sum to " << fractionLatentAndLost << " and you supplied a Radiant Fraction of " |
| 164 | << fractionRadiant << " which would result in a sum greater than 1.0"); | ||
| 165 | 1 | return false; | |
| 166 | } | ||
| 167 | 2 | bool result = setDouble(OS_OtherEquipment_DefinitionFields::FractionRadiant, fractionRadiant); | |
| 168 | 2 | return result; | |
| 169 | } | ||
| 170 | |||
| 171 | ✗ | void OtherEquipmentDefinition_Impl::resetFractionRadiant() { | |
| 172 | ✗ | bool result = setString(OS_OtherEquipment_DefinitionFields::FractionRadiant, ""); | |
| 173 | ✗ | OS_ASSERT(result); | |
| 174 | ✗ | } | |
| 175 | |||
| 176 | 2 | bool OtherEquipmentDefinition_Impl::setFractionLost(double fractionLost) { | |
| 177 | |||
| 178 | 2 | double fractionLatentAndRadiant = fractionLatent() + fractionRadiant(); | |
| 179 |
2/2✓ Branch 0 taken 1 time.
✓ Branch 1 taken 1 time.
|
2 | if ((fractionLost + fractionLatentAndRadiant) > 1.0) { |
| 180 |
9/9✓ 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.
|
1 | LOG(Error, "Latent Fraction and Radiant Fraction sum to " << fractionLatentAndRadiant << " and you supplied a Lost Fraction of " |
| 181 | << fractionLost << " which would result in a sum greater than 1.0"); | ||
| 182 | 1 | return false; | |
| 183 | } | ||
| 184 | 1 | bool result = setDouble(OS_OtherEquipment_DefinitionFields::FractionLost, fractionLost); | |
| 185 | 1 | return result; | |
| 186 | } | ||
| 187 | |||
| 188 | ✗ | void OtherEquipmentDefinition_Impl::resetFractionLost() { | |
| 189 | ✗ | bool result = setString(OS_OtherEquipment_DefinitionFields::FractionLost, ""); | |
| 190 | ✗ | OS_ASSERT(result); | |
| 191 | ✗ | } | |
| 192 | |||
| 193 | ✗ | double OtherEquipmentDefinition_Impl::getDesignLevel(double floorArea, double numPeople) const { | |
| 194 | ✗ | std::string method = designLevelCalculationMethod(); | |
| 195 | |||
| 196 | ✗ | if (openstudio::istringEqual("EquipmentLevel", method)) { | |
| 197 | ✗ | return designLevel().get(); | |
| 198 | ✗ | } else if (openstudio::istringEqual("Watts/Area", method)) { | |
| 199 | ✗ | return wattsperSpaceFloorArea().get() * floorArea; | |
| 200 | ✗ | } else if (openstudio::istringEqual("Watts/Person", method)) { | |
| 201 | ✗ | return wattsperPerson().get() * numPeople; | |
| 202 | } | ||
| 203 | |||
| 204 | ✗ | OS_ASSERT(false); | |
| 205 | ✗ | return 0.0; | |
| 206 | ✗ | } | |
| 207 | |||
| 208 | ✗ | double OtherEquipmentDefinition_Impl::getPowerPerFloorArea(double floorArea, double numPeople) const { | |
| 209 | ✗ | std::string method = designLevelCalculationMethod(); | |
| 210 | |||
| 211 | ✗ | if (openstudio::istringEqual("EquipmentLevel", method)) { | |
| 212 | ✗ | if (equal(floorArea, 0.0)) { | |
| 213 | ✗ | LOG_AND_THROW("Calculation would require division by zero."); | |
| 214 | } | ||
| 215 | ✗ | return designLevel().get() / floorArea; | |
| 216 | ✗ | } else if (openstudio::istringEqual("Watts/Area", method)) { | |
| 217 | ✗ | return wattsperSpaceFloorArea().get(); | |
| 218 | ✗ | } else if (openstudio::istringEqual("Watts/Person", method)) { | |
| 219 | ✗ | if (equal(floorArea, 0.0)) { | |
| 220 | ✗ | LOG_AND_THROW("Calculation would require division by zero."); | |
| 221 | } | ||
| 222 | ✗ | return wattsperPerson().get() * numPeople / floorArea; | |
| 223 | } | ||
| 224 | |||
| 225 | ✗ | OS_ASSERT(false); | |
| 226 | ✗ | return 0.0; | |
| 227 | ✗ | } | |
| 228 | |||
| 229 | ✗ | double OtherEquipmentDefinition_Impl::getPowerPerPerson(double floorArea, double numPeople) const { | |
| 230 | ✗ | std::string method = designLevelCalculationMethod(); | |
| 231 | |||
| 232 | ✗ | if (openstudio::istringEqual("EquipmentLevel", method)) { | |
| 233 | ✗ | if (equal(numPeople, 0.0)) { | |
| 234 | ✗ | LOG_AND_THROW("Calculation would require division by zero."); | |
| 235 | } | ||
| 236 | ✗ | return designLevel().get() / numPeople; | |
| 237 | ✗ | } else if (openstudio::istringEqual("Watts/Area", method)) { | |
| 238 | ✗ | if (equal(numPeople, 0.0)) { | |
| 239 | ✗ | LOG_AND_THROW("Calculation would require division by zero."); | |
| 240 | } | ||
| 241 | ✗ | return wattsperSpaceFloorArea().get() * floorArea / numPeople; | |
| 242 | ✗ | } else if (openstudio::istringEqual("Watts/Person", method)) { | |
| 243 | ✗ | return wattsperPerson().get(); | |
| 244 | } | ||
| 245 | |||
| 246 | ✗ | OS_ASSERT(false); | |
| 247 | ✗ | return 0.0; | |
| 248 | ✗ | } | |
| 249 | |||
| 250 | ✗ | bool OtherEquipmentDefinition_Impl::setDesignLevelCalculationMethod(const std::string& method, double floorArea, double numPeople) { | |
| 251 | ✗ | if (openstudio::istringEqual("equipmentlevel", method)) { | |
| 252 | ✗ | setDesignLevel(getDesignLevel(floorArea, numPeople)); | |
| 253 | ✗ | return true; | |
| 254 | ✗ | } else if (openstudio::istringEqual("watts/area", method)) { | |
| 255 | ✗ | return setWattsperSpaceFloorArea(getPowerPerFloorArea(floorArea, numPeople)); | |
| 256 | ✗ | } else if (openstudio::istringEqual("watts/person", method)) { | |
| 257 | ✗ | return setWattsperPerson(getPowerPerPerson(floorArea, numPeople)); | |
| 258 | } | ||
| 259 | |||
| 260 | ✗ | return false; | |
| 261 | } | ||
| 262 | |||
| 263 | ✗ | std::vector<EMSActuatorNames> OtherEquipmentDefinition_Impl::emsActuatorNames() const { | |
| 264 | ✗ | std::vector<EMSActuatorNames> actuators{{"OtherEquipment", "Power Level"}}; | |
| 265 | ✗ | return actuators; | |
| 266 | ✗ | } | |
| 267 | |||
| 268 | ✗ | std::vector<std::string> OtherEquipmentDefinition_Impl::emsInternalVariableNames() const { | |
| 269 | ✗ | std::vector<std::string> types{"Other Equipment Design Level"}; | |
| 270 | ✗ | return types; | |
| 271 | ✗ | } | |
| 272 | |||
| 273 | } // namespace detail | ||
| 274 | |||
| 275 | 9 | OtherEquipmentDefinition::OtherEquipmentDefinition(const Model& model) : SpaceLoadDefinition(OtherEquipmentDefinition::iddObjectType(), model) { | |
| 276 |
1/3✗ Branch 2 not taken.
✓ Branch 3 taken 9 times.
✗ Branch 5 not taken.
|
9 | OS_ASSERT(getImpl<detail::OtherEquipmentDefinition_Impl>()); |
| 277 |
1/1✓ Branch 1 taken 9 times.
|
9 | setDesignLevel(0.0); |
| 278 | 9 | } | |
| 279 | |||
| 280 | 7750 | IddObjectType OtherEquipmentDefinition::iddObjectType() { | |
| 281 |
1/1✓ Branch 1 taken 7750 times.
|
7750 | IddObjectType result(IddObjectType::OS_OtherEquipment_Definition); |
| 282 | 7750 | return result; | |
| 283 | } | ||
| 284 | |||
| 285 | ✗ | std::vector<std::string> OtherEquipmentDefinition::validDesignLevelCalculationMethodValues() { | |
| 286 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_OtherEquipment_DefinitionFields::DesignLevelCalculationMethod); | |
| 287 | } | ||
| 288 | |||
| 289 | 7 | std::string OtherEquipmentDefinition::designLevelCalculationMethod() const { | |
| 290 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::OtherEquipmentDefinition_Impl>()->designLevelCalculationMethod(); |
| 291 | } | ||
| 292 | |||
| 293 | 9 | boost::optional<double> OtherEquipmentDefinition::designLevel() const { | |
| 294 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::OtherEquipmentDefinition_Impl>()->designLevel(); |
| 295 | } | ||
| 296 | |||
| 297 | 8 | boost::optional<double> OtherEquipmentDefinition::wattsperSpaceFloorArea() const { | |
| 298 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::OtherEquipmentDefinition_Impl>()->wattsperSpaceFloorArea(); |
| 299 | } | ||
| 300 | |||
| 301 | 8 | boost::optional<double> OtherEquipmentDefinition::wattsperPerson() const { | |
| 302 |
1/1✓ Branch 3 taken 8 times.
|
8 | return getImpl<detail::OtherEquipmentDefinition_Impl>()->wattsperPerson(); |
| 303 | } | ||
| 304 | |||
| 305 | 1 | double OtherEquipmentDefinition::fractionLatent() const { | |
| 306 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::OtherEquipmentDefinition_Impl>()->fractionLatent(); |
| 307 | } | ||
| 308 | |||
| 309 | 3 | bool OtherEquipmentDefinition::isFractionLatentDefaulted() const { | |
| 310 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::OtherEquipmentDefinition_Impl>()->isFractionLatentDefaulted(); |
| 311 | } | ||
| 312 | |||
| 313 | 1 | double OtherEquipmentDefinition::fractionRadiant() const { | |
| 314 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::OtherEquipmentDefinition_Impl>()->fractionRadiant(); |
| 315 | } | ||
| 316 | |||
| 317 | 3 | bool OtherEquipmentDefinition::isFractionRadiantDefaulted() const { | |
| 318 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::OtherEquipmentDefinition_Impl>()->isFractionRadiantDefaulted(); |
| 319 | } | ||
| 320 | |||
| 321 | 1 | double OtherEquipmentDefinition::fractionLost() const { | |
| 322 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::OtherEquipmentDefinition_Impl>()->fractionLost(); |
| 323 | } | ||
| 324 | |||
| 325 | 3 | bool OtherEquipmentDefinition::isFractionLostDefaulted() const { | |
| 326 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::OtherEquipmentDefinition_Impl>()->isFractionLostDefaulted(); |
| 327 | } | ||
| 328 | |||
| 329 | 13 | bool OtherEquipmentDefinition::setDesignLevel(double designLevel) { | |
| 330 |
2/2✓ Branch 3 taken 13 times.
✓ Branch 6 taken 13 times.
|
13 | return getImpl<detail::OtherEquipmentDefinition_Impl>()->setDesignLevel(designLevel); |
| 331 | } | ||
| 332 | |||
| 333 | 1 | bool OtherEquipmentDefinition::setWattsperSpaceFloorArea(double wattsperSpaceFloorArea) { | |
| 334 |
2/2✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
|
1 | return getImpl<detail::OtherEquipmentDefinition_Impl>()->setWattsperSpaceFloorArea(wattsperSpaceFloorArea); |
| 335 | } | ||
| 336 | |||
| 337 | 1 | bool OtherEquipmentDefinition::setWattsperPerson(double wattsperPerson) { | |
| 338 |
2/2✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
|
1 | return getImpl<detail::OtherEquipmentDefinition_Impl>()->setWattsperPerson(wattsperPerson); |
| 339 | } | ||
| 340 | |||
| 341 | 3 | bool OtherEquipmentDefinition::setFractionLatent(double fractionLatent) { | |
| 342 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::OtherEquipmentDefinition_Impl>()->setFractionLatent(fractionLatent); |
| 343 | } | ||
| 344 | |||
| 345 | ✗ | void OtherEquipmentDefinition::resetFractionLatent() { | |
| 346 | ✗ | getImpl<detail::OtherEquipmentDefinition_Impl>()->resetFractionLatent(); | |
| 347 | ✗ | } | |
| 348 | |||
| 349 | 3 | bool OtherEquipmentDefinition::setFractionRadiant(double fractionRadiant) { | |
| 350 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::OtherEquipmentDefinition_Impl>()->setFractionRadiant(fractionRadiant); |
| 351 | } | ||
| 352 | |||
| 353 | ✗ | void OtherEquipmentDefinition::resetFractionRadiant() { | |
| 354 | ✗ | getImpl<detail::OtherEquipmentDefinition_Impl>()->resetFractionRadiant(); | |
| 355 | ✗ | } | |
| 356 | |||
| 357 | 2 | bool OtherEquipmentDefinition::setFractionLost(double fractionLost) { | |
| 358 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::OtherEquipmentDefinition_Impl>()->setFractionLost(fractionLost); |
| 359 | } | ||
| 360 | |||
| 361 | ✗ | void OtherEquipmentDefinition::resetFractionLost() { | |
| 362 | ✗ | getImpl<detail::OtherEquipmentDefinition_Impl>()->resetFractionLost(); | |
| 363 | ✗ | } | |
| 364 | |||
| 365 | ✗ | double OtherEquipmentDefinition::getDesignLevel(double floorArea, double numPeople) const { | |
| 366 | ✗ | return getImpl<detail::OtherEquipmentDefinition_Impl>()->getDesignLevel(floorArea, numPeople); | |
| 367 | } | ||
| 368 | |||
| 369 | ✗ | double OtherEquipmentDefinition::getPowerPerFloorArea(double floorArea, double numPeople) const { | |
| 370 | ✗ | return getImpl<detail::OtherEquipmentDefinition_Impl>()->getPowerPerFloorArea(floorArea, numPeople); | |
| 371 | } | ||
| 372 | |||
| 373 | ✗ | double OtherEquipmentDefinition::getPowerPerPerson(double floorArea, double numPeople) const { | |
| 374 | ✗ | return getImpl<detail::OtherEquipmentDefinition_Impl>()->getPowerPerPerson(floorArea, numPeople); | |
| 375 | } | ||
| 376 | |||
| 377 | ✗ | bool OtherEquipmentDefinition::setDesignLevelCalculationMethod(const std::string& method, double floorArea, double numPeople) { | |
| 378 | ✗ | return getImpl<detail::OtherEquipmentDefinition_Impl>()->setDesignLevelCalculationMethod(method, floorArea, numPeople); | |
| 379 | } | ||
| 380 | |||
| 381 | /// @cond | ||
| 382 | 7 | OtherEquipmentDefinition::OtherEquipmentDefinition(std::shared_ptr<detail::OtherEquipmentDefinition_Impl> impl) | |
| 383 |
1/1✓ Branch 3 taken 7 times.
|
7 | : SpaceLoadDefinition(std::move(impl)) {} |
| 384 | /// @endcond | ||
| 385 | |||
| 386 | } // namespace model | ||
| 387 | } // namespace openstudio | ||
| 388 |