src/model/SiteGroundTemperatureFCfactorMethod.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 "SiteGroundTemperatureFCfactorMethod.hpp" | ||
| 9 | #include "SiteGroundTemperatureFCfactorMethod_Impl.hpp" | ||
| 10 | |||
| 11 | #include "Model.hpp" | ||
| 12 | #include "Model_Impl.hpp" | ||
| 13 | #include "Site.hpp" | ||
| 14 | #include "Site_Impl.hpp" | ||
| 15 | |||
| 16 | #include <utilities/idd/OS_Site_GroundTemperature_FCfactorMethod_FieldEnums.hxx> | ||
| 17 | #include <utilities/idd/IddEnums.hxx> | ||
| 18 | #include "../utilities/core/Assert.hpp" | ||
| 19 | #include "../utilities/time/Date.hpp" | ||
| 20 | |||
| 21 | namespace openstudio { | ||
| 22 | namespace model { | ||
| 23 | |||
| 24 | namespace detail { | ||
| 25 | |||
| 26 | 7 | SiteGroundTemperatureFCfactorMethod_Impl::SiteGroundTemperatureFCfactorMethod_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 27 | 7 | : ModelObject_Impl(idfObject, model, keepHandle) { | |
| 28 |
4/6✓ Branch 1 taken 7 times.
✓ Branch 4 taken 7 times.
✓ Branch 7 taken 7 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 7 times.
✗ Branch 13 not taken.
|
7 | OS_ASSERT(idfObject.iddObject().type() == SiteGroundTemperatureFCfactorMethod::iddObjectType()); |
| 29 | 7 | } | |
| 30 | |||
| 31 | ✗ | SiteGroundTemperatureFCfactorMethod_Impl::SiteGroundTemperatureFCfactorMethod_Impl(const openstudio::detail::WorkspaceObject_Impl& other, | |
| 32 | ✗ | Model_Impl* model, bool keepHandle) | |
| 33 | ✗ | : ModelObject_Impl(other, model, keepHandle) { | |
| 34 | ✗ | OS_ASSERT(other.iddObject().type() == SiteGroundTemperatureFCfactorMethod::iddObjectType()); | |
| 35 | ✗ | } | |
| 36 | |||
| 37 | 6 | SiteGroundTemperatureFCfactorMethod_Impl::SiteGroundTemperatureFCfactorMethod_Impl(const SiteGroundTemperatureFCfactorMethod_Impl& other, | |
| 38 | 6 | Model_Impl* model, bool keepHandle) | |
| 39 | 6 | : ModelObject_Impl(other, model, keepHandle) {} | |
| 40 | |||
| 41 | 3 | boost::optional<ParentObject> SiteGroundTemperatureFCfactorMethod_Impl::parent() const { | |
| 42 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
3 | boost::optional<Site> result = this->model().getOptionalUniqueModelObject<Site>(); |
| 43 |
1/1✓ Branch 1 taken 3 times.
|
6 | return boost::optional<ParentObject>(result); |
| 44 | 3 | } | |
| 45 | |||
| 46 | ✗ | const std::vector<std::string>& SiteGroundTemperatureFCfactorMethod_Impl::outputVariableNames() const { | |
| 47 | ✗ | static const std::vector<std::string> result; | |
| 48 | ✗ | return result; | |
| 49 | } | ||
| 50 | |||
| 51 | ✗ | IddObjectType SiteGroundTemperatureFCfactorMethod_Impl::iddObjectType() const { | |
| 52 | ✗ | return SiteGroundTemperatureFCfactorMethod::iddObjectType(); | |
| 53 | } | ||
| 54 | |||
| 55 | 9 | double SiteGroundTemperatureFCfactorMethod_Impl::januaryGroundTemperature() const { | |
| 56 |
1/1✓ Branch 1 taken 9 times.
|
9 | boost::optional<double> value = getDouble(OS_Site_GroundTemperature_FCfactorMethodFields::JanuaryGroundTemperature, true); |
| 57 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 9 times.
✗ Branch 4 not taken.
|
9 | OS_ASSERT(value); |
| 58 |
1/1✓ Branch 1 taken 9 times.
|
18 | return value.get(); |
| 59 | } | ||
| 60 | |||
| 61 | 9 | bool SiteGroundTemperatureFCfactorMethod_Impl::isJanuaryGroundTemperatureDefaulted() const { | |
| 62 | 9 | return isEmpty(OS_Site_GroundTemperature_FCfactorMethodFields::JanuaryGroundTemperature); | |
| 63 | } | ||
| 64 | |||
| 65 | 6 | double SiteGroundTemperatureFCfactorMethod_Impl::februaryGroundTemperature() const { | |
| 66 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<double> value = getDouble(OS_Site_GroundTemperature_FCfactorMethodFields::FebruaryGroundTemperature, 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 | 8 | bool SiteGroundTemperatureFCfactorMethod_Impl::isFebruaryGroundTemperatureDefaulted() const { | |
| 72 | 8 | return isEmpty(OS_Site_GroundTemperature_FCfactorMethodFields::FebruaryGroundTemperature); | |
| 73 | } | ||
| 74 | |||
| 75 | 6 | double SiteGroundTemperatureFCfactorMethod_Impl::marchGroundTemperature() const { | |
| 76 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<double> value = getDouble(OS_Site_GroundTemperature_FCfactorMethodFields::MarchGroundTemperature, 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 | 6 | bool SiteGroundTemperatureFCfactorMethod_Impl::isMarchGroundTemperatureDefaulted() const { | |
| 82 | 6 | return isEmpty(OS_Site_GroundTemperature_FCfactorMethodFields::MarchGroundTemperature); | |
| 83 | } | ||
| 84 | |||
| 85 | 6 | double SiteGroundTemperatureFCfactorMethod_Impl::aprilGroundTemperature() const { | |
| 86 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<double> value = getDouble(OS_Site_GroundTemperature_FCfactorMethodFields::AprilGroundTemperature, true); |
| 87 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 88 |
1/1✓ Branch 1 taken 6 times.
|
12 | return value.get(); |
| 89 | } | ||
| 90 | |||
| 91 | 6 | bool SiteGroundTemperatureFCfactorMethod_Impl::isAprilGroundTemperatureDefaulted() const { | |
| 92 | 6 | return isEmpty(OS_Site_GroundTemperature_FCfactorMethodFields::AprilGroundTemperature); | |
| 93 | } | ||
| 94 | |||
| 95 | 6 | double SiteGroundTemperatureFCfactorMethod_Impl::mayGroundTemperature() const { | |
| 96 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<double> value = getDouble(OS_Site_GroundTemperature_FCfactorMethodFields::MayGroundTemperature, true); |
| 97 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 98 |
1/1✓ Branch 1 taken 6 times.
|
12 | return value.get(); |
| 99 | } | ||
| 100 | |||
| 101 | 6 | bool SiteGroundTemperatureFCfactorMethod_Impl::isMayGroundTemperatureDefaulted() const { | |
| 102 | 6 | return isEmpty(OS_Site_GroundTemperature_FCfactorMethodFields::MayGroundTemperature); | |
| 103 | } | ||
| 104 | |||
| 105 | 6 | double SiteGroundTemperatureFCfactorMethod_Impl::juneGroundTemperature() const { | |
| 106 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<double> value = getDouble(OS_Site_GroundTemperature_FCfactorMethodFields::JuneGroundTemperature, true); |
| 107 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 108 |
1/1✓ Branch 1 taken 6 times.
|
12 | return value.get(); |
| 109 | } | ||
| 110 | |||
| 111 | 6 | bool SiteGroundTemperatureFCfactorMethod_Impl::isJuneGroundTemperatureDefaulted() const { | |
| 112 | 6 | return isEmpty(OS_Site_GroundTemperature_FCfactorMethodFields::JuneGroundTemperature); | |
| 113 | } | ||
| 114 | |||
| 115 | 6 | double SiteGroundTemperatureFCfactorMethod_Impl::julyGroundTemperature() const { | |
| 116 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<double> value = getDouble(OS_Site_GroundTemperature_FCfactorMethodFields::JulyGroundTemperature, true); |
| 117 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 118 |
1/1✓ Branch 1 taken 6 times.
|
12 | return value.get(); |
| 119 | } | ||
| 120 | |||
| 121 | 6 | bool SiteGroundTemperatureFCfactorMethod_Impl::isJulyGroundTemperatureDefaulted() const { | |
| 122 | 6 | return isEmpty(OS_Site_GroundTemperature_FCfactorMethodFields::JulyGroundTemperature); | |
| 123 | } | ||
| 124 | |||
| 125 | 6 | double SiteGroundTemperatureFCfactorMethod_Impl::augustGroundTemperature() const { | |
| 126 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<double> value = getDouble(OS_Site_GroundTemperature_FCfactorMethodFields::AugustGroundTemperature, true); |
| 127 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 128 |
1/1✓ Branch 1 taken 6 times.
|
12 | return value.get(); |
| 129 | } | ||
| 130 | |||
| 131 | 6 | bool SiteGroundTemperatureFCfactorMethod_Impl::isAugustGroundTemperatureDefaulted() const { | |
| 132 | 6 | return isEmpty(OS_Site_GroundTemperature_FCfactorMethodFields::AugustGroundTemperature); | |
| 133 | } | ||
| 134 | |||
| 135 | 6 | double SiteGroundTemperatureFCfactorMethod_Impl::septemberGroundTemperature() const { | |
| 136 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<double> value = getDouble(OS_Site_GroundTemperature_FCfactorMethodFields::SeptemberGroundTemperature, true); |
| 137 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 138 |
1/1✓ Branch 1 taken 6 times.
|
12 | return value.get(); |
| 139 | } | ||
| 140 | |||
| 141 | 6 | bool SiteGroundTemperatureFCfactorMethod_Impl::isSeptemberGroundTemperatureDefaulted() const { | |
| 142 | 6 | return isEmpty(OS_Site_GroundTemperature_FCfactorMethodFields::SeptemberGroundTemperature); | |
| 143 | } | ||
| 144 | |||
| 145 | 6 | double SiteGroundTemperatureFCfactorMethod_Impl::octoberGroundTemperature() const { | |
| 146 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<double> value = getDouble(OS_Site_GroundTemperature_FCfactorMethodFields::OctoberGroundTemperature, true); |
| 147 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 148 |
1/1✓ Branch 1 taken 6 times.
|
12 | return value.get(); |
| 149 | } | ||
| 150 | |||
| 151 | 6 | bool SiteGroundTemperatureFCfactorMethod_Impl::isOctoberGroundTemperatureDefaulted() const { | |
| 152 | 6 | return isEmpty(OS_Site_GroundTemperature_FCfactorMethodFields::OctoberGroundTemperature); | |
| 153 | } | ||
| 154 | |||
| 155 | 6 | double SiteGroundTemperatureFCfactorMethod_Impl::novemberGroundTemperature() const { | |
| 156 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<double> value = getDouble(OS_Site_GroundTemperature_FCfactorMethodFields::NovemberGroundTemperature, true); |
| 157 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 158 |
1/1✓ Branch 1 taken 6 times.
|
12 | return value.get(); |
| 159 | } | ||
| 160 | |||
| 161 | 6 | bool SiteGroundTemperatureFCfactorMethod_Impl::isNovemberGroundTemperatureDefaulted() const { | |
| 162 | 6 | return isEmpty(OS_Site_GroundTemperature_FCfactorMethodFields::NovemberGroundTemperature); | |
| 163 | } | ||
| 164 | |||
| 165 | 6 | double SiteGroundTemperatureFCfactorMethod_Impl::decemberGroundTemperature() const { | |
| 166 |
1/1✓ Branch 1 taken 6 times.
|
6 | boost::optional<double> value = getDouble(OS_Site_GroundTemperature_FCfactorMethodFields::DecemberGroundTemperature, true); |
| 167 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 6 times.
✗ Branch 4 not taken.
|
6 | OS_ASSERT(value); |
| 168 |
1/1✓ Branch 1 taken 6 times.
|
12 | return value.get(); |
| 169 | } | ||
| 170 | |||
| 171 | 6 | bool SiteGroundTemperatureFCfactorMethod_Impl::isDecemberGroundTemperatureDefaulted() const { | |
| 172 | 6 | return isEmpty(OS_Site_GroundTemperature_FCfactorMethodFields::DecemberGroundTemperature); | |
| 173 | } | ||
| 174 | |||
| 175 | 50 | double SiteGroundTemperatureFCfactorMethod_Impl::getTemperatureByMonth(int month) const { | |
| 176 | double retval; | ||
| 177 |
13/13✓ Branch 0 taken 5 times.
✓ Branch 1 taken 4 times.
✓ Branch 2 taken 4 times.
✓ Branch 3 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 5 taken 4 times.
✓ Branch 6 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 8 taken 4 times.
✓ Branch 9 taken 4 times.
✓ Branch 10 taken 4 times.
✓ Branch 11 taken 4 times.
✓ Branch 12 taken 1 time.
|
50 | switch (month) { |
| 178 | 5 | case 1: | |
| 179 | 5 | retval = januaryGroundTemperature(); | |
| 180 | 5 | break; | |
| 181 | 4 | case 2: | |
| 182 | 4 | retval = februaryGroundTemperature(); | |
| 183 | 4 | break; | |
| 184 | 4 | case 3: | |
| 185 | 4 | retval = marchGroundTemperature(); | |
| 186 | 4 | break; | |
| 187 | 4 | case 4: | |
| 188 | 4 | retval = aprilGroundTemperature(); | |
| 189 | 4 | break; | |
| 190 | 4 | case 5: | |
| 191 | 4 | retval = mayGroundTemperature(); | |
| 192 | 4 | break; | |
| 193 | 4 | case 6: | |
| 194 | 4 | retval = juneGroundTemperature(); | |
| 195 | 4 | break; | |
| 196 | 4 | case 7: | |
| 197 | 4 | retval = julyGroundTemperature(); | |
| 198 | 4 | break; | |
| 199 | 4 | case 8: | |
| 200 | 4 | retval = augustGroundTemperature(); | |
| 201 | 4 | break; | |
| 202 | 4 | case 9: | |
| 203 | 4 | retval = septemberGroundTemperature(); | |
| 204 | 4 | break; | |
| 205 | 4 | case 10: | |
| 206 | 4 | retval = octoberGroundTemperature(); | |
| 207 | 4 | break; | |
| 208 | 4 | case 11: | |
| 209 | 4 | retval = novemberGroundTemperature(); | |
| 210 | 4 | break; | |
| 211 | 4 | case 12: | |
| 212 | 4 | retval = decemberGroundTemperature(); | |
| 213 | 4 | break; | |
| 214 | 1 | default: | |
| 215 |
15/15✓ Branch 1 taken 1 time.
✓ Branch 5 taken 1 time.
✓ Branch 8 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 25 taken 1 time.
✓ Branch 28 taken 1 time.
✓ Branch 31 taken 1 time.
✓ Branch 34 taken 1 time.
✓ Branch 37 taken 1 time.
✓ Branch 41 taken 1 time.
✓ Branch 44 taken 1 time.
✓ Branch 50 taken 1 time.
✓ Branch 53 taken 1 time.
|
1 | LOG_AND_THROW("SiteGroundTemperature::getTemperatureByMonth: Invalid Month " + std::to_string(month)); |
| 216 | break; | ||
| 217 | } | ||
| 218 | 49 | return retval; | |
| 219 | } | ||
| 220 | |||
| 221 | ✗ | double SiteGroundTemperatureFCfactorMethod_Impl::getTemperatureByMonth(const openstudio::MonthOfYear& month) const { | |
| 222 | ✗ | return getTemperatureByMonth(month.value()); | |
| 223 | } | ||
| 224 | |||
| 225 | 50 | bool SiteGroundTemperatureFCfactorMethod_Impl::isMonthDefaulted(int month) const { | |
| 226 | bool is_defaulted; | ||
| 227 |
13/13✓ Branch 0 taken 5 times.
✓ Branch 1 taken 4 times.
✓ Branch 2 taken 4 times.
✓ Branch 3 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 5 taken 4 times.
✓ Branch 6 taken 4 times.
✓ Branch 7 taken 4 times.
✓ Branch 8 taken 4 times.
✓ Branch 9 taken 4 times.
✓ Branch 10 taken 4 times.
✓ Branch 11 taken 4 times.
✓ Branch 12 taken 1 time.
|
50 | switch (month) { |
| 228 | 5 | case 1: | |
| 229 | 5 | is_defaulted = isJanuaryGroundTemperatureDefaulted(); | |
| 230 | 5 | break; | |
| 231 | 4 | case 2: | |
| 232 | 4 | is_defaulted = isFebruaryGroundTemperatureDefaulted(); | |
| 233 | 4 | break; | |
| 234 | 4 | case 3: | |
| 235 | 4 | is_defaulted = isMarchGroundTemperatureDefaulted(); | |
| 236 | 4 | break; | |
| 237 | 4 | case 4: | |
| 238 | 4 | is_defaulted = isAprilGroundTemperatureDefaulted(); | |
| 239 | 4 | break; | |
| 240 | 4 | case 5: | |
| 241 | 4 | is_defaulted = isMayGroundTemperatureDefaulted(); | |
| 242 | 4 | break; | |
| 243 | 4 | case 6: | |
| 244 | 4 | is_defaulted = isJuneGroundTemperatureDefaulted(); | |
| 245 | 4 | break; | |
| 246 | 4 | case 7: | |
| 247 | 4 | is_defaulted = isJulyGroundTemperatureDefaulted(); | |
| 248 | 4 | break; | |
| 249 | 4 | case 8: | |
| 250 | 4 | is_defaulted = isAugustGroundTemperatureDefaulted(); | |
| 251 | 4 | break; | |
| 252 | 4 | case 9: | |
| 253 | 4 | is_defaulted = isSeptemberGroundTemperatureDefaulted(); | |
| 254 | 4 | break; | |
| 255 | 4 | case 10: | |
| 256 | 4 | is_defaulted = isOctoberGroundTemperatureDefaulted(); | |
| 257 | 4 | break; | |
| 258 | 4 | case 11: | |
| 259 | 4 | is_defaulted = isNovemberGroundTemperatureDefaulted(); | |
| 260 | 4 | break; | |
| 261 | 4 | case 12: | |
| 262 | 4 | is_defaulted = isDecemberGroundTemperatureDefaulted(); | |
| 263 | 4 | break; | |
| 264 | 1 | default: | |
| 265 |
15/15✓ Branch 1 taken 1 time.
✓ Branch 5 taken 1 time.
✓ Branch 8 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 25 taken 1 time.
✓ Branch 28 taken 1 time.
✓ Branch 31 taken 1 time.
✓ Branch 34 taken 1 time.
✓ Branch 37 taken 1 time.
✓ Branch 41 taken 1 time.
✓ Branch 44 taken 1 time.
✓ Branch 50 taken 1 time.
✓ Branch 53 taken 1 time.
|
1 | LOG_AND_THROW("SiteGroundTemperature::getTemperatureByMonth: Invalid Month " + std::to_string(month)); |
| 266 | break; | ||
| 267 | } | ||
| 268 | 49 | return is_defaulted; | |
| 269 | } | ||
| 270 | |||
| 271 | ✗ | bool SiteGroundTemperatureFCfactorMethod_Impl::isMonthDefaulted(const openstudio::MonthOfYear& month) const { | |
| 272 | ✗ | return isMonthDefaulted(month.value()); | |
| 273 | } | ||
| 274 | |||
| 275 | 1 | std::vector<double> SiteGroundTemperatureFCfactorMethod_Impl::getAllMonthlyTemperatures() const { | |
| 276 | 1 | std::vector<double> monthly_temperatures; | |
| 277 |
1/1✓ Branch 1 taken 1 time.
|
1 | monthly_temperatures.reserve(12); |
| 278 |
2/2✓ Branch 0 taken 12 times.
✓ Branch 1 taken 1 time.
|
13 | for (int i = 1; i <= 12; ++i) { |
| 279 |
2/2✓ Branch 1 taken 12 times.
✓ Branch 4 taken 12 times.
|
12 | monthly_temperatures.push_back(getTemperatureByMonth(i)); |
| 280 | } | ||
| 281 | 1 | return monthly_temperatures; | |
| 282 | ✗ | } | |
| 283 | |||
| 284 | 6 | bool SiteGroundTemperatureFCfactorMethod_Impl::setJanuaryGroundTemperature(double januaryGroundTemperature) { | |
| 285 | 6 | bool result = setDouble(OS_Site_GroundTemperature_FCfactorMethodFields::JanuaryGroundTemperature, januaryGroundTemperature); | |
| 286 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 6 times.
|
6 | OS_ASSERT(result); |
| 287 | 6 | return result; | |
| 288 | } | ||
| 289 | |||
| 290 | 4 | void SiteGroundTemperatureFCfactorMethod_Impl::resetJanuaryGroundTemperature() { | |
| 291 |
2/2✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
|
8 | bool result = setString(OS_Site_GroundTemperature_FCfactorMethodFields::JanuaryGroundTemperature, ""); |
| 292 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
|
4 | OS_ASSERT(result); |
| 293 | 4 | } | |
| 294 | |||
| 295 | 4 | bool SiteGroundTemperatureFCfactorMethod_Impl::setFebruaryGroundTemperature(double februaryGroundTemperature) { | |
| 296 | 4 | bool result = setDouble(OS_Site_GroundTemperature_FCfactorMethodFields::FebruaryGroundTemperature, februaryGroundTemperature); | |
| 297 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
|
4 | OS_ASSERT(result); |
| 298 | 4 | return result; | |
| 299 | } | ||
| 300 | |||
| 301 | 3 | void SiteGroundTemperatureFCfactorMethod_Impl::resetFebruaryGroundTemperature() { | |
| 302 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | bool result = setString(OS_Site_GroundTemperature_FCfactorMethodFields::FebruaryGroundTemperature, ""); |
| 303 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
|
3 | OS_ASSERT(result); |
| 304 | 3 | } | |
| 305 | |||
| 306 | 4 | bool SiteGroundTemperatureFCfactorMethod_Impl::setMarchGroundTemperature(double marchGroundTemperature) { | |
| 307 | 4 | bool result = setDouble(OS_Site_GroundTemperature_FCfactorMethodFields::MarchGroundTemperature, marchGroundTemperature); | |
| 308 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
|
4 | OS_ASSERT(result); |
| 309 | 4 | return result; | |
| 310 | } | ||
| 311 | |||
| 312 | 3 | void SiteGroundTemperatureFCfactorMethod_Impl::resetMarchGroundTemperature() { | |
| 313 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | bool result = setString(OS_Site_GroundTemperature_FCfactorMethodFields::MarchGroundTemperature, ""); |
| 314 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
|
3 | OS_ASSERT(result); |
| 315 | 3 | } | |
| 316 | |||
| 317 | 4 | bool SiteGroundTemperatureFCfactorMethod_Impl::setAprilGroundTemperature(double aprilGroundTemperature) { | |
| 318 | 4 | bool result = setDouble(OS_Site_GroundTemperature_FCfactorMethodFields::AprilGroundTemperature, aprilGroundTemperature); | |
| 319 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
|
4 | OS_ASSERT(result); |
| 320 | 4 | return result; | |
| 321 | } | ||
| 322 | |||
| 323 | 3 | void SiteGroundTemperatureFCfactorMethod_Impl::resetAprilGroundTemperature() { | |
| 324 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | bool result = setString(OS_Site_GroundTemperature_FCfactorMethodFields::AprilGroundTemperature, ""); |
| 325 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
|
3 | OS_ASSERT(result); |
| 326 | 3 | } | |
| 327 | |||
| 328 | 4 | bool SiteGroundTemperatureFCfactorMethod_Impl::setMayGroundTemperature(double mayGroundTemperature) { | |
| 329 | 4 | bool result = setDouble(OS_Site_GroundTemperature_FCfactorMethodFields::MayGroundTemperature, mayGroundTemperature); | |
| 330 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
|
4 | OS_ASSERT(result); |
| 331 | 4 | return result; | |
| 332 | } | ||
| 333 | |||
| 334 | 3 | void SiteGroundTemperatureFCfactorMethod_Impl::resetMayGroundTemperature() { | |
| 335 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | bool result = setString(OS_Site_GroundTemperature_FCfactorMethodFields::MayGroundTemperature, ""); |
| 336 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
|
3 | OS_ASSERT(result); |
| 337 | 3 | } | |
| 338 | |||
| 339 | 4 | bool SiteGroundTemperatureFCfactorMethod_Impl::setJuneGroundTemperature(double juneGroundTemperature) { | |
| 340 | 4 | bool result = setDouble(OS_Site_GroundTemperature_FCfactorMethodFields::JuneGroundTemperature, juneGroundTemperature); | |
| 341 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
|
4 | OS_ASSERT(result); |
| 342 | 4 | return result; | |
| 343 | } | ||
| 344 | |||
| 345 | 3 | void SiteGroundTemperatureFCfactorMethod_Impl::resetJuneGroundTemperature() { | |
| 346 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | bool result = setString(OS_Site_GroundTemperature_FCfactorMethodFields::JuneGroundTemperature, ""); |
| 347 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
|
3 | OS_ASSERT(result); |
| 348 | 3 | } | |
| 349 | |||
| 350 | 4 | bool SiteGroundTemperatureFCfactorMethod_Impl::setJulyGroundTemperature(double julyGroundTemperature) { | |
| 351 | 4 | bool result = setDouble(OS_Site_GroundTemperature_FCfactorMethodFields::JulyGroundTemperature, julyGroundTemperature); | |
| 352 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
|
4 | OS_ASSERT(result); |
| 353 | 4 | return result; | |
| 354 | } | ||
| 355 | |||
| 356 | 3 | void SiteGroundTemperatureFCfactorMethod_Impl::resetJulyGroundTemperature() { | |
| 357 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | bool result = setString(OS_Site_GroundTemperature_FCfactorMethodFields::JulyGroundTemperature, ""); |
| 358 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
|
3 | OS_ASSERT(result); |
| 359 | 3 | } | |
| 360 | |||
| 361 | 4 | bool SiteGroundTemperatureFCfactorMethod_Impl::setAugustGroundTemperature(double augustGroundTemperature) { | |
| 362 | 4 | bool result = setDouble(OS_Site_GroundTemperature_FCfactorMethodFields::AugustGroundTemperature, augustGroundTemperature); | |
| 363 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
|
4 | OS_ASSERT(result); |
| 364 | 4 | return result; | |
| 365 | } | ||
| 366 | |||
| 367 | 3 | void SiteGroundTemperatureFCfactorMethod_Impl::resetAugustGroundTemperature() { | |
| 368 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | bool result = setString(OS_Site_GroundTemperature_FCfactorMethodFields::AugustGroundTemperature, ""); |
| 369 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
|
3 | OS_ASSERT(result); |
| 370 | 3 | } | |
| 371 | |||
| 372 | 4 | bool SiteGroundTemperatureFCfactorMethod_Impl::setSeptemberGroundTemperature(double septemberGroundTemperature) { | |
| 373 | 4 | bool result = setDouble(OS_Site_GroundTemperature_FCfactorMethodFields::SeptemberGroundTemperature, septemberGroundTemperature); | |
| 374 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
|
4 | OS_ASSERT(result); |
| 375 | 4 | return result; | |
| 376 | } | ||
| 377 | |||
| 378 | 3 | void SiteGroundTemperatureFCfactorMethod_Impl::resetSeptemberGroundTemperature() { | |
| 379 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | bool result = setString(OS_Site_GroundTemperature_FCfactorMethodFields::SeptemberGroundTemperature, ""); |
| 380 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
|
3 | OS_ASSERT(result); |
| 381 | 3 | } | |
| 382 | |||
| 383 | 4 | bool SiteGroundTemperatureFCfactorMethod_Impl::setOctoberGroundTemperature(double octoberGroundTemperature) { | |
| 384 | 4 | bool result = setDouble(OS_Site_GroundTemperature_FCfactorMethodFields::OctoberGroundTemperature, octoberGroundTemperature); | |
| 385 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
|
4 | OS_ASSERT(result); |
| 386 | 4 | return result; | |
| 387 | } | ||
| 388 | |||
| 389 | 3 | void SiteGroundTemperatureFCfactorMethod_Impl::resetOctoberGroundTemperature() { | |
| 390 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | bool result = setString(OS_Site_GroundTemperature_FCfactorMethodFields::OctoberGroundTemperature, ""); |
| 391 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
|
3 | OS_ASSERT(result); |
| 392 | 3 | } | |
| 393 | |||
| 394 | 4 | bool SiteGroundTemperatureFCfactorMethod_Impl::setNovemberGroundTemperature(double novemberGroundTemperature) { | |
| 395 | 4 | bool result = setDouble(OS_Site_GroundTemperature_FCfactorMethodFields::NovemberGroundTemperature, novemberGroundTemperature); | |
| 396 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
|
4 | OS_ASSERT(result); |
| 397 | 4 | return result; | |
| 398 | } | ||
| 399 | |||
| 400 | 3 | void SiteGroundTemperatureFCfactorMethod_Impl::resetNovemberGroundTemperature() { | |
| 401 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | bool result = setString(OS_Site_GroundTemperature_FCfactorMethodFields::NovemberGroundTemperature, ""); |
| 402 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
|
3 | OS_ASSERT(result); |
| 403 | 3 | } | |
| 404 | |||
| 405 | 4 | bool SiteGroundTemperatureFCfactorMethod_Impl::setDecemberGroundTemperature(double decemberGroundTemperature) { | |
| 406 | 4 | bool result = setDouble(OS_Site_GroundTemperature_FCfactorMethodFields::DecemberGroundTemperature, decemberGroundTemperature); | |
| 407 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 4 times.
|
4 | OS_ASSERT(result); |
| 408 | 4 | return result; | |
| 409 | } | ||
| 410 | |||
| 411 | 3 | void SiteGroundTemperatureFCfactorMethod_Impl::resetDecemberGroundTemperature() { | |
| 412 |
2/2✓ Branch 1 taken 3 times.
✓ Branch 4 taken 3 times.
|
6 | bool result = setString(OS_Site_GroundTemperature_FCfactorMethodFields::DecemberGroundTemperature, ""); |
| 413 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 3 times.
|
3 | OS_ASSERT(result); |
| 414 | 3 | } | |
| 415 | |||
| 416 | 38 | bool SiteGroundTemperatureFCfactorMethod_Impl::setTemperatureByMonth(int month, double temperature) { | |
| 417 |
13/13✓ Branch 0 taken 4 times.
✓ Branch 1 taken 3 times.
✓ Branch 2 taken 3 times.
✓ Branch 3 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 5 taken 3 times.
✓ Branch 6 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 8 taken 3 times.
✓ Branch 9 taken 3 times.
✓ Branch 10 taken 3 times.
✓ Branch 11 taken 3 times.
✓ Branch 12 taken 1 time.
|
38 | switch (month) { |
| 418 | 4 | case 1: | |
| 419 | 4 | return setJanuaryGroundTemperature(temperature); | |
| 420 | break; | ||
| 421 | 3 | case 2: | |
| 422 | 3 | return setFebruaryGroundTemperature(temperature); | |
| 423 | break; | ||
| 424 | 3 | case 3: | |
| 425 | 3 | return setMarchGroundTemperature(temperature); | |
| 426 | break; | ||
| 427 | 3 | case 4: | |
| 428 | 3 | return setAprilGroundTemperature(temperature); | |
| 429 | break; | ||
| 430 | 3 | case 5: | |
| 431 | 3 | return setMayGroundTemperature(temperature); | |
| 432 | break; | ||
| 433 | 3 | case 6: | |
| 434 | 3 | return setJuneGroundTemperature(temperature); | |
| 435 | break; | ||
| 436 | 3 | case 7: | |
| 437 | 3 | return setJulyGroundTemperature(temperature); | |
| 438 | break; | ||
| 439 | 3 | case 8: | |
| 440 | 3 | return setAugustGroundTemperature(temperature); | |
| 441 | break; | ||
| 442 | 3 | case 9: | |
| 443 | 3 | return setSeptemberGroundTemperature(temperature); | |
| 444 | break; | ||
| 445 | 3 | case 10: | |
| 446 | 3 | return setOctoberGroundTemperature(temperature); | |
| 447 | break; | ||
| 448 | 3 | case 11: | |
| 449 | 3 | return setNovemberGroundTemperature(temperature); | |
| 450 | break; | ||
| 451 | 3 | case 12: | |
| 452 | 3 | return setDecemberGroundTemperature(temperature); | |
| 453 | break; | ||
| 454 | 1 | default: | |
| 455 |
15/15✓ Branch 1 taken 1 time.
✓ Branch 5 taken 1 time.
✓ Branch 8 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 25 taken 1 time.
✓ Branch 28 taken 1 time.
✓ Branch 31 taken 1 time.
✓ Branch 34 taken 1 time.
✓ Branch 37 taken 1 time.
✓ Branch 41 taken 1 time.
✓ Branch 44 taken 1 time.
✓ Branch 50 taken 1 time.
✓ Branch 53 taken 1 time.
|
1 | LOG_AND_THROW("SiteGroundTemperature::getTemperatureByMonth: Invalid Month " + std::to_string(month)); |
| 456 | return false; | ||
| 457 | break; | ||
| 458 | } | ||
| 459 | } | ||
| 460 | |||
| 461 | ✗ | bool SiteGroundTemperatureFCfactorMethod_Impl::setTemperatureByMonth(const openstudio::MonthOfYear& month, double temperature) { | |
| 462 | ✗ | return setTemperatureByMonth(month.value(), temperature); | |
| 463 | } | ||
| 464 | |||
| 465 | 38 | void SiteGroundTemperatureFCfactorMethod_Impl::resetTemperatureByMonth(int month) { | |
| 466 |
13/13✓ Branch 0 taken 4 times.
✓ Branch 1 taken 3 times.
✓ Branch 2 taken 3 times.
✓ Branch 3 taken 3 times.
✓ Branch 4 taken 3 times.
✓ Branch 5 taken 3 times.
✓ Branch 6 taken 3 times.
✓ Branch 7 taken 3 times.
✓ Branch 8 taken 3 times.
✓ Branch 9 taken 3 times.
✓ Branch 10 taken 3 times.
✓ Branch 11 taken 3 times.
✓ Branch 12 taken 1 time.
|
38 | switch (month) { |
| 467 | 4 | case 1: | |
| 468 | 4 | resetJanuaryGroundTemperature(); | |
| 469 | 4 | break; | |
| 470 | 3 | case 2: | |
| 471 | 3 | resetFebruaryGroundTemperature(); | |
| 472 | 3 | break; | |
| 473 | 3 | case 3: | |
| 474 | 3 | resetMarchGroundTemperature(); | |
| 475 | 3 | break; | |
| 476 | 3 | case 4: | |
| 477 | 3 | resetAprilGroundTemperature(); | |
| 478 | 3 | break; | |
| 479 | 3 | case 5: | |
| 480 | 3 | resetMayGroundTemperature(); | |
| 481 | 3 | break; | |
| 482 | 3 | case 6: | |
| 483 | 3 | resetJuneGroundTemperature(); | |
| 484 | 3 | break; | |
| 485 | 3 | case 7: | |
| 486 | 3 | resetJulyGroundTemperature(); | |
| 487 | 3 | break; | |
| 488 | 3 | case 8: | |
| 489 | 3 | resetAugustGroundTemperature(); | |
| 490 | 3 | break; | |
| 491 | 3 | case 9: | |
| 492 | 3 | resetSeptemberGroundTemperature(); | |
| 493 | 3 | break; | |
| 494 | 3 | case 10: | |
| 495 | 3 | resetOctoberGroundTemperature(); | |
| 496 | 3 | break; | |
| 497 | 3 | case 11: | |
| 498 | 3 | resetNovemberGroundTemperature(); | |
| 499 | 3 | break; | |
| 500 | 3 | case 12: | |
| 501 | 3 | resetDecemberGroundTemperature(); | |
| 502 | 3 | break; | |
| 503 | 1 | default: | |
| 504 |
15/15✓ Branch 1 taken 1 time.
✓ Branch 5 taken 1 time.
✓ Branch 8 taken 1 time.
✓ Branch 13 taken 1 time.
✓ Branch 16 taken 1 time.
✓ Branch 19 taken 1 time.
✓ Branch 25 taken 1 time.
✓ Branch 28 taken 1 time.
✓ Branch 31 taken 1 time.
✓ Branch 34 taken 1 time.
✓ Branch 37 taken 1 time.
✓ Branch 41 taken 1 time.
✓ Branch 44 taken 1 time.
✓ Branch 50 taken 1 time.
✓ Branch 53 taken 1 time.
|
1 | LOG_AND_THROW("SiteGroundTemperature::getTemperatureByMonth: Invalid Month " + std::to_string(month)); |
| 505 | break; | ||
| 506 | } | ||
| 507 | 37 | } | |
| 508 | |||
| 509 | ✗ | void SiteGroundTemperatureFCfactorMethod_Impl::resetTemperatureByMonth(const openstudio::MonthOfYear& month) { | |
| 510 | ✗ | return resetTemperatureByMonth(month.value()); | |
| 511 | } | ||
| 512 | |||
| 513 | 2 | void SiteGroundTemperatureFCfactorMethod_Impl::resetAllMonths() { | |
| 514 |
2/2✓ Branch 0 taken 24 times.
✓ Branch 1 taken 2 times.
|
26 | for (int i = 1; i <= 12; ++i) { |
| 515 | 24 | resetTemperatureByMonth(i); | |
| 516 | } | ||
| 517 | 2 | } | |
| 518 | |||
| 519 | 3 | bool SiteGroundTemperatureFCfactorMethod_Impl::setAllMonthlyTemperatures(const std::vector<double>& monthly_temperatures) { | |
| 520 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 2 taken 1 time.
|
3 | if (monthly_temperatures.size() == 12) { |
| 521 |
2/2✓ Branch 0 taken 24 times.
✓ Branch 1 taken 2 times.
|
26 | for (int i = 1; i <= 12; ++i) { |
| 522 | 24 | setTemperatureByMonth(i, monthly_temperatures[i - 1]); | |
| 523 | } | ||
| 524 | 2 | return true; | |
| 525 | } else { | ||
| 526 | 1 | return false; | |
| 527 | } | ||
| 528 | } | ||
| 529 | |||
| 530 | } // namespace detail | ||
| 531 | |||
| 532 | 7837 | IddObjectType SiteGroundTemperatureFCfactorMethod::iddObjectType() { | |
| 533 |
1/1✓ Branch 1 taken 7837 times.
|
7837 | IddObjectType result(IddObjectType::OS_Site_GroundTemperature_FCfactorMethod); |
| 534 | 7837 | return result; | |
| 535 | } | ||
| 536 | |||
| 537 | 4 | double SiteGroundTemperatureFCfactorMethod::januaryGroundTemperature() const { | |
| 538 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->januaryGroundTemperature(); |
| 539 | } | ||
| 540 | |||
| 541 | 4 | bool SiteGroundTemperatureFCfactorMethod::isJanuaryGroundTemperatureDefaulted() const { | |
| 542 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->isJanuaryGroundTemperatureDefaulted(); |
| 543 | } | ||
| 544 | |||
| 545 | 2 | double SiteGroundTemperatureFCfactorMethod::februaryGroundTemperature() const { | |
| 546 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->februaryGroundTemperature(); |
| 547 | } | ||
| 548 | |||
| 549 | 4 | bool SiteGroundTemperatureFCfactorMethod::isFebruaryGroundTemperatureDefaulted() const { | |
| 550 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->isFebruaryGroundTemperatureDefaulted(); |
| 551 | } | ||
| 552 | |||
| 553 | 2 | double SiteGroundTemperatureFCfactorMethod::marchGroundTemperature() const { | |
| 554 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->marchGroundTemperature(); |
| 555 | } | ||
| 556 | |||
| 557 | 2 | bool SiteGroundTemperatureFCfactorMethod::isMarchGroundTemperatureDefaulted() const { | |
| 558 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->isMarchGroundTemperatureDefaulted(); |
| 559 | } | ||
| 560 | |||
| 561 | 2 | double SiteGroundTemperatureFCfactorMethod::aprilGroundTemperature() const { | |
| 562 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->aprilGroundTemperature(); |
| 563 | } | ||
| 564 | |||
| 565 | 2 | bool SiteGroundTemperatureFCfactorMethod::isAprilGroundTemperatureDefaulted() const { | |
| 566 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->isAprilGroundTemperatureDefaulted(); |
| 567 | } | ||
| 568 | |||
| 569 | 2 | double SiteGroundTemperatureFCfactorMethod::mayGroundTemperature() const { | |
| 570 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->mayGroundTemperature(); |
| 571 | } | ||
| 572 | |||
| 573 | 2 | bool SiteGroundTemperatureFCfactorMethod::isMayGroundTemperatureDefaulted() const { | |
| 574 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->isMayGroundTemperatureDefaulted(); |
| 575 | } | ||
| 576 | |||
| 577 | 2 | double SiteGroundTemperatureFCfactorMethod::juneGroundTemperature() const { | |
| 578 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->juneGroundTemperature(); |
| 579 | } | ||
| 580 | |||
| 581 | 2 | bool SiteGroundTemperatureFCfactorMethod::isJuneGroundTemperatureDefaulted() const { | |
| 582 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->isJuneGroundTemperatureDefaulted(); |
| 583 | } | ||
| 584 | |||
| 585 | 2 | double SiteGroundTemperatureFCfactorMethod::julyGroundTemperature() const { | |
| 586 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->julyGroundTemperature(); |
| 587 | } | ||
| 588 | |||
| 589 | 2 | bool SiteGroundTemperatureFCfactorMethod::isJulyGroundTemperatureDefaulted() const { | |
| 590 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->isJulyGroundTemperatureDefaulted(); |
| 591 | } | ||
| 592 | |||
| 593 | 2 | double SiteGroundTemperatureFCfactorMethod::augustGroundTemperature() const { | |
| 594 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->augustGroundTemperature(); |
| 595 | } | ||
| 596 | |||
| 597 | 2 | bool SiteGroundTemperatureFCfactorMethod::isAugustGroundTemperatureDefaulted() const { | |
| 598 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->isAugustGroundTemperatureDefaulted(); |
| 599 | } | ||
| 600 | |||
| 601 | 2 | double SiteGroundTemperatureFCfactorMethod::septemberGroundTemperature() const { | |
| 602 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->septemberGroundTemperature(); |
| 603 | } | ||
| 604 | |||
| 605 | 2 | bool SiteGroundTemperatureFCfactorMethod::isSeptemberGroundTemperatureDefaulted() const { | |
| 606 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->isSeptemberGroundTemperatureDefaulted(); |
| 607 | } | ||
| 608 | |||
| 609 | 2 | double SiteGroundTemperatureFCfactorMethod::octoberGroundTemperature() const { | |
| 610 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->octoberGroundTemperature(); |
| 611 | } | ||
| 612 | |||
| 613 | 2 | bool SiteGroundTemperatureFCfactorMethod::isOctoberGroundTemperatureDefaulted() const { | |
| 614 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->isOctoberGroundTemperatureDefaulted(); |
| 615 | } | ||
| 616 | |||
| 617 | 2 | double SiteGroundTemperatureFCfactorMethod::novemberGroundTemperature() const { | |
| 618 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->novemberGroundTemperature(); |
| 619 | } | ||
| 620 | |||
| 621 | 2 | bool SiteGroundTemperatureFCfactorMethod::isNovemberGroundTemperatureDefaulted() const { | |
| 622 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->isNovemberGroundTemperatureDefaulted(); |
| 623 | } | ||
| 624 | |||
| 625 | 2 | double SiteGroundTemperatureFCfactorMethod::decemberGroundTemperature() const { | |
| 626 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->decemberGroundTemperature(); |
| 627 | } | ||
| 628 | |||
| 629 | 2 | bool SiteGroundTemperatureFCfactorMethod::isDecemberGroundTemperatureDefaulted() const { | |
| 630 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->isDecemberGroundTemperatureDefaulted(); |
| 631 | } | ||
| 632 | |||
| 633 | 38 | double SiteGroundTemperatureFCfactorMethod::getTemperatureByMonth(int month) const { | |
| 634 |
1/1✓ Branch 3 taken 37 times.
|
38 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->getTemperatureByMonth(month); |
| 635 | } | ||
| 636 | |||
| 637 | ✗ | double SiteGroundTemperatureFCfactorMethod::getTemperatureByMonth(const openstudio::MonthOfYear& month) const { | |
| 638 | ✗ | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->getTemperatureByMonth(month); | |
| 639 | } | ||
| 640 | |||
| 641 | 50 | bool SiteGroundTemperatureFCfactorMethod::isMonthDefaulted(int month) const { | |
| 642 |
1/1✓ Branch 3 taken 49 times.
|
50 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->isMonthDefaulted(month); |
| 643 | } | ||
| 644 | |||
| 645 | ✗ | bool SiteGroundTemperatureFCfactorMethod::isMonthDefaulted(const openstudio::MonthOfYear& month) const { | |
| 646 | ✗ | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->isMonthDefaulted(month); | |
| 647 | } | ||
| 648 | |||
| 649 | 1 | std::vector<double> SiteGroundTemperatureFCfactorMethod::getAllMonthlyTemperatures() const { | |
| 650 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->getAllMonthlyTemperatures(); |
| 651 | } | ||
| 652 | |||
| 653 | 2 | bool SiteGroundTemperatureFCfactorMethod::setJanuaryGroundTemperature(double januaryGroundTemperature) { | |
| 654 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->setJanuaryGroundTemperature(januaryGroundTemperature); |
| 655 | } | ||
| 656 | |||
| 657 | ✗ | void SiteGroundTemperatureFCfactorMethod::resetJanuaryGroundTemperature() { | |
| 658 | ✗ | getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->resetJanuaryGroundTemperature(); | |
| 659 | ✗ | } | |
| 660 | |||
| 661 | 1 | bool SiteGroundTemperatureFCfactorMethod::setFebruaryGroundTemperature(double februaryGroundTemperature) { | |
| 662 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->setFebruaryGroundTemperature(februaryGroundTemperature); |
| 663 | } | ||
| 664 | |||
| 665 | ✗ | void SiteGroundTemperatureFCfactorMethod::resetFebruaryGroundTemperature() { | |
| 666 | ✗ | getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->resetFebruaryGroundTemperature(); | |
| 667 | ✗ | } | |
| 668 | |||
| 669 | 1 | bool SiteGroundTemperatureFCfactorMethod::setMarchGroundTemperature(double marchGroundTemperature) { | |
| 670 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->setMarchGroundTemperature(marchGroundTemperature); |
| 671 | } | ||
| 672 | |||
| 673 | ✗ | void SiteGroundTemperatureFCfactorMethod::resetMarchGroundTemperature() { | |
| 674 | ✗ | getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->resetMarchGroundTemperature(); | |
| 675 | ✗ | } | |
| 676 | |||
| 677 | 1 | bool SiteGroundTemperatureFCfactorMethod::setAprilGroundTemperature(double aprilGroundTemperature) { | |
| 678 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->setAprilGroundTemperature(aprilGroundTemperature); |
| 679 | } | ||
| 680 | |||
| 681 | ✗ | void SiteGroundTemperatureFCfactorMethod::resetAprilGroundTemperature() { | |
| 682 | ✗ | getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->resetAprilGroundTemperature(); | |
| 683 | ✗ | } | |
| 684 | |||
| 685 | 1 | bool SiteGroundTemperatureFCfactorMethod::setMayGroundTemperature(double mayGroundTemperature) { | |
| 686 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->setMayGroundTemperature(mayGroundTemperature); |
| 687 | } | ||
| 688 | |||
| 689 | ✗ | void SiteGroundTemperatureFCfactorMethod::resetMayGroundTemperature() { | |
| 690 | ✗ | getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->resetMayGroundTemperature(); | |
| 691 | ✗ | } | |
| 692 | |||
| 693 | 1 | bool SiteGroundTemperatureFCfactorMethod::setJuneGroundTemperature(double juneGroundTemperature) { | |
| 694 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->setJuneGroundTemperature(juneGroundTemperature); |
| 695 | } | ||
| 696 | |||
| 697 | ✗ | void SiteGroundTemperatureFCfactorMethod::resetJuneGroundTemperature() { | |
| 698 | ✗ | getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->resetJuneGroundTemperature(); | |
| 699 | ✗ | } | |
| 700 | |||
| 701 | 1 | bool SiteGroundTemperatureFCfactorMethod::setJulyGroundTemperature(double julyGroundTemperature) { | |
| 702 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->setJulyGroundTemperature(julyGroundTemperature); |
| 703 | } | ||
| 704 | |||
| 705 | ✗ | void SiteGroundTemperatureFCfactorMethod::resetJulyGroundTemperature() { | |
| 706 | ✗ | getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->resetJulyGroundTemperature(); | |
| 707 | ✗ | } | |
| 708 | |||
| 709 | 1 | bool SiteGroundTemperatureFCfactorMethod::setAugustGroundTemperature(double augustGroundTemperature) { | |
| 710 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->setAugustGroundTemperature(augustGroundTemperature); |
| 711 | } | ||
| 712 | |||
| 713 | ✗ | void SiteGroundTemperatureFCfactorMethod::resetAugustGroundTemperature() { | |
| 714 | ✗ | getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->resetAugustGroundTemperature(); | |
| 715 | ✗ | } | |
| 716 | |||
| 717 | 1 | bool SiteGroundTemperatureFCfactorMethod::setSeptemberGroundTemperature(double septemberGroundTemperature) { | |
| 718 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->setSeptemberGroundTemperature(septemberGroundTemperature); |
| 719 | } | ||
| 720 | |||
| 721 | ✗ | void SiteGroundTemperatureFCfactorMethod::resetSeptemberGroundTemperature() { | |
| 722 | ✗ | getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->resetSeptemberGroundTemperature(); | |
| 723 | ✗ | } | |
| 724 | |||
| 725 | 1 | bool SiteGroundTemperatureFCfactorMethod::setOctoberGroundTemperature(double octoberGroundTemperature) { | |
| 726 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->setOctoberGroundTemperature(octoberGroundTemperature); |
| 727 | } | ||
| 728 | |||
| 729 | ✗ | void SiteGroundTemperatureFCfactorMethod::resetOctoberGroundTemperature() { | |
| 730 | ✗ | getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->resetOctoberGroundTemperature(); | |
| 731 | ✗ | } | |
| 732 | |||
| 733 | 1 | bool SiteGroundTemperatureFCfactorMethod::setNovemberGroundTemperature(double novemberGroundTemperature) { | |
| 734 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->setNovemberGroundTemperature(novemberGroundTemperature); |
| 735 | } | ||
| 736 | |||
| 737 | ✗ | void SiteGroundTemperatureFCfactorMethod::resetNovemberGroundTemperature() { | |
| 738 | ✗ | getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->resetNovemberGroundTemperature(); | |
| 739 | ✗ | } | |
| 740 | |||
| 741 | 1 | bool SiteGroundTemperatureFCfactorMethod::setDecemberGroundTemperature(double decemberGroundTemperature) { | |
| 742 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->setDecemberGroundTemperature(decemberGroundTemperature); |
| 743 | } | ||
| 744 | |||
| 745 | ✗ | void SiteGroundTemperatureFCfactorMethod::resetDecemberGroundTemperature() { | |
| 746 | ✗ | getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->resetDecemberGroundTemperature(); | |
| 747 | ✗ | } | |
| 748 | |||
| 749 | 14 | bool SiteGroundTemperatureFCfactorMethod::setTemperatureByMonth(int month, double temperature) { | |
| 750 |
1/1✓ Branch 3 taken 13 times.
|
14 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->setTemperatureByMonth(month, temperature); |
| 751 | } | ||
| 752 | |||
| 753 | ✗ | bool SiteGroundTemperatureFCfactorMethod::setTemperatureByMonth(const openstudio::MonthOfYear& month, double temperature) { | |
| 754 | ✗ | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->setTemperatureByMonth(month, temperature); | |
| 755 | } | ||
| 756 | |||
| 757 | 14 | void SiteGroundTemperatureFCfactorMethod::resetTemperatureByMonth(int month) { | |
| 758 |
1/1✓ Branch 3 taken 13 times.
|
14 | getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->resetTemperatureByMonth(month); |
| 759 | 13 | } | |
| 760 | |||
| 761 | ✗ | void SiteGroundTemperatureFCfactorMethod::resetTemperatureByMonth(const openstudio::MonthOfYear& month) { | |
| 762 | ✗ | getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->resetTemperatureByMonth(month); | |
| 763 | ✗ | } | |
| 764 | |||
| 765 | 2 | void SiteGroundTemperatureFCfactorMethod::resetAllMonths() { | |
| 766 |
1/1✓ Branch 3 taken 2 times.
|
2 | getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->resetAllMonths(); |
| 767 | 2 | } | |
| 768 | |||
| 769 | 3 | bool SiteGroundTemperatureFCfactorMethod::setAllMonthlyTemperatures(const std::vector<double>& monthly_temperatures) { | |
| 770 |
1/1✓ Branch 3 taken 3 times.
|
3 | return getImpl<detail::SiteGroundTemperatureFCfactorMethod_Impl>()->setAllMonthlyTemperatures(monthly_temperatures); |
| 771 | } | ||
| 772 | |||
| 773 | /// @cond | ||
| 774 | 8 | SiteGroundTemperatureFCfactorMethod::SiteGroundTemperatureFCfactorMethod(std::shared_ptr<detail::SiteGroundTemperatureFCfactorMethod_Impl> impl) | |
| 775 |
1/1✓ Branch 3 taken 8 times.
|
8 | : ModelObject(std::move(impl)) {} |
| 776 | 7 | SiteGroundTemperatureFCfactorMethod::SiteGroundTemperatureFCfactorMethod(Model& model) | |
| 777 | 7 | : ModelObject(SiteGroundTemperatureFCfactorMethod::iddObjectType(), model) {} | |
| 778 | |||
| 779 | /// @endcond | ||
| 780 | |||
| 781 | } // namespace model | ||
| 782 | } // namespace openstudio | ||
| 783 |