src/model/SiteGroundReflectance.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 "SiteGroundReflectance.hpp" | ||
| 7 | #include "SiteGroundReflectance_Impl.hpp" | ||
| 8 | |||
| 9 | #include "Model.hpp" | ||
| 10 | #include "Model_Impl.hpp" | ||
| 11 | #include "Site.hpp" | ||
| 12 | #include "Site_Impl.hpp" | ||
| 13 | |||
| 14 | #include <utilities/idd/OS_Site_GroundReflectance_FieldEnums.hxx> | ||
| 15 | #include <utilities/idd/IddEnums.hxx> | ||
| 16 | |||
| 17 | #include "../utilities/core/Assert.hpp" | ||
| 18 | |||
| 19 | namespace openstudio { | ||
| 20 | namespace model { | ||
| 21 | |||
| 22 | namespace detail { | ||
| 23 | |||
| 24 | 4 | SiteGroundReflectance_Impl::SiteGroundReflectance_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) | |
| 25 | 4 | : ModelObject_Impl(idfObject, model, keepHandle) { | |
| 26 |
4/6✓ Branch 1 taken 4 times.
✓ Branch 4 taken 4 times.
✓ Branch 7 taken 4 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 4 times.
✗ Branch 13 not taken.
|
4 | OS_ASSERT(idfObject.iddObject().type() == SiteGroundReflectance::iddObjectType()); |
| 27 | 4 | } | |
| 28 | |||
| 29 | ✗ | SiteGroundReflectance_Impl::SiteGroundReflectance_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle) | |
| 30 | ✗ | : ModelObject_Impl(other, model, keepHandle) { | |
| 31 | ✗ | OS_ASSERT(other.iddObject().type() == SiteGroundReflectance::iddObjectType()); | |
| 32 | ✗ | } | |
| 33 | |||
| 34 | 4 | SiteGroundReflectance_Impl::SiteGroundReflectance_Impl(const SiteGroundReflectance_Impl& other, Model_Impl* model, bool keepHandle) | |
| 35 | 4 | : ModelObject_Impl(other, model, keepHandle) {} | |
| 36 | |||
| 37 | 2 | boost::optional<ParentObject> SiteGroundReflectance_Impl::parent() const { | |
| 38 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | boost::optional<Site> result = this->model().getOptionalUniqueModelObject<Site>(); |
| 39 |
1/1✓ Branch 1 taken 2 times.
|
4 | return boost::optional<ParentObject>(result); |
| 40 | 2 | } | |
| 41 | |||
| 42 | ✗ | const std::vector<std::string>& SiteGroundReflectance_Impl::outputVariableNames() const { | |
| 43 | ✗ | static const std::vector<std::string> result; | |
| 44 | ✗ | return result; | |
| 45 | } | ||
| 46 | |||
| 47 | ✗ | IddObjectType SiteGroundReflectance_Impl::iddObjectType() const { | |
| 48 | ✗ | return SiteGroundReflectance::iddObjectType(); | |
| 49 | } | ||
| 50 | |||
| 51 | 4 | double SiteGroundReflectance_Impl::januaryGroundReflectance() const { | |
| 52 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Site_GroundReflectanceFields::JanuaryGroundReflectance, true); |
| 53 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 54 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 55 | } | ||
| 56 | |||
| 57 | 4 | bool SiteGroundReflectance_Impl::isJanuaryGroundReflectanceDefaulted() const { | |
| 58 | 4 | return isEmpty(OS_Site_GroundReflectanceFields::JanuaryGroundReflectance); | |
| 59 | } | ||
| 60 | |||
| 61 | 4 | double SiteGroundReflectance_Impl::februaryGroundReflectance() const { | |
| 62 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Site_GroundReflectanceFields::FebruaryGroundReflectance, true); |
| 63 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 64 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 65 | } | ||
| 66 | |||
| 67 | 4 | bool SiteGroundReflectance_Impl::isFebruaryGroundReflectanceDefaulted() const { | |
| 68 | 4 | return isEmpty(OS_Site_GroundReflectanceFields::FebruaryGroundReflectance); | |
| 69 | } | ||
| 70 | |||
| 71 | 4 | double SiteGroundReflectance_Impl::marchGroundReflectance() const { | |
| 72 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Site_GroundReflectanceFields::MarchGroundReflectance, true); |
| 73 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 74 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 75 | } | ||
| 76 | |||
| 77 | 4 | bool SiteGroundReflectance_Impl::isMarchGroundReflectanceDefaulted() const { | |
| 78 | 4 | return isEmpty(OS_Site_GroundReflectanceFields::MarchGroundReflectance); | |
| 79 | } | ||
| 80 | |||
| 81 | 4 | double SiteGroundReflectance_Impl::aprilGroundReflectance() const { | |
| 82 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Site_GroundReflectanceFields::AprilGroundReflectance, true); |
| 83 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 84 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 85 | } | ||
| 86 | |||
| 87 | 4 | bool SiteGroundReflectance_Impl::isAprilGroundReflectanceDefaulted() const { | |
| 88 | 4 | return isEmpty(OS_Site_GroundReflectanceFields::AprilGroundReflectance); | |
| 89 | } | ||
| 90 | |||
| 91 | 4 | double SiteGroundReflectance_Impl::mayGroundReflectance() const { | |
| 92 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Site_GroundReflectanceFields::MayGroundReflectance, true); |
| 93 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 94 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 95 | } | ||
| 96 | |||
| 97 | 4 | bool SiteGroundReflectance_Impl::isMayGroundReflectanceDefaulted() const { | |
| 98 | 4 | return isEmpty(OS_Site_GroundReflectanceFields::MayGroundReflectance); | |
| 99 | } | ||
| 100 | |||
| 101 | 4 | double SiteGroundReflectance_Impl::juneGroundReflectance() const { | |
| 102 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Site_GroundReflectanceFields::JuneGroundReflectance, true); |
| 103 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 104 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 105 | } | ||
| 106 | |||
| 107 | 4 | bool SiteGroundReflectance_Impl::isJuneGroundReflectanceDefaulted() const { | |
| 108 | 4 | return isEmpty(OS_Site_GroundReflectanceFields::JuneGroundReflectance); | |
| 109 | } | ||
| 110 | |||
| 111 | 4 | double SiteGroundReflectance_Impl::julyGroundReflectance() const { | |
| 112 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Site_GroundReflectanceFields::JulyGroundReflectance, true); |
| 113 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 114 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 115 | } | ||
| 116 | |||
| 117 | 4 | bool SiteGroundReflectance_Impl::isJulyGroundReflectanceDefaulted() const { | |
| 118 | 4 | return isEmpty(OS_Site_GroundReflectanceFields::JulyGroundReflectance); | |
| 119 | } | ||
| 120 | |||
| 121 | 4 | double SiteGroundReflectance_Impl::augustGroundReflectance() const { | |
| 122 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Site_GroundReflectanceFields::AugustGroundReflectance, true); |
| 123 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 124 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 125 | } | ||
| 126 | |||
| 127 | 4 | bool SiteGroundReflectance_Impl::isAugustGroundReflectanceDefaulted() const { | |
| 128 | 4 | return isEmpty(OS_Site_GroundReflectanceFields::AugustGroundReflectance); | |
| 129 | } | ||
| 130 | |||
| 131 | 4 | double SiteGroundReflectance_Impl::septemberGroundReflectance() const { | |
| 132 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Site_GroundReflectanceFields::SeptemberGroundReflectance, true); |
| 133 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 134 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 135 | } | ||
| 136 | |||
| 137 | 4 | bool SiteGroundReflectance_Impl::isSeptemberGroundReflectanceDefaulted() const { | |
| 138 | 4 | return isEmpty(OS_Site_GroundReflectanceFields::SeptemberGroundReflectance); | |
| 139 | } | ||
| 140 | |||
| 141 | 4 | double SiteGroundReflectance_Impl::octoberGroundReflectance() const { | |
| 142 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Site_GroundReflectanceFields::OctoberGroundReflectance, true); |
| 143 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 144 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 145 | } | ||
| 146 | |||
| 147 | 4 | bool SiteGroundReflectance_Impl::isOctoberGroundReflectanceDefaulted() const { | |
| 148 | 4 | return isEmpty(OS_Site_GroundReflectanceFields::OctoberGroundReflectance); | |
| 149 | } | ||
| 150 | |||
| 151 | 4 | double SiteGroundReflectance_Impl::novemberGroundReflectance() const { | |
| 152 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Site_GroundReflectanceFields::NovemberGroundReflectance, true); |
| 153 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 154 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 155 | } | ||
| 156 | |||
| 157 | 4 | bool SiteGroundReflectance_Impl::isNovemberGroundReflectanceDefaulted() const { | |
| 158 | 4 | return isEmpty(OS_Site_GroundReflectanceFields::NovemberGroundReflectance); | |
| 159 | } | ||
| 160 | |||
| 161 | 4 | double SiteGroundReflectance_Impl::decemberGroundReflectance() const { | |
| 162 |
1/1✓ Branch 1 taken 4 times.
|
4 | boost::optional<double> value = getDouble(OS_Site_GroundReflectanceFields::DecemberGroundReflectance, true); |
| 163 |
1/3✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 4 not taken.
|
4 | OS_ASSERT(value); |
| 164 |
1/1✓ Branch 1 taken 4 times.
|
8 | return value.get(); |
| 165 | } | ||
| 166 | |||
| 167 | 4 | bool SiteGroundReflectance_Impl::isDecemberGroundReflectanceDefaulted() const { | |
| 168 | 4 | return isEmpty(OS_Site_GroundReflectanceFields::DecemberGroundReflectance); | |
| 169 | } | ||
| 170 | |||
| 171 | 2 | bool SiteGroundReflectance_Impl::setJanuaryGroundReflectance(double januaryGroundReflectance) { | |
| 172 | 2 | bool result = setDouble(OS_Site_GroundReflectanceFields::JanuaryGroundReflectance, januaryGroundReflectance); | |
| 173 | 2 | return result; | |
| 174 | } | ||
| 175 | |||
| 176 | 1 | void SiteGroundReflectance_Impl::resetJanuaryGroundReflectance() { | |
| 177 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Site_GroundReflectanceFields::JanuaryGroundReflectance, ""); |
| 178 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 179 | 1 | } | |
| 180 | |||
| 181 | 2 | bool SiteGroundReflectance_Impl::setFebruaryGroundReflectance(double februaryGroundReflectance) { | |
| 182 | 2 | bool result = setDouble(OS_Site_GroundReflectanceFields::FebruaryGroundReflectance, februaryGroundReflectance); | |
| 183 | 2 | return result; | |
| 184 | } | ||
| 185 | |||
| 186 | 1 | void SiteGroundReflectance_Impl::resetFebruaryGroundReflectance() { | |
| 187 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Site_GroundReflectanceFields::FebruaryGroundReflectance, ""); |
| 188 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 189 | 1 | } | |
| 190 | |||
| 191 | 2 | bool SiteGroundReflectance_Impl::setMarchGroundReflectance(double marchGroundReflectance) { | |
| 192 | 2 | bool result = setDouble(OS_Site_GroundReflectanceFields::MarchGroundReflectance, marchGroundReflectance); | |
| 193 | 2 | return result; | |
| 194 | } | ||
| 195 | |||
| 196 | 1 | void SiteGroundReflectance_Impl::resetMarchGroundReflectance() { | |
| 197 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Site_GroundReflectanceFields::MarchGroundReflectance, ""); |
| 198 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 199 | 1 | } | |
| 200 | |||
| 201 | 2 | bool SiteGroundReflectance_Impl::setAprilGroundReflectance(double aprilGroundReflectance) { | |
| 202 | 2 | bool result = setDouble(OS_Site_GroundReflectanceFields::AprilGroundReflectance, aprilGroundReflectance); | |
| 203 | 2 | return result; | |
| 204 | } | ||
| 205 | |||
| 206 | 1 | void SiteGroundReflectance_Impl::resetAprilGroundReflectance() { | |
| 207 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Site_GroundReflectanceFields::AprilGroundReflectance, ""); |
| 208 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 209 | 1 | } | |
| 210 | |||
| 211 | 2 | bool SiteGroundReflectance_Impl::setMayGroundReflectance(double mayGroundReflectance) { | |
| 212 | 2 | bool result = setDouble(OS_Site_GroundReflectanceFields::MayGroundReflectance, mayGroundReflectance); | |
| 213 | 2 | return result; | |
| 214 | } | ||
| 215 | |||
| 216 | 1 | void SiteGroundReflectance_Impl::resetMayGroundReflectance() { | |
| 217 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Site_GroundReflectanceFields::MayGroundReflectance, ""); |
| 218 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 219 | 1 | } | |
| 220 | |||
| 221 | 2 | bool SiteGroundReflectance_Impl::setJuneGroundReflectance(double juneGroundReflectance) { | |
| 222 | 2 | bool result = setDouble(OS_Site_GroundReflectanceFields::JuneGroundReflectance, juneGroundReflectance); | |
| 223 | 2 | return result; | |
| 224 | } | ||
| 225 | |||
| 226 | 1 | void SiteGroundReflectance_Impl::resetJuneGroundReflectance() { | |
| 227 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Site_GroundReflectanceFields::JuneGroundReflectance, ""); |
| 228 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 229 | 1 | } | |
| 230 | |||
| 231 | 2 | bool SiteGroundReflectance_Impl::setJulyGroundReflectance(double julyGroundReflectance) { | |
| 232 | 2 | bool result = setDouble(OS_Site_GroundReflectanceFields::JulyGroundReflectance, julyGroundReflectance); | |
| 233 | 2 | return result; | |
| 234 | } | ||
| 235 | |||
| 236 | 1 | void SiteGroundReflectance_Impl::resetJulyGroundReflectance() { | |
| 237 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Site_GroundReflectanceFields::JulyGroundReflectance, ""); |
| 238 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 239 | 1 | } | |
| 240 | |||
| 241 | 2 | bool SiteGroundReflectance_Impl::setAugustGroundReflectance(double augustGroundReflectance) { | |
| 242 | 2 | bool result = setDouble(OS_Site_GroundReflectanceFields::AugustGroundReflectance, augustGroundReflectance); | |
| 243 | 2 | return result; | |
| 244 | } | ||
| 245 | |||
| 246 | 1 | void SiteGroundReflectance_Impl::resetAugustGroundReflectance() { | |
| 247 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Site_GroundReflectanceFields::AugustGroundReflectance, ""); |
| 248 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 249 | 1 | } | |
| 250 | |||
| 251 | 2 | bool SiteGroundReflectance_Impl::setSeptemberGroundReflectance(double septemberGroundReflectance) { | |
| 252 | 2 | bool result = setDouble(OS_Site_GroundReflectanceFields::SeptemberGroundReflectance, septemberGroundReflectance); | |
| 253 | 2 | return result; | |
| 254 | } | ||
| 255 | |||
| 256 | 1 | void SiteGroundReflectance_Impl::resetSeptemberGroundReflectance() { | |
| 257 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Site_GroundReflectanceFields::SeptemberGroundReflectance, ""); |
| 258 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 259 | 1 | } | |
| 260 | |||
| 261 | 2 | bool SiteGroundReflectance_Impl::setOctoberGroundReflectance(double octoberGroundReflectance) { | |
| 262 | 2 | bool result = setDouble(OS_Site_GroundReflectanceFields::OctoberGroundReflectance, octoberGroundReflectance); | |
| 263 | 2 | return result; | |
| 264 | } | ||
| 265 | |||
| 266 | 1 | void SiteGroundReflectance_Impl::resetOctoberGroundReflectance() { | |
| 267 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Site_GroundReflectanceFields::OctoberGroundReflectance, ""); |
| 268 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 269 | 1 | } | |
| 270 | |||
| 271 | 2 | bool SiteGroundReflectance_Impl::setNovemberGroundReflectance(double novemberGroundReflectance) { | |
| 272 | 2 | bool result = setDouble(OS_Site_GroundReflectanceFields::NovemberGroundReflectance, novemberGroundReflectance); | |
| 273 | 2 | return result; | |
| 274 | } | ||
| 275 | |||
| 276 | 1 | void SiteGroundReflectance_Impl::resetNovemberGroundReflectance() { | |
| 277 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Site_GroundReflectanceFields::NovemberGroundReflectance, ""); |
| 278 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 279 | 1 | } | |
| 280 | |||
| 281 | 2 | bool SiteGroundReflectance_Impl::setDecemberGroundReflectance(double decemberGroundReflectance) { | |
| 282 | 2 | bool result = setDouble(OS_Site_GroundReflectanceFields::DecemberGroundReflectance, decemberGroundReflectance); | |
| 283 | 2 | return result; | |
| 284 | } | ||
| 285 | |||
| 286 | 1 | void SiteGroundReflectance_Impl::resetDecemberGroundReflectance() { | |
| 287 |
2/2✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
|
2 | bool result = setString(OS_Site_GroundReflectanceFields::DecemberGroundReflectance, ""); |
| 288 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | OS_ASSERT(result); |
| 289 | 1 | } | |
| 290 | |||
| 291 | } // namespace detail | ||
| 292 | |||
| 293 | 7699 | IddObjectType SiteGroundReflectance::iddObjectType() { | |
| 294 |
1/1✓ Branch 1 taken 7699 times.
|
7699 | IddObjectType result(IddObjectType::OS_Site_GroundReflectance); |
| 295 | 7699 | return result; | |
| 296 | } | ||
| 297 | |||
| 298 | 4 | double SiteGroundReflectance::januaryGroundReflectance() const { | |
| 299 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::SiteGroundReflectance_Impl>()->januaryGroundReflectance(); |
| 300 | } | ||
| 301 | |||
| 302 | 4 | bool SiteGroundReflectance::isJanuaryGroundReflectanceDefaulted() const { | |
| 303 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::SiteGroundReflectance_Impl>()->isJanuaryGroundReflectanceDefaulted(); |
| 304 | } | ||
| 305 | |||
| 306 | 4 | double SiteGroundReflectance::februaryGroundReflectance() const { | |
| 307 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::SiteGroundReflectance_Impl>()->februaryGroundReflectance(); |
| 308 | } | ||
| 309 | |||
| 310 | 4 | bool SiteGroundReflectance::isFebruaryGroundReflectanceDefaulted() const { | |
| 311 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::SiteGroundReflectance_Impl>()->isFebruaryGroundReflectanceDefaulted(); |
| 312 | } | ||
| 313 | |||
| 314 | 4 | double SiteGroundReflectance::marchGroundReflectance() const { | |
| 315 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::SiteGroundReflectance_Impl>()->marchGroundReflectance(); |
| 316 | } | ||
| 317 | |||
| 318 | 4 | bool SiteGroundReflectance::isMarchGroundReflectanceDefaulted() const { | |
| 319 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::SiteGroundReflectance_Impl>()->isMarchGroundReflectanceDefaulted(); |
| 320 | } | ||
| 321 | |||
| 322 | 4 | double SiteGroundReflectance::aprilGroundReflectance() const { | |
| 323 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::SiteGroundReflectance_Impl>()->aprilGroundReflectance(); |
| 324 | } | ||
| 325 | |||
| 326 | 4 | bool SiteGroundReflectance::isAprilGroundReflectanceDefaulted() const { | |
| 327 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::SiteGroundReflectance_Impl>()->isAprilGroundReflectanceDefaulted(); |
| 328 | } | ||
| 329 | |||
| 330 | 4 | double SiteGroundReflectance::mayGroundReflectance() const { | |
| 331 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::SiteGroundReflectance_Impl>()->mayGroundReflectance(); |
| 332 | } | ||
| 333 | |||
| 334 | 4 | bool SiteGroundReflectance::isMayGroundReflectanceDefaulted() const { | |
| 335 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::SiteGroundReflectance_Impl>()->isMayGroundReflectanceDefaulted(); |
| 336 | } | ||
| 337 | |||
| 338 | 4 | double SiteGroundReflectance::juneGroundReflectance() const { | |
| 339 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::SiteGroundReflectance_Impl>()->juneGroundReflectance(); |
| 340 | } | ||
| 341 | |||
| 342 | 4 | bool SiteGroundReflectance::isJuneGroundReflectanceDefaulted() const { | |
| 343 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::SiteGroundReflectance_Impl>()->isJuneGroundReflectanceDefaulted(); |
| 344 | } | ||
| 345 | |||
| 346 | 4 | double SiteGroundReflectance::julyGroundReflectance() const { | |
| 347 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::SiteGroundReflectance_Impl>()->julyGroundReflectance(); |
| 348 | } | ||
| 349 | |||
| 350 | 4 | bool SiteGroundReflectance::isJulyGroundReflectanceDefaulted() const { | |
| 351 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::SiteGroundReflectance_Impl>()->isJulyGroundReflectanceDefaulted(); |
| 352 | } | ||
| 353 | |||
| 354 | 4 | double SiteGroundReflectance::augustGroundReflectance() const { | |
| 355 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::SiteGroundReflectance_Impl>()->augustGroundReflectance(); |
| 356 | } | ||
| 357 | |||
| 358 | 4 | bool SiteGroundReflectance::isAugustGroundReflectanceDefaulted() const { | |
| 359 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::SiteGroundReflectance_Impl>()->isAugustGroundReflectanceDefaulted(); |
| 360 | } | ||
| 361 | |||
| 362 | 4 | double SiteGroundReflectance::septemberGroundReflectance() const { | |
| 363 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::SiteGroundReflectance_Impl>()->septemberGroundReflectance(); |
| 364 | } | ||
| 365 | |||
| 366 | 4 | bool SiteGroundReflectance::isSeptemberGroundReflectanceDefaulted() const { | |
| 367 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::SiteGroundReflectance_Impl>()->isSeptemberGroundReflectanceDefaulted(); |
| 368 | } | ||
| 369 | |||
| 370 | 4 | double SiteGroundReflectance::octoberGroundReflectance() const { | |
| 371 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::SiteGroundReflectance_Impl>()->octoberGroundReflectance(); |
| 372 | } | ||
| 373 | |||
| 374 | 4 | bool SiteGroundReflectance::isOctoberGroundReflectanceDefaulted() const { | |
| 375 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::SiteGroundReflectance_Impl>()->isOctoberGroundReflectanceDefaulted(); |
| 376 | } | ||
| 377 | |||
| 378 | 4 | double SiteGroundReflectance::novemberGroundReflectance() const { | |
| 379 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::SiteGroundReflectance_Impl>()->novemberGroundReflectance(); |
| 380 | } | ||
| 381 | |||
| 382 | 4 | bool SiteGroundReflectance::isNovemberGroundReflectanceDefaulted() const { | |
| 383 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::SiteGroundReflectance_Impl>()->isNovemberGroundReflectanceDefaulted(); |
| 384 | } | ||
| 385 | |||
| 386 | 4 | double SiteGroundReflectance::decemberGroundReflectance() const { | |
| 387 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::SiteGroundReflectance_Impl>()->decemberGroundReflectance(); |
| 388 | } | ||
| 389 | |||
| 390 | 4 | bool SiteGroundReflectance::isDecemberGroundReflectanceDefaulted() const { | |
| 391 |
1/1✓ Branch 3 taken 4 times.
|
4 | return getImpl<detail::SiteGroundReflectance_Impl>()->isDecemberGroundReflectanceDefaulted(); |
| 392 | } | ||
| 393 | |||
| 394 | 2 | bool SiteGroundReflectance::setJanuaryGroundReflectance(double januaryGroundReflectance) { | |
| 395 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::SiteGroundReflectance_Impl>()->setJanuaryGroundReflectance(januaryGroundReflectance); |
| 396 | } | ||
| 397 | |||
| 398 | 1 | void SiteGroundReflectance::resetJanuaryGroundReflectance() { | |
| 399 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::SiteGroundReflectance_Impl>()->resetJanuaryGroundReflectance(); |
| 400 | 1 | } | |
| 401 | |||
| 402 | 2 | bool SiteGroundReflectance::setFebruaryGroundReflectance(double februaryGroundReflectance) { | |
| 403 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::SiteGroundReflectance_Impl>()->setFebruaryGroundReflectance(februaryGroundReflectance); |
| 404 | } | ||
| 405 | |||
| 406 | 1 | void SiteGroundReflectance::resetFebruaryGroundReflectance() { | |
| 407 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::SiteGroundReflectance_Impl>()->resetFebruaryGroundReflectance(); |
| 408 | 1 | } | |
| 409 | |||
| 410 | 2 | bool SiteGroundReflectance::setMarchGroundReflectance(double marchGroundReflectance) { | |
| 411 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::SiteGroundReflectance_Impl>()->setMarchGroundReflectance(marchGroundReflectance); |
| 412 | } | ||
| 413 | |||
| 414 | 1 | void SiteGroundReflectance::resetMarchGroundReflectance() { | |
| 415 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::SiteGroundReflectance_Impl>()->resetMarchGroundReflectance(); |
| 416 | 1 | } | |
| 417 | |||
| 418 | 2 | bool SiteGroundReflectance::setAprilGroundReflectance(double aprilGroundReflectance) { | |
| 419 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::SiteGroundReflectance_Impl>()->setAprilGroundReflectance(aprilGroundReflectance); |
| 420 | } | ||
| 421 | |||
| 422 | 1 | void SiteGroundReflectance::resetAprilGroundReflectance() { | |
| 423 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::SiteGroundReflectance_Impl>()->resetAprilGroundReflectance(); |
| 424 | 1 | } | |
| 425 | |||
| 426 | 2 | bool SiteGroundReflectance::setMayGroundReflectance(double mayGroundReflectance) { | |
| 427 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::SiteGroundReflectance_Impl>()->setMayGroundReflectance(mayGroundReflectance); |
| 428 | } | ||
| 429 | |||
| 430 | 1 | void SiteGroundReflectance::resetMayGroundReflectance() { | |
| 431 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::SiteGroundReflectance_Impl>()->resetMayGroundReflectance(); |
| 432 | 1 | } | |
| 433 | |||
| 434 | 2 | bool SiteGroundReflectance::setJuneGroundReflectance(double juneGroundReflectance) { | |
| 435 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::SiteGroundReflectance_Impl>()->setJuneGroundReflectance(juneGroundReflectance); |
| 436 | } | ||
| 437 | |||
| 438 | 1 | void SiteGroundReflectance::resetJuneGroundReflectance() { | |
| 439 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::SiteGroundReflectance_Impl>()->resetJuneGroundReflectance(); |
| 440 | 1 | } | |
| 441 | |||
| 442 | 2 | bool SiteGroundReflectance::setJulyGroundReflectance(double julyGroundReflectance) { | |
| 443 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::SiteGroundReflectance_Impl>()->setJulyGroundReflectance(julyGroundReflectance); |
| 444 | } | ||
| 445 | |||
| 446 | 1 | void SiteGroundReflectance::resetJulyGroundReflectance() { | |
| 447 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::SiteGroundReflectance_Impl>()->resetJulyGroundReflectance(); |
| 448 | 1 | } | |
| 449 | |||
| 450 | 2 | bool SiteGroundReflectance::setAugustGroundReflectance(double augustGroundReflectance) { | |
| 451 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::SiteGroundReflectance_Impl>()->setAugustGroundReflectance(augustGroundReflectance); |
| 452 | } | ||
| 453 | |||
| 454 | 1 | void SiteGroundReflectance::resetAugustGroundReflectance() { | |
| 455 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::SiteGroundReflectance_Impl>()->resetAugustGroundReflectance(); |
| 456 | 1 | } | |
| 457 | |||
| 458 | 2 | bool SiteGroundReflectance::setSeptemberGroundReflectance(double septemberGroundReflectance) { | |
| 459 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::SiteGroundReflectance_Impl>()->setSeptemberGroundReflectance(septemberGroundReflectance); |
| 460 | } | ||
| 461 | |||
| 462 | 1 | void SiteGroundReflectance::resetSeptemberGroundReflectance() { | |
| 463 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::SiteGroundReflectance_Impl>()->resetSeptemberGroundReflectance(); |
| 464 | 1 | } | |
| 465 | |||
| 466 | 2 | bool SiteGroundReflectance::setOctoberGroundReflectance(double octoberGroundReflectance) { | |
| 467 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::SiteGroundReflectance_Impl>()->setOctoberGroundReflectance(octoberGroundReflectance); |
| 468 | } | ||
| 469 | |||
| 470 | 1 | void SiteGroundReflectance::resetOctoberGroundReflectance() { | |
| 471 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::SiteGroundReflectance_Impl>()->resetOctoberGroundReflectance(); |
| 472 | 1 | } | |
| 473 | |||
| 474 | 2 | bool SiteGroundReflectance::setNovemberGroundReflectance(double novemberGroundReflectance) { | |
| 475 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::SiteGroundReflectance_Impl>()->setNovemberGroundReflectance(novemberGroundReflectance); |
| 476 | } | ||
| 477 | |||
| 478 | 1 | void SiteGroundReflectance::resetNovemberGroundReflectance() { | |
| 479 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::SiteGroundReflectance_Impl>()->resetNovemberGroundReflectance(); |
| 480 | 1 | } | |
| 481 | |||
| 482 | 2 | bool SiteGroundReflectance::setDecemberGroundReflectance(double decemberGroundReflectance) { | |
| 483 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::SiteGroundReflectance_Impl>()->setDecemberGroundReflectance(decemberGroundReflectance); |
| 484 | } | ||
| 485 | |||
| 486 | 1 | void SiteGroundReflectance::resetDecemberGroundReflectance() { | |
| 487 |
1/1✓ Branch 3 taken 1 time.
|
1 | getImpl<detail::SiteGroundReflectance_Impl>()->resetDecemberGroundReflectance(); |
| 488 | 1 | } | |
| 489 | |||
| 490 | /// @cond | ||
| 491 |
1/1✓ Branch 3 taken 6 times.
|
6 | SiteGroundReflectance::SiteGroundReflectance(std::shared_ptr<detail::SiteGroundReflectance_Impl> impl) : ModelObject(std::move(impl)) {} |
| 492 | 4 | SiteGroundReflectance::SiteGroundReflectance(Model& model) : ModelObject(SiteGroundReflectance::iddObjectType(), model) {} | |
| 493 | |||
| 494 | /// @endcond | ||
| 495 | |||
| 496 | } // namespace model | ||
| 497 | } // namespace openstudio | ||
| 498 |