src/model/PerformancePrecisionTradeoffs.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 <vector> | ||
| 7 | #include <string> | ||
| 8 | #include "PerformancePrecisionTradeoffs.hpp" | ||
| 9 | #include "PerformancePrecisionTradeoffs_Impl.hpp" | ||
| 10 | |||
| 11 | #include "Model.hpp" | ||
| 12 | #include "Model_Impl.hpp" | ||
| 13 | |||
| 14 | #include <utilities/idd/IddFactory.hxx> | ||
| 15 | #include <utilities/idd/IddEnums.hxx> | ||
| 16 | #include <utilities/idd/OS_PerformancePrecisionTradeoffs_FieldEnums.hxx> | ||
| 17 | |||
| 18 | #include "../utilities/core/Assert.hpp" | ||
| 19 | |||
| 20 | namespace openstudio { | ||
| 21 | namespace model { | ||
| 22 | |||
| 23 | namespace detail { | ||
| 24 | |||
| 25 | 10 | PerformancePrecisionTradeoffs_Impl::PerformancePrecisionTradeoffs_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 26 | 10 | : ModelObject_Impl(idfObject, model, keepHandle) { | |
| 27 |
4/6✓ Branch 1 taken 10 times.
✓ Branch 4 taken 10 times.
✓ Branch 7 taken 10 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 10 times.
✗ Branch 13 not taken.
|
10 | OS_ASSERT(idfObject.iddObject().type() == PerformancePrecisionTradeoffs::iddObjectType()); |
| 28 | 10 | } | |
| 29 | |||
| 30 | ✗ | PerformancePrecisionTradeoffs_Impl::PerformancePrecisionTradeoffs_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, | |
| 31 | ✗ | bool keepHandle) | |
| 32 | ✗ | : ModelObject_Impl(other, model, keepHandle) { | |
| 33 | ✗ | OS_ASSERT(other.iddObject().type() == PerformancePrecisionTradeoffs::iddObjectType()); | |
| 34 | ✗ | } | |
| 35 | |||
| 36 | 5 | PerformancePrecisionTradeoffs_Impl::PerformancePrecisionTradeoffs_Impl(const PerformancePrecisionTradeoffs_Impl& other, Model_Impl* model, | |
| 37 | 5 | bool keepHandle) | |
| 38 | 5 | : ModelObject_Impl(other, model, keepHandle) {} | |
| 39 | |||
| 40 | ✗ | const std::vector<std::string>& PerformancePrecisionTradeoffs_Impl::outputVariableNames() const { | |
| 41 | ✗ | static const std::vector<std::string> result; | |
| 42 | ✗ | return result; | |
| 43 | } | ||
| 44 | |||
| 45 | ✗ | IddObjectType PerformancePrecisionTradeoffs_Impl::iddObjectType() const { | |
| 46 | ✗ | return PerformancePrecisionTradeoffs::iddObjectType(); | |
| 47 | } | ||
| 48 | |||
| 49 | 6 | bool PerformancePrecisionTradeoffs_Impl::useCoilDirectSolutions() const { | |
| 50 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<std::string> value = getString(OS_PerformancePrecisionTradeoffsFields::UseCoilDirectSolutions, true); |
| 51 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 52 |
3/3✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
|
12 | return openstudio::istringEqual(value.get(), "Yes"); |
| 53 | 6 | } | |
| 54 | |||
| 55 | 7 | bool PerformancePrecisionTradeoffs_Impl::isUseCoilDirectSolutionsDefaulted() const { | |
| 56 | 7 | return isEmpty(OS_PerformancePrecisionTradeoffsFields::UseCoilDirectSolutions); | |
| 57 | } | ||
| 58 | |||
| 59 | 4 | bool PerformancePrecisionTradeoffs_Impl::setUseCoilDirectSolutions(bool useCoilDirectSolutions) { | |
| 60 | 4 | bool result = false; | |
| 61 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | if (useCoilDirectSolutions) { |
| 62 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
12 | result = setString(OS_PerformancePrecisionTradeoffsFields::UseCoilDirectSolutions, "Yes"); |
| 63 | } else { | ||
| 64 | ✗ | result = setString(OS_PerformancePrecisionTradeoffsFields::UseCoilDirectSolutions, "No"); | |
| 65 | } | ||
| 66 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
|
4 | OS_ASSERT(result); |
| 67 | 4 | return result; | |
| 68 | } | ||
| 69 | |||
| 70 | 1 | void PerformancePrecisionTradeoffs_Impl::resetUseCoilDirectSolutions() { | |
| 71 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_PerformancePrecisionTradeoffsFields::UseCoilDirectSolutions, ""); |
| 72 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 73 | 1 | } | |
| 74 | |||
| 75 | 6 | std::string PerformancePrecisionTradeoffs_Impl::zoneRadiantExchangeAlgorithm() const { | |
| 76 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<std::string> value = getString(OS_PerformancePrecisionTradeoffsFields::ZoneRadiantExchangeAlgorithm, true); |
| 77 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 78 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
12 | return value.get(); |
| 79 | 6 | } | |
| 80 | |||
| 81 | 9 | bool PerformancePrecisionTradeoffs_Impl::isZoneRadiantExchangeAlgorithmDefaulted() const { | |
| 82 | 9 | return isEmpty(OS_PerformancePrecisionTradeoffsFields::ZoneRadiantExchangeAlgorithm); | |
| 83 | } | ||
| 84 | |||
| 85 | 5 | bool PerformancePrecisionTradeoffs_Impl::setZoneRadiantExchangeAlgorithm(const std::string& zoneRadiantExchangeAlgorithm) { | |
| 86 | 5 | bool result = setString(OS_PerformancePrecisionTradeoffsFields::ZoneRadiantExchangeAlgorithm, zoneRadiantExchangeAlgorithm); | |
| 87 | // OS_ASSERT(result); | ||
| 88 | 5 | return result; | |
| 89 | } | ||
| 90 | |||
| 91 | 1 | void PerformancePrecisionTradeoffs_Impl::resetZoneRadiantExchangeAlgorithm() { | |
| 92 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_PerformancePrecisionTradeoffsFields::ZoneRadiantExchangeAlgorithm, ""); |
| 93 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 94 | 1 | } | |
| 95 | |||
| 96 | 6 | std::string PerformancePrecisionTradeoffs_Impl::overrideMode() const { | |
| 97 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<std::string> value = getString(OS_PerformancePrecisionTradeoffsFields::OverrideMode, true); |
| 98 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 99 |
2/2✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
|
12 | return value.get(); |
| 100 | 6 | } | |
| 101 | |||
| 102 | 9 | bool PerformancePrecisionTradeoffs_Impl::isOverrideModeDefaulted() const { | |
| 103 | 9 | return isEmpty(OS_PerformancePrecisionTradeoffsFields::OverrideMode); | |
| 104 | } | ||
| 105 | |||
| 106 | 5 | bool PerformancePrecisionTradeoffs_Impl::setOverrideMode(const std::string& overrideMode) { | |
| 107 | 5 | bool result = setString(OS_PerformancePrecisionTradeoffsFields::OverrideMode, overrideMode); | |
| 108 | // OS_ASSERT(result); | ||
| 109 | 5 | return result; | |
| 110 | } | ||
| 111 | |||
| 112 | 1 | void PerformancePrecisionTradeoffs_Impl::resetOverrideMode() { | |
| 113 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_PerformancePrecisionTradeoffsFields::OverrideMode, ""); |
| 114 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 115 | 1 | } | |
| 116 | |||
| 117 | 6 | double PerformancePrecisionTradeoffs_Impl::maxZoneTempDiff() const { | |
| 118 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<double> value = getDouble(OS_PerformancePrecisionTradeoffsFields::MaxZoneTempDiff, true); |
| 119 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 120 |
1/1✓ Branch 1 taken 6 times.
|
12 | return value.get(); |
| 121 | } | ||
| 122 | |||
| 123 | 9 | bool PerformancePrecisionTradeoffs_Impl::isMaxZoneTempDiffDefaulted() const { | |
| 124 | 9 | return isEmpty(OS_PerformancePrecisionTradeoffsFields::MaxZoneTempDiff); | |
| 125 | } | ||
| 126 | |||
| 127 | 3 | bool PerformancePrecisionTradeoffs_Impl::setMaxZoneTempDiff(double maxZoneTempDiff) { | |
| 128 | 3 | bool result = setDouble(OS_PerformancePrecisionTradeoffsFields::MaxZoneTempDiff, maxZoneTempDiff); | |
| 129 | // OS_ASSERT(result); | ||
| 130 | 3 | return result; | |
| 131 | } | ||
| 132 | |||
| 133 | 1 | void PerformancePrecisionTradeoffs_Impl::resetMaxZoneTempDiff() { | |
| 134 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_PerformancePrecisionTradeoffsFields::MaxZoneTempDiff, ""); |
| 135 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 136 | 1 | } | |
| 137 | |||
| 138 | 6 | double PerformancePrecisionTradeoffs_Impl::maxAllowedDelTemp() const { | |
| 139 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<double> value = getDouble(OS_PerformancePrecisionTradeoffsFields::MaxAllowedDelTemp, true); |
| 140 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 141 |
1/1✓ Branch 1 taken 6 times.
|
12 | return value.get(); |
| 142 | } | ||
| 143 | |||
| 144 | 9 | bool PerformancePrecisionTradeoffs_Impl::isMaxAllowedDelTempDefaulted() const { | |
| 145 | 9 | return isEmpty(OS_PerformancePrecisionTradeoffsFields::MaxAllowedDelTemp); | |
| 146 | } | ||
| 147 | |||
| 148 | 3 | bool PerformancePrecisionTradeoffs_Impl::setMaxAllowedDelTemp(double maxAllowedDelTemp) { | |
| 149 | 3 | bool result = setDouble(OS_PerformancePrecisionTradeoffsFields::MaxAllowedDelTemp, maxAllowedDelTemp); | |
| 150 | // OS_ASSERT(result); | ||
| 151 | 3 | return result; | |
| 152 | } | ||
| 153 | |||
| 154 | 1 | void PerformancePrecisionTradeoffs_Impl::resetMaxAllowedDelTemp() { | |
| 155 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_PerformancePrecisionTradeoffsFields::MaxAllowedDelTemp, ""); |
| 156 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 157 | 1 | } | |
| 158 | |||
| 159 | 6 | bool PerformancePrecisionTradeoffs_Impl::useRepresentativeSurfacesforCalculations() const { | |
| 160 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<std::string> value = getString(OS_PerformancePrecisionTradeoffsFields::UseRepresentativeSurfacesforCalculations, true); |
| 161 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 162 |
3/3✓ Branch 1 taken 6 times.
✓ Branch 4 taken 6 times.
✓ Branch 7 taken 6 times.
|
12 | return openstudio::istringEqual(value.get(), "Yes"); |
| 163 | 6 | } | |
| 164 | |||
| 165 | 7 | bool PerformancePrecisionTradeoffs_Impl::isUseRepresentativeSurfacesforCalculationsDefaulted() const { | |
| 166 | 7 | return isEmpty(OS_PerformancePrecisionTradeoffsFields::UseRepresentativeSurfacesforCalculations); | |
| 167 | } | ||
| 168 | |||
| 169 | 4 | bool PerformancePrecisionTradeoffs_Impl::setUseRepresentativeSurfacesforCalculations(bool useRepresentativeSurfacesforCalculations) { | |
| 170 | 4 | bool result = false; | |
| 171 |
1/2✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
|
4 | if (useRepresentativeSurfacesforCalculations) { |
| 172 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
12 | result = setString(OS_PerformancePrecisionTradeoffsFields::UseRepresentativeSurfacesforCalculations, "Yes"); |
| 173 | } else { | ||
| 174 | ✗ | result = setString(OS_PerformancePrecisionTradeoffsFields::UseRepresentativeSurfacesforCalculations, "No"); | |
| 175 | } | ||
| 176 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
|
4 | OS_ASSERT(result); |
| 177 | 4 | return result; | |
| 178 | } | ||
| 179 | |||
| 180 | 1 | void PerformancePrecisionTradeoffs_Impl::resetUseRepresentativeSurfacesforCalculations() { | |
| 181 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_PerformancePrecisionTradeoffsFields::UseRepresentativeSurfacesforCalculations, ""); |
| 182 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 183 | 1 | } | |
| 184 | |||
| 185 | } // namespace detail | ||
| 186 | |||
| 187 | 7766 | IddObjectType PerformancePrecisionTradeoffs::iddObjectType() { | |
| 188 |
1/1✓ Branch 1 taken 7766 times.
|
7766 | return {IddObjectType::OS_PerformancePrecisionTradeoffs}; |
| 189 | } | ||
| 190 | |||
| 191 | // Use Coil Direct Solutions | ||
| 192 | 6 | bool PerformancePrecisionTradeoffs::useCoilDirectSolutions() const { | |
| 193 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::PerformancePrecisionTradeoffs_Impl>()->useCoilDirectSolutions(); |
| 194 | } | ||
| 195 | |||
| 196 | 7 | bool PerformancePrecisionTradeoffs::isUseCoilDirectSolutionsDefaulted() const { | |
| 197 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::PerformancePrecisionTradeoffs_Impl>()->isUseCoilDirectSolutionsDefaulted(); |
| 198 | } | ||
| 199 | |||
| 200 | 4 | bool PerformancePrecisionTradeoffs::setUseCoilDirectSolutions(bool useCoilDirectSolutions) { | |
| 201 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::PerformancePrecisionTradeoffs_Impl>()->setUseCoilDirectSolutions(useCoilDirectSolutions); |
| 202 | } | ||
| 203 | |||
| 204 | 1 | void PerformancePrecisionTradeoffs::resetUseCoilDirectSolutions() { | |
| 205 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::PerformancePrecisionTradeoffs_Impl>()->resetUseCoilDirectSolutions(); |
| 206 | 1 | } | |
| 207 | |||
| 208 | // Zone Radiant Exchange Algorithm | ||
| 209 | 6 | std::string PerformancePrecisionTradeoffs::zoneRadiantExchangeAlgorithm() const { | |
| 210 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::PerformancePrecisionTradeoffs_Impl>()->zoneRadiantExchangeAlgorithm(); |
| 211 | } | ||
| 212 | |||
| 213 | 9 | bool PerformancePrecisionTradeoffs::isZoneRadiantExchangeAlgorithmDefaulted() const { | |
| 214 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::PerformancePrecisionTradeoffs_Impl>()->isZoneRadiantExchangeAlgorithmDefaulted(); |
| 215 | } | ||
| 216 | |||
| 217 | 5 | bool PerformancePrecisionTradeoffs::setZoneRadiantExchangeAlgorithm(const std::string& zoneRadiantExchangeAlgorithm) { | |
| 218 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::PerformancePrecisionTradeoffs_Impl>()->setZoneRadiantExchangeAlgorithm(zoneRadiantExchangeAlgorithm); |
| 219 | } | ||
| 220 | |||
| 221 | 1 | void PerformancePrecisionTradeoffs::resetZoneRadiantExchangeAlgorithm() { | |
| 222 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::PerformancePrecisionTradeoffs_Impl>()->resetZoneRadiantExchangeAlgorithm(); |
| 223 | 1 | } | |
| 224 | |||
| 225 | // Override Mode | ||
| 226 | 6 | std::string PerformancePrecisionTradeoffs::overrideMode() const { | |
| 227 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::PerformancePrecisionTradeoffs_Impl>()->overrideMode(); |
| 228 | } | ||
| 229 | |||
| 230 | 9 | bool PerformancePrecisionTradeoffs::isOverrideModeDefaulted() const { | |
| 231 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::PerformancePrecisionTradeoffs_Impl>()->isOverrideModeDefaulted(); |
| 232 | } | ||
| 233 | |||
| 234 | 5 | bool PerformancePrecisionTradeoffs::setOverrideMode(const std::string& overrideMode) { | |
| 235 |
1/1✓ Branch 3 taken 5 times.
|
5 | return getImpl<detail::PerformancePrecisionTradeoffs_Impl>()->setOverrideMode(overrideMode); |
| 236 | } | ||
| 237 | |||
| 238 | 1 | void PerformancePrecisionTradeoffs::resetOverrideMode() { | |
| 239 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::PerformancePrecisionTradeoffs_Impl>()->resetOverrideMode(); |
| 240 | 1 | } | |
| 241 | |||
| 242 | // MaxZoneTempDiff | ||
| 243 | 6 | double PerformancePrecisionTradeoffs::maxZoneTempDiff() const { | |
| 244 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::PerformancePrecisionTradeoffs_Impl>()->maxZoneTempDiff(); |
| 245 | } | ||
| 246 | |||
| 247 | 9 | bool PerformancePrecisionTradeoffs::isMaxZoneTempDiffDefaulted() const { | |
| 248 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::PerformancePrecisionTradeoffs_Impl>()->isMaxZoneTempDiffDefaulted(); |
| 249 | } | ||
| 250 | |||
| 251 | 3 | bool PerformancePrecisionTradeoffs::setMaxZoneTempDiff(double maxZoneTempDiff) { | |
| 252 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::PerformancePrecisionTradeoffs_Impl>()->setMaxZoneTempDiff(maxZoneTempDiff); |
| 253 | } | ||
| 254 | |||
| 255 | 1 | void PerformancePrecisionTradeoffs::resetMaxZoneTempDiff() { | |
| 256 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::PerformancePrecisionTradeoffs_Impl>()->resetMaxZoneTempDiff(); |
| 257 | 1 | } | |
| 258 | |||
| 259 | // MaxAllowedDelTemp | ||
| 260 | 6 | double PerformancePrecisionTradeoffs::maxAllowedDelTemp() const { | |
| 261 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::PerformancePrecisionTradeoffs_Impl>()->maxAllowedDelTemp(); |
| 262 | } | ||
| 263 | |||
| 264 | 9 | bool PerformancePrecisionTradeoffs::isMaxAllowedDelTempDefaulted() const { | |
| 265 |
1/1✓ Branch 3 taken 9 times.
|
9 | return getImpl<detail::PerformancePrecisionTradeoffs_Impl>()->isMaxAllowedDelTempDefaulted(); |
| 266 | } | ||
| 267 | |||
| 268 | 3 | bool PerformancePrecisionTradeoffs::setMaxAllowedDelTemp(double maxAllowedDelTemp) { | |
| 269 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::PerformancePrecisionTradeoffs_Impl>()->setMaxAllowedDelTemp(maxAllowedDelTemp); |
| 270 | } | ||
| 271 | |||
| 272 | 1 | void PerformancePrecisionTradeoffs::resetMaxAllowedDelTemp() { | |
| 273 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::PerformancePrecisionTradeoffs_Impl>()->resetMaxAllowedDelTemp(); |
| 274 | 1 | } | |
| 275 | |||
| 276 | // Use Representative Surfaces for Calculations | ||
| 277 | 6 | bool PerformancePrecisionTradeoffs::useRepresentativeSurfacesforCalculations() const { | |
| 278 |
1/1✓ Branch 3 taken 6 times.
|
6 | return getImpl<detail::PerformancePrecisionTradeoffs_Impl>()->useRepresentativeSurfacesforCalculations(); |
| 279 | } | ||
| 280 | |||
| 281 | 7 | bool PerformancePrecisionTradeoffs::isUseRepresentativeSurfacesforCalculationsDefaulted() const { | |
| 282 |
1/1✓ Branch 3 taken 7 times.
|
7 | return getImpl<detail::PerformancePrecisionTradeoffs_Impl>()->isUseRepresentativeSurfacesforCalculationsDefaulted(); |
| 283 | } | ||
| 284 | |||
| 285 | 4 | bool PerformancePrecisionTradeoffs::setUseRepresentativeSurfacesforCalculations(bool useRepresentativeSurfacesforCalculations) { | |
| 286 |
1/1✓ Branch 3 taken 4 times.
|
8 | return getImpl<detail::PerformancePrecisionTradeoffs_Impl>()->setUseRepresentativeSurfacesforCalculations( |
| 287 | 8 | useRepresentativeSurfacesforCalculations); | |
| 288 | } | ||
| 289 | |||
| 290 | 1 | void PerformancePrecisionTradeoffs::resetUseRepresentativeSurfacesforCalculations() { | |
| 291 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::PerformancePrecisionTradeoffs_Impl>()->resetUseRepresentativeSurfacesforCalculations(); |
| 292 | 1 | } | |
| 293 | |||
| 294 | /// @cond | ||
| 295 | 10 | PerformancePrecisionTradeoffs::PerformancePrecisionTradeoffs(std::shared_ptr<detail::PerformancePrecisionTradeoffs_Impl> impl) | |
| 296 |
1/1✓ Branch 3 taken 10 times.
|
10 | : ModelObject(std::move(impl)) {} |
| 297 | |||
| 298 | 10 | PerformancePrecisionTradeoffs::PerformancePrecisionTradeoffs(Model& model) : ModelObject(PerformancePrecisionTradeoffs::iddObjectType(), model) {} | |
| 299 | |||
| 300 | /// @endcond | ||
| 301 | |||
| 302 | ✗ | std::vector<std::string> PerformancePrecisionTradeoffs::zoneRadiantExchangeAlgorithmValues() { | |
| 303 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), | |
| 304 | ✗ | OS_PerformancePrecisionTradeoffsFields::ZoneRadiantExchangeAlgorithm); | |
| 305 | } | ||
| 306 | |||
| 307 | ✗ | std::vector<std::string> PerformancePrecisionTradeoffs::validZoneRadiantExchangeAlgorithmValues() { | |
| 308 | ✗ | return PerformancePrecisionTradeoffs::zoneRadiantExchangeAlgorithmValues(); | |
| 309 | } | ||
| 310 | |||
| 311 | ✗ | std::vector<std::string> PerformancePrecisionTradeoffs::overrideModeValues() { | |
| 312 | ✗ | return getIddKeyNames(IddFactory::instance().getObject(iddObjectType()).get(), OS_PerformancePrecisionTradeoffsFields::OverrideMode); | |
| 313 | } | ||
| 314 | |||
| 315 | ✗ | std::vector<std::string> PerformancePrecisionTradeoffs::validOverrideModeValues() { | |
| 316 | ✗ | return PerformancePrecisionTradeoffs::overrideModeValues(); | |
| 317 | } | ||
| 318 | |||
| 319 | } // namespace model | ||
| 320 | } // namespace openstudio | ||
| 321 |