src/model/Facility.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 "Facility.hpp" | ||
| 7 | #include "Facility_Impl.hpp" | ||
| 8 | |||
| 9 | #include "Model.hpp" | ||
| 10 | #include "Model_Impl.hpp" | ||
| 11 | #include "Building.hpp" | ||
| 12 | #include "Building_Impl.hpp" | ||
| 13 | #include "LifeCycleCost.hpp" | ||
| 14 | #include "LifeCycleCost_Impl.hpp" | ||
| 15 | #include "ConstructionBase.hpp" | ||
| 16 | #include "ConstructionBase_Impl.hpp" | ||
| 17 | #include "ExteriorLights.hpp" | ||
| 18 | #include "ExteriorLights_Impl.hpp" | ||
| 19 | #include "ExteriorFuelEquipment.hpp" | ||
| 20 | #include "ExteriorFuelEquipment_Impl.hpp" | ||
| 21 | #include "ExteriorWaterEquipment.hpp" | ||
| 22 | #include "ExteriorWaterEquipment_Impl.hpp" | ||
| 23 | #include "LifeCycleCostParameters.hpp" | ||
| 24 | #include "LifeCycleCostParameters_Impl.hpp" | ||
| 25 | #include "OutputMeter.hpp" | ||
| 26 | #include "OutputMeter_Impl.hpp" | ||
| 27 | #include "PlanarSurface.hpp" | ||
| 28 | #include "PlanarSurface_Impl.hpp" | ||
| 29 | #include "Site.hpp" | ||
| 30 | #include "Site_Impl.hpp" | ||
| 31 | #include "UtilityBill.hpp" | ||
| 32 | #include "UtilityBill_Impl.hpp" | ||
| 33 | |||
| 34 | #include <utilities/idd/IddEnums.hxx> | ||
| 35 | |||
| 36 | #include "../utilities/core/Assert.hpp" | ||
| 37 | #include "../utilities/core/ContainersMove.hpp" | ||
| 38 | #include "../utilities/core/Compare.hpp" | ||
| 39 | #include "../utilities/core/Optional.hpp" | ||
| 40 | #include "../utilities/sql/SqlFile.hpp" | ||
| 41 | |||
| 42 | #include <algorithm> | ||
| 43 | |||
| 44 | using openstudio::Handle; | ||
| 45 | using openstudio::OptionalHandle; | ||
| 46 | using openstudio::HandleVector; | ||
| 47 | using openstudio::IdfObject; | ||
| 48 | using openstudio::WorkspaceObject; | ||
| 49 | using openstudio::OptionalWorkspaceObject; | ||
| 50 | using openstudio::WorkspaceObjectVector; | ||
| 51 | using openstudio::Workspace; | ||
| 52 | using openstudio::EndUses; | ||
| 53 | using openstudio::CalibrationResult; | ||
| 54 | |||
| 55 | namespace openstudio { | ||
| 56 | namespace model { | ||
| 57 | |||
| 58 | namespace detail { | ||
| 59 | |||
| 60 | 366 | Facility_Impl::Facility_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle) : ParentObject_Impl(idfObject, model, keepHandle) { | |
| 61 |
4/6✓ Branch 1 taken 366 times.
✓ Branch 4 taken 366 times.
✓ Branch 7 taken 366 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 366 times.
✗ Branch 13 not taken.
|
366 | OS_ASSERT(idfObject.iddObject().type() == Facility::iddObjectType()); |
| 62 | 366 | } | |
| 63 | |||
| 64 | 66 | Facility_Impl::Facility_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle) | |
| 65 | 66 | : ParentObject_Impl(other, model, keepHandle) { | |
| 66 |
4/6✓ Branch 1 taken 66 times.
✓ Branch 4 taken 66 times.
✓ Branch 7 taken 66 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 66 times.
✗ Branch 13 not taken.
|
66 | OS_ASSERT(other.iddObject().type() == Facility::iddObjectType()); |
| 67 | 66 | } | |
| 68 | |||
| 69 | 122 | Facility_Impl::Facility_Impl(const Facility_Impl& other, Model_Impl* model, bool keepHandle) : ParentObject_Impl(other, model, keepHandle) {} | |
| 70 | |||
| 71 | 1 | boost::optional<ParentObject> Facility_Impl::parent() const { | |
| 72 | 1 | return {}; | |
| 73 | } | ||
| 74 | |||
| 75 | 2 | std::vector<ModelObject> Facility_Impl::children() const { | |
| 76 | 2 | std::vector<ModelObject> result; | |
| 77 | // building | ||
| 78 |
1/1✓ Branch 1 taken 2 times.
|
2 | OptionalBuilding building = this->building(); |
| 79 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
|
2 | if (building) { |
| 80 | ✗ | result.push_back(*building); | |
| 81 | } | ||
| 82 | |||
| 83 |
5/5✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
✓ Branch 7 taken 2 times.
✓ Branch 10 taken 2 times.
✓ Branch 13 taken 2 times.
|
4 | return concat<ModelObject>(result, this->meters(), this->exteriorLights(), this->exteriorFuelEquipments(), this->exteriorWaterEquipments()); |
| 84 | 2 | } | |
| 85 | |||
| 86 | ✗ | std::vector<IddObjectType> Facility_Impl::allowableChildTypes() const { | |
| 87 | ✗ | return {IddObjectType::OS_Building}; | |
| 88 | } | ||
| 89 | |||
| 90 | 1 | const std::vector<std::string>& Facility_Impl::outputVariableNames() const { | |
| 91 |
2/4✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
|
1 | static const std::vector<std::string> result; |
| 92 | 1 | return result; | |
| 93 | } | ||
| 94 | |||
| 95 | 1 | IddObjectType Facility_Impl::iddObjectType() const { | |
| 96 | 1 | return Facility::iddObjectType(); | |
| 97 | } | ||
| 98 | |||
| 99 | 2 | boost::optional<Building> Facility_Impl::building() const { | |
| 100 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | return this->model().building(); |
| 101 | } | ||
| 102 | |||
| 103 | /// get meter requests for the facility | ||
| 104 | 5 | std::vector<OutputMeter> Facility_Impl::meters() const { | |
| 105 | 1 | auto filterOutMeter = [](const auto& meter) { | |
| 106 |
1/1✓ Branch 1 taken 1 time.
|
1 | auto instalLocType_ = meter.installLocationType(); |
| 107 |
4/6✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
✓ Branch 3 taken 1 time.
✓ Branch 6 taken 1 time.
✗ Branch 8 not taken.
✓ Branch 9 taken 1 time.
|
2 | return instalLocType_ && (InstallLocationType::Facility != instalLocType_.get().value()); |
| 108 | 1 | }; | |
| 109 | |||
| 110 |
2/2✓ Branch 1 taken 5 times.
✓ Branch 4 taken 5 times.
|
5 | OutputMeterVector result = this->model().getConcreteModelObjects<OutputMeter>(); |
| 111 |
2/2✓ Branch 5 taken 5 times.
✓ Branch 9 taken 5 times.
|
5 | result.erase(std::remove_if(result.begin(), result.end(), filterOutMeter), result.end()); |
| 112 | 10 | return result; | |
| 113 | ✗ | } | |
| 114 | |||
| 115 | 2 | boost::optional<OutputMeter> Facility_Impl::getMeterByFuelType(const FuelType& fuelType, const std::string& reportingFrequency, | |
| 116 | const boost::optional<EndUseType>& endUseType, | ||
| 117 | const boost::optional<std::string>& specificEndUse) const { | ||
| 118 | 2 | OptionalOutputMeter result; | |
| 119 |
3/3✓ Branch 1 taken 2 times.
✓ Branch 8 taken 1 time.
✓ Branch 9 taken 2 times.
|
3 | for (const OutputMeter& meter : this->meters()) { |
| 120 |
8/17✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✗ Branch 5 not taken.
✓ Branch 7 taken 1 time.
✓ Branch 10 taken 1 time.
✓ Branch 12 taken 1 time.
✗ Branch 13 not taken.
✓ Branch 14 taken 1 time.
✗ Branch 15 not taken.
✓ Branch 17 taken 1 time.
✗ Branch 18 not taken.
✓ Branch 20 taken 1 time.
✗ Branch 21 not taken.
✗ Branch 22 not taken.
✗ Branch 23 not taken.
✗ Branch 25 not taken.
✗ Branch 26 not taken.
|
2 | if (meter.fuelType() && (meter.fuelType() == fuelType)) { |
| 121 |
3/4✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 8 not taken.
|
1 | if (istringEqual(meter.reportingFrequency(), reportingFrequency)) { |
| 122 |
1/1✓ Branch 1 taken 1 time.
|
1 | OptionalEndUseType meterEndUseType = meter.endUseType(); |
| 123 |
3/14✓ Branch 1 taken 1 time.
✗ Branch 2 not taken.
✗ Branch 4 not taken.
✓ Branch 5 taken 1 time.
✗ Branch 6 not taken.
✗ Branch 7 not taken.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✗ Branch 11 not taken.
✗ Branch 14 not taken.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
✓ Branch 19 taken 1 time.
✗ Branch 20 not taken.
|
1 | if ((!endUseType && !meterEndUseType) || (endUseType && meterEndUseType && (*meterEndUseType == *endUseType))) { |
| 124 |
1/1✓ Branch 1 taken 1 time.
|
1 | OptionalString meterSpecificEndUse = meter.specificEndUse(); |
| 125 |
1/2✗ Branch 2 not taken.
✓ Branch 3 taken 1 time.
|
2 | if ((!specificEndUse && !meterSpecificEndUse) |
| 126 |
2/13✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
✗ Branch 7 not taken.
✗ Branch 10 not taken.
✗ Branch 13 not taken.
✗ Branch 15 not taken.
✗ Branch 16 not taken.
✓ Branch 17 taken 1 time.
✗ Branch 18 not taken.
|
2 | || (specificEndUse && meterSpecificEndUse && istringEqual(*meterSpecificEndUse, *specificEndUse))) { |
| 127 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
|
1 | if (result) { |
| 128 | ✗ | LOG(Warn, "Found duplicate meters: " << result->name() << " and " << meter.name() << "."); | |
| 129 | } else { | ||
| 130 |
1/1✓ Branch 1 taken 1 time.
|
1 | result = meter; |
| 131 | } | ||
| 132 | } | ||
| 133 | 1 | } | |
| 134 | 1 | } | |
| 135 | } | ||
| 136 | 2 | } | |
| 137 | 2 | return result; | |
| 138 | ✗ | } | |
| 139 | |||
| 140 | 2 | std::vector<ExteriorLights> Facility_Impl::exteriorLights() const { | |
| 141 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | return model().getConcreteModelObjects<ExteriorLights>(); |
| 142 | } | ||
| 143 | |||
| 144 | 2 | std::vector<ExteriorFuelEquipment> Facility_Impl::exteriorFuelEquipments() const { | |
| 145 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | return model().getConcreteModelObjects<ExteriorFuelEquipment>(); |
| 146 | } | ||
| 147 | |||
| 148 | 2 | std::vector<ExteriorWaterEquipment> Facility_Impl::exteriorWaterEquipments() const { | |
| 149 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | return model().getConcreteModelObjects<ExteriorWaterEquipment>(); |
| 150 | } | ||
| 151 | |||
| 152 | 2 | OptionalDouble Facility_Impl::totalSiteEnergy() const { | |
| 153 |
2/2✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
|
2 | OptionalSqlFile mySqlFile = model().sqlFile(); |
| 154 |
2/8✗ Branch 0 not taken.
✓ Branch 1 taken 2 times.
✗ Branch 3 not taken.
✗ Branch 6 not taken.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✗ Branch 10 not taken.
✓ Branch 11 taken 2 times.
|
2 | if (mySqlFile && mySqlFile->connectionOpen()) { |
| 155 | ✗ | return mySqlFile->totalSiteEnergy(); | |
| 156 | } | ||
| 157 | 2 | return {}; | |
| 158 | 2 | } | |
| 159 | |||
| 160 | ✗ | OptionalDouble Facility_Impl::netSiteEnergy() const { | |
| 161 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 162 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 163 | ✗ | return mySqlFile->netSiteEnergy(); | |
| 164 | } | ||
| 165 | ✗ | return {}; | |
| 166 | ✗ | } | |
| 167 | |||
| 168 | ✗ | OptionalDouble Facility_Impl::totalSourceEnergy() const { | |
| 169 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 170 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 171 | ✗ | return mySqlFile->totalSourceEnergy(); | |
| 172 | } | ||
| 173 | ✗ | return {}; | |
| 174 | ✗ | } | |
| 175 | |||
| 176 | ✗ | OptionalDouble Facility_Impl::netSourceEnergy() const { | |
| 177 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 178 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 179 | ✗ | return mySqlFile->netSourceEnergy(); | |
| 180 | } | ||
| 181 | ✗ | return {}; | |
| 182 | ✗ | } | |
| 183 | |||
| 184 | // pass in "Electric", "NaturalGas", or "Other" | ||
| 185 | ✗ | OptionalDouble Facility_Impl::annualTotalCost(const FuelType& fuel) const { | |
| 186 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 187 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 188 | ✗ | return mySqlFile->annualTotalCost(fuel); | |
| 189 | } | ||
| 190 | ✗ | return {}; | |
| 191 | ✗ | } | |
| 192 | |||
| 193 | ✗ | OptionalDouble Facility_Impl::annualTotalCostPerBldgArea(const FuelType& fuel) const { | |
| 194 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 195 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 196 | ✗ | return mySqlFile->annualTotalCostPerBldgArea(fuel); | |
| 197 | } | ||
| 198 | ✗ | return {}; | |
| 199 | ✗ | } | |
| 200 | |||
| 201 | ✗ | OptionalDouble Facility_Impl::annualTotalCostPerNetConditionedBldgArea(const FuelType& fuel) const { | |
| 202 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 203 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 204 | ✗ | return mySqlFile->annualTotalCostPerNetConditionedBldgArea(fuel); | |
| 205 | } | ||
| 206 | |||
| 207 | ✗ | return {}; | |
| 208 | ✗ | } | |
| 209 | |||
| 210 | ✗ | boost::optional<double> Facility_Impl::annualTotalUtilityCost() const { | |
| 211 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 212 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 213 | ✗ | return mySqlFile->annualTotalUtilityCost(); | |
| 214 | } | ||
| 215 | ✗ | return {}; | |
| 216 | ✗ | } | |
| 217 | |||
| 218 | ✗ | boost::optional<double> Facility_Impl::annualElectricTotalCost() const { | |
| 219 | ✗ | return annualTotalCost(FuelType::Electricity); | |
| 220 | } | ||
| 221 | |||
| 222 | ✗ | boost::optional<double> Facility_Impl::annualGasTotalCost() const { | |
| 223 | ✗ | return annualTotalCost(FuelType::Gas); | |
| 224 | } | ||
| 225 | |||
| 226 | ✗ | boost::optional<double> Facility_Impl::annualDistrictCoolingTotalCost() const { | |
| 227 | ✗ | return annualTotalCost(FuelType::DistrictCooling); | |
| 228 | } | ||
| 229 | |||
| 230 | ✗ | boost::optional<double> Facility_Impl::annualDistrictHeatingTotalCost() const { | |
| 231 | ✗ | return annualTotalCost(FuelType::DistrictHeating); | |
| 232 | } | ||
| 233 | |||
| 234 | ✗ | boost::optional<double> Facility_Impl::annualWaterTotalCost() const { | |
| 235 | ✗ | return annualTotalCost(FuelType::Water); | |
| 236 | } | ||
| 237 | |||
| 238 | 1 | OptionalDouble Facility_Impl::economicsCapitalCost() const { | |
| 239 | 1 | OptionalDouble result; | |
| 240 | 1 | return result; | |
| 241 | } | ||
| 242 | |||
| 243 | ✗ | OptionalDouble Facility_Impl::economicsEnergyCost() const { | |
| 244 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 245 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 246 | ✗ | return mySqlFile->economicsEnergyCost(); | |
| 247 | } | ||
| 248 | ✗ | return {}; | |
| 249 | ✗ | } | |
| 250 | |||
| 251 | ✗ | OptionalDouble Facility_Impl::economicsVirtualRateGas() const { | |
| 252 | ✗ | OptionalDouble result; | |
| 253 | ✗ | return result; | |
| 254 | } | ||
| 255 | |||
| 256 | ✗ | OptionalDouble Facility_Impl::economicsVirtualRateElec() const { | |
| 257 | ✗ | OptionalDouble result; | |
| 258 | ✗ | return result; | |
| 259 | } | ||
| 260 | |||
| 261 | ✗ | OptionalDouble Facility_Impl::economicsVirtualRateCombined() const { | |
| 262 | ✗ | OptionalDouble result; | |
| 263 | ✗ | return result; | |
| 264 | } | ||
| 265 | |||
| 266 | ✗ | OptionalDouble Facility_Impl::getElecOrGasUse(bool bGetGas) const { | |
| 267 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 268 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 269 | ✗ | return mySqlFile->getElecOrGasUse(bGetGas); | |
| 270 | } | ||
| 271 | ✗ | return {}; | |
| 272 | ✗ | } | |
| 273 | |||
| 274 | ✗ | OptionalDouble Facility_Impl::getElecOrGasCost(bool bGetGas) const { | |
| 275 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 276 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 277 | ✗ | return mySqlFile->getElecOrGasCost(bGetGas); | |
| 278 | } | ||
| 279 | ✗ | return {}; | |
| 280 | ✗ | } | |
| 281 | |||
| 282 | ✗ | OptionalDouble Facility_Impl::gasUse() const { | |
| 283 | ✗ | return getElecOrGasUse(); | |
| 284 | } | ||
| 285 | |||
| 286 | ✗ | OptionalDouble Facility_Impl::gasCost() const { | |
| 287 | ✗ | return getElecOrGasCost(); | |
| 288 | } | ||
| 289 | |||
| 290 | ✗ | OptionalDouble Facility_Impl::elecUse() const { | |
| 291 | ✗ | return getElecOrGasUse(false); | |
| 292 | } | ||
| 293 | |||
| 294 | ✗ | OptionalDouble Facility_Impl::elecCost() const { | |
| 295 | ✗ | return getElecOrGasCost(false); | |
| 296 | } | ||
| 297 | |||
| 298 | 1 | OptionalDouble Facility_Impl::economicsTLCC() const { | |
| 299 | 1 | OptionalDouble result; | |
| 300 | 1 | return result; | |
| 301 | } | ||
| 302 | |||
| 303 | ✗ | OptionalDouble Facility_Impl::economicsSPB() const { | |
| 304 | ✗ | OptionalDouble result; | |
| 305 | ✗ | return result; | |
| 306 | } | ||
| 307 | |||
| 308 | ✗ | OptionalDouble Facility_Impl::economicsDPB() const { | |
| 309 | ✗ | OptionalDouble result; | |
| 310 | ✗ | return result; | |
| 311 | } | ||
| 312 | |||
| 313 | ✗ | OptionalDouble Facility_Impl::economicsNPV() const { | |
| 314 | ✗ | OptionalDouble result; | |
| 315 | ✗ | return result; | |
| 316 | } | ||
| 317 | |||
| 318 | ✗ | OptionalDouble Facility_Impl::economicsIRR() const { | |
| 319 | ✗ | OptionalDouble result; | |
| 320 | ✗ | return result; | |
| 321 | } | ||
| 322 | |||
| 323 | ✗ | OptionalDouble Facility_Impl::electricityHeating() const { | |
| 324 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 325 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 326 | ✗ | return mySqlFile->electricityHeating(); | |
| 327 | } | ||
| 328 | ✗ | return {}; | |
| 329 | ✗ | } | |
| 330 | |||
| 331 | ✗ | OptionalDouble Facility_Impl::electricityCooling() const { | |
| 332 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 333 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 334 | ✗ | return mySqlFile->electricityCooling(); | |
| 335 | } | ||
| 336 | ✗ | return {}; | |
| 337 | ✗ | } | |
| 338 | |||
| 339 | ✗ | OptionalDouble Facility_Impl::electricityInteriorLighting() const { | |
| 340 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 341 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 342 | ✗ | return mySqlFile->electricityInteriorLighting(); | |
| 343 | } | ||
| 344 | ✗ | return {}; | |
| 345 | ✗ | } | |
| 346 | |||
| 347 | ✗ | OptionalDouble Facility_Impl::electricityExteriorLighting() const { | |
| 348 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 349 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 350 | ✗ | return mySqlFile->electricityExteriorLighting(); | |
| 351 | } | ||
| 352 | ✗ | return {}; | |
| 353 | ✗ | } | |
| 354 | |||
| 355 | ✗ | OptionalDouble Facility_Impl::electricityInteriorEquipment() const { | |
| 356 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 357 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 358 | ✗ | return mySqlFile->electricityInteriorEquipment(); | |
| 359 | } | ||
| 360 | ✗ | return {}; | |
| 361 | ✗ | } | |
| 362 | |||
| 363 | ✗ | OptionalDouble Facility_Impl::electricityExteriorEquipment() const { | |
| 364 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 365 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 366 | ✗ | return mySqlFile->electricityExteriorEquipment(); | |
| 367 | } | ||
| 368 | ✗ | return {}; | |
| 369 | ✗ | } | |
| 370 | |||
| 371 | ✗ | OptionalDouble Facility_Impl::electricityFans() const { | |
| 372 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 373 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 374 | ✗ | return mySqlFile->electricityFans(); | |
| 375 | } | ||
| 376 | ✗ | return {}; | |
| 377 | ✗ | } | |
| 378 | |||
| 379 | ✗ | OptionalDouble Facility_Impl::electricityPumps() const { | |
| 380 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 381 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 382 | ✗ | return mySqlFile->electricityPumps(); | |
| 383 | } | ||
| 384 | ✗ | return {}; | |
| 385 | ✗ | } | |
| 386 | |||
| 387 | ✗ | OptionalDouble Facility_Impl::electricityHeatRejection() const { | |
| 388 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 389 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 390 | ✗ | return mySqlFile->electricityHeatRejection(); | |
| 391 | } | ||
| 392 | ✗ | return {}; | |
| 393 | ✗ | } | |
| 394 | |||
| 395 | ✗ | OptionalDouble Facility_Impl::electricityHumidification() const { | |
| 396 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 397 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 398 | ✗ | return mySqlFile->electricityHumidification(); | |
| 399 | } | ||
| 400 | ✗ | return {}; | |
| 401 | ✗ | } | |
| 402 | |||
| 403 | ✗ | OptionalDouble Facility_Impl::electricityHeatRecovery() const { | |
| 404 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 405 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 406 | ✗ | return mySqlFile->electricityHeatRecovery(); | |
| 407 | } | ||
| 408 | ✗ | return {}; | |
| 409 | ✗ | } | |
| 410 | |||
| 411 | ✗ | OptionalDouble Facility_Impl::electricityWaterSystems() const { | |
| 412 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 413 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 414 | ✗ | return mySqlFile->electricityWaterSystems(); | |
| 415 | } | ||
| 416 | ✗ | return {}; | |
| 417 | ✗ | } | |
| 418 | |||
| 419 | ✗ | OptionalDouble Facility_Impl::electricityRefrigeration() const { | |
| 420 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 421 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 422 | ✗ | return mySqlFile->electricityRefrigeration(); | |
| 423 | } | ||
| 424 | ✗ | return {}; | |
| 425 | ✗ | } | |
| 426 | |||
| 427 | ✗ | OptionalDouble Facility_Impl::electricityGenerators() const { | |
| 428 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 429 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 430 | ✗ | return mySqlFile->electricityGenerators(); | |
| 431 | } | ||
| 432 | ✗ | return {}; | |
| 433 | ✗ | } | |
| 434 | |||
| 435 | ✗ | OptionalDouble Facility_Impl::electricityTotalEndUses() const { | |
| 436 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 437 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 438 | ✗ | return mySqlFile->electricityTotalEndUses(); | |
| 439 | } | ||
| 440 | ✗ | return {}; | |
| 441 | ✗ | } | |
| 442 | |||
| 443 | ✗ | OptionalDouble Facility_Impl::naturalGasHeating() const { | |
| 444 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 445 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 446 | ✗ | return mySqlFile->naturalGasHeating(); | |
| 447 | } | ||
| 448 | ✗ | return {}; | |
| 449 | ✗ | } | |
| 450 | |||
| 451 | ✗ | OptionalDouble Facility_Impl::naturalGasCooling() const { | |
| 452 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 453 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 454 | ✗ | return mySqlFile->naturalGasCooling(); | |
| 455 | } | ||
| 456 | ✗ | return {}; | |
| 457 | ✗ | } | |
| 458 | |||
| 459 | ✗ | OptionalDouble Facility_Impl::naturalGasInteriorLighting() const { | |
| 460 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 461 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 462 | ✗ | return mySqlFile->naturalGasInteriorLighting(); | |
| 463 | } | ||
| 464 | ✗ | return {}; | |
| 465 | ✗ | } | |
| 466 | |||
| 467 | ✗ | OptionalDouble Facility_Impl::naturalGasExteriorLighting() const { | |
| 468 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 469 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 470 | ✗ | return mySqlFile->naturalGasExteriorLighting(); | |
| 471 | } | ||
| 472 | ✗ | return {}; | |
| 473 | ✗ | } | |
| 474 | |||
| 475 | ✗ | OptionalDouble Facility_Impl::naturalGasInteriorEquipment() const { | |
| 476 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 477 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 478 | ✗ | return mySqlFile->naturalGasInteriorEquipment(); | |
| 479 | } | ||
| 480 | ✗ | return {}; | |
| 481 | ✗ | } | |
| 482 | |||
| 483 | ✗ | OptionalDouble Facility_Impl::naturalGasExteriorEquipment() const { | |
| 484 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 485 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 486 | ✗ | return mySqlFile->naturalGasExteriorEquipment(); | |
| 487 | } | ||
| 488 | ✗ | return {}; | |
| 489 | ✗ | } | |
| 490 | |||
| 491 | ✗ | OptionalDouble Facility_Impl::naturalGasFans() const { | |
| 492 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 493 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 494 | ✗ | return mySqlFile->naturalGasFans(); | |
| 495 | } | ||
| 496 | ✗ | return {}; | |
| 497 | ✗ | } | |
| 498 | |||
| 499 | ✗ | OptionalDouble Facility_Impl::naturalGasPumps() const { | |
| 500 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 501 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 502 | ✗ | return mySqlFile->naturalGasPumps(); | |
| 503 | } | ||
| 504 | ✗ | return {}; | |
| 505 | ✗ | } | |
| 506 | |||
| 507 | ✗ | OptionalDouble Facility_Impl::naturalGasHeatRejection() const { | |
| 508 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 509 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 510 | ✗ | return mySqlFile->naturalGasHeatRejection(); | |
| 511 | } | ||
| 512 | ✗ | return {}; | |
| 513 | ✗ | } | |
| 514 | |||
| 515 | ✗ | OptionalDouble Facility_Impl::naturalGasHumidification() const { | |
| 516 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 517 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 518 | ✗ | return mySqlFile->naturalGasHumidification(); | |
| 519 | } | ||
| 520 | ✗ | return {}; | |
| 521 | ✗ | } | |
| 522 | |||
| 523 | ✗ | OptionalDouble Facility_Impl::naturalGasHeatRecovery() const { | |
| 524 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 525 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 526 | ✗ | return mySqlFile->naturalGasHeatRecovery(); | |
| 527 | } | ||
| 528 | ✗ | return {}; | |
| 529 | ✗ | } | |
| 530 | |||
| 531 | ✗ | OptionalDouble Facility_Impl::naturalGasWaterSystems() const { | |
| 532 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 533 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 534 | ✗ | return mySqlFile->naturalGasWaterSystems(); | |
| 535 | } | ||
| 536 | ✗ | return {}; | |
| 537 | ✗ | } | |
| 538 | |||
| 539 | ✗ | OptionalDouble Facility_Impl::naturalGasRefrigeration() const { | |
| 540 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 541 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 542 | ✗ | return mySqlFile->naturalGasRefrigeration(); | |
| 543 | } | ||
| 544 | ✗ | return {}; | |
| 545 | ✗ | } | |
| 546 | |||
| 547 | ✗ | OptionalDouble Facility_Impl::naturalGasGenerators() const { | |
| 548 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 549 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 550 | ✗ | return mySqlFile->naturalGasGenerators(); | |
| 551 | } | ||
| 552 | ✗ | return {}; | |
| 553 | ✗ | } | |
| 554 | |||
| 555 | ✗ | OptionalDouble Facility_Impl::naturalGasTotalEndUses() const { | |
| 556 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 557 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 558 | ✗ | return mySqlFile->naturalGasTotalEndUses(); | |
| 559 | } | ||
| 560 | ✗ | return {}; | |
| 561 | ✗ | } | |
| 562 | |||
| 563 | // Gasoline | ||
| 564 | ✗ | OptionalDouble Facility_Impl::gasolineHeating() const { | |
| 565 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 566 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 567 | ✗ | return mySqlFile->gasolineHeating(); | |
| 568 | } | ||
| 569 | ✗ | return {}; | |
| 570 | ✗ | } | |
| 571 | |||
| 572 | ✗ | OptionalDouble Facility_Impl::gasolineCooling() const { | |
| 573 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 574 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 575 | ✗ | return mySqlFile->gasolineCooling(); | |
| 576 | } | ||
| 577 | ✗ | return {}; | |
| 578 | ✗ | } | |
| 579 | |||
| 580 | ✗ | OptionalDouble Facility_Impl::gasolineInteriorLighting() const { | |
| 581 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 582 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 583 | ✗ | return mySqlFile->gasolineInteriorLighting(); | |
| 584 | } | ||
| 585 | ✗ | return {}; | |
| 586 | ✗ | } | |
| 587 | |||
| 588 | ✗ | OptionalDouble Facility_Impl::gasolineExteriorLighting() const { | |
| 589 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 590 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 591 | ✗ | return mySqlFile->gasolineExteriorLighting(); | |
| 592 | } | ||
| 593 | ✗ | return {}; | |
| 594 | ✗ | } | |
| 595 | |||
| 596 | ✗ | OptionalDouble Facility_Impl::gasolineInteriorEquipment() const { | |
| 597 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 598 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 599 | ✗ | return mySqlFile->gasolineInteriorEquipment(); | |
| 600 | } | ||
| 601 | ✗ | return {}; | |
| 602 | ✗ | } | |
| 603 | |||
| 604 | ✗ | OptionalDouble Facility_Impl::gasolineExteriorEquipment() const { | |
| 605 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 606 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 607 | ✗ | return mySqlFile->gasolineExteriorEquipment(); | |
| 608 | } | ||
| 609 | ✗ | return {}; | |
| 610 | ✗ | } | |
| 611 | |||
| 612 | ✗ | OptionalDouble Facility_Impl::gasolineFans() const { | |
| 613 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 614 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 615 | ✗ | return mySqlFile->gasolineFans(); | |
| 616 | } | ||
| 617 | ✗ | return {}; | |
| 618 | ✗ | } | |
| 619 | |||
| 620 | ✗ | OptionalDouble Facility_Impl::gasolinePumps() const { | |
| 621 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 622 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 623 | ✗ | return mySqlFile->gasolinePumps(); | |
| 624 | } | ||
| 625 | ✗ | return {}; | |
| 626 | ✗ | } | |
| 627 | |||
| 628 | ✗ | OptionalDouble Facility_Impl::gasolineHeatRejection() const { | |
| 629 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 630 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 631 | ✗ | return mySqlFile->gasolineHeatRejection(); | |
| 632 | } | ||
| 633 | ✗ | return {}; | |
| 634 | ✗ | } | |
| 635 | |||
| 636 | ✗ | OptionalDouble Facility_Impl::gasolineHumidification() const { | |
| 637 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 638 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 639 | ✗ | return mySqlFile->gasolineHumidification(); | |
| 640 | } | ||
| 641 | ✗ | return {}; | |
| 642 | ✗ | } | |
| 643 | |||
| 644 | ✗ | OptionalDouble Facility_Impl::gasolineHeatRecovery() const { | |
| 645 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 646 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 647 | ✗ | return mySqlFile->gasolineHeatRecovery(); | |
| 648 | } | ||
| 649 | ✗ | return {}; | |
| 650 | ✗ | } | |
| 651 | |||
| 652 | ✗ | OptionalDouble Facility_Impl::gasolineWaterSystems() const { | |
| 653 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 654 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 655 | ✗ | return mySqlFile->gasolineWaterSystems(); | |
| 656 | } | ||
| 657 | ✗ | return {}; | |
| 658 | ✗ | } | |
| 659 | |||
| 660 | ✗ | OptionalDouble Facility_Impl::gasolineRefrigeration() const { | |
| 661 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 662 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 663 | ✗ | return mySqlFile->gasolineRefrigeration(); | |
| 664 | } | ||
| 665 | ✗ | return {}; | |
| 666 | ✗ | } | |
| 667 | |||
| 668 | ✗ | OptionalDouble Facility_Impl::gasolineGenerators() const { | |
| 669 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 670 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 671 | ✗ | return mySqlFile->gasolineGenerators(); | |
| 672 | } | ||
| 673 | ✗ | return {}; | |
| 674 | ✗ | } | |
| 675 | |||
| 676 | ✗ | OptionalDouble Facility_Impl::gasolineTotalEndUses() const { | |
| 677 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 678 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 679 | ✗ | return mySqlFile->gasolineTotalEndUses(); | |
| 680 | } | ||
| 681 | ✗ | return OptionalDouble(); | |
| 682 | ✗ | } | |
| 683 | |||
| 684 | // Diesel | ||
| 685 | ✗ | OptionalDouble Facility_Impl::dieselHeating() const { | |
| 686 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 687 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 688 | ✗ | return mySqlFile->dieselHeating(); | |
| 689 | } | ||
| 690 | ✗ | return OptionalDouble(); | |
| 691 | ✗ | } | |
| 692 | |||
| 693 | ✗ | OptionalDouble Facility_Impl::dieselCooling() const { | |
| 694 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 695 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 696 | ✗ | return mySqlFile->dieselCooling(); | |
| 697 | } | ||
| 698 | ✗ | return OptionalDouble(); | |
| 699 | ✗ | } | |
| 700 | |||
| 701 | ✗ | OptionalDouble Facility_Impl::dieselInteriorLighting() const { | |
| 702 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 703 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 704 | ✗ | return mySqlFile->dieselInteriorLighting(); | |
| 705 | } | ||
| 706 | ✗ | return OptionalDouble(); | |
| 707 | ✗ | } | |
| 708 | |||
| 709 | ✗ | OptionalDouble Facility_Impl::dieselExteriorLighting() const { | |
| 710 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 711 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 712 | ✗ | return mySqlFile->dieselExteriorLighting(); | |
| 713 | } | ||
| 714 | ✗ | return OptionalDouble(); | |
| 715 | ✗ | } | |
| 716 | |||
| 717 | ✗ | OptionalDouble Facility_Impl::dieselInteriorEquipment() const { | |
| 718 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 719 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 720 | ✗ | return mySqlFile->dieselInteriorEquipment(); | |
| 721 | } | ||
| 722 | ✗ | return OptionalDouble(); | |
| 723 | ✗ | } | |
| 724 | |||
| 725 | ✗ | OptionalDouble Facility_Impl::dieselExteriorEquipment() const { | |
| 726 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 727 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 728 | ✗ | return mySqlFile->dieselExteriorEquipment(); | |
| 729 | } | ||
| 730 | ✗ | return OptionalDouble(); | |
| 731 | ✗ | } | |
| 732 | |||
| 733 | ✗ | OptionalDouble Facility_Impl::dieselFans() const { | |
| 734 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 735 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 736 | ✗ | return mySqlFile->dieselFans(); | |
| 737 | } | ||
| 738 | ✗ | return OptionalDouble(); | |
| 739 | ✗ | } | |
| 740 | |||
| 741 | ✗ | OptionalDouble Facility_Impl::dieselPumps() const { | |
| 742 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 743 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 744 | ✗ | return mySqlFile->dieselPumps(); | |
| 745 | } | ||
| 746 | ✗ | return OptionalDouble(); | |
| 747 | ✗ | } | |
| 748 | |||
| 749 | ✗ | OptionalDouble Facility_Impl::dieselHeatRejection() const { | |
| 750 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 751 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 752 | ✗ | return mySqlFile->dieselHeatRejection(); | |
| 753 | } | ||
| 754 | ✗ | return OptionalDouble(); | |
| 755 | ✗ | } | |
| 756 | |||
| 757 | ✗ | OptionalDouble Facility_Impl::dieselHumidification() const { | |
| 758 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 759 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 760 | ✗ | return mySqlFile->dieselHumidification(); | |
| 761 | } | ||
| 762 | ✗ | return OptionalDouble(); | |
| 763 | ✗ | } | |
| 764 | |||
| 765 | ✗ | OptionalDouble Facility_Impl::dieselHeatRecovery() const { | |
| 766 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 767 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 768 | ✗ | return mySqlFile->dieselHeatRecovery(); | |
| 769 | } | ||
| 770 | ✗ | return OptionalDouble(); | |
| 771 | ✗ | } | |
| 772 | |||
| 773 | ✗ | OptionalDouble Facility_Impl::dieselWaterSystems() const { | |
| 774 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 775 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 776 | ✗ | return mySqlFile->dieselWaterSystems(); | |
| 777 | } | ||
| 778 | ✗ | return OptionalDouble(); | |
| 779 | ✗ | } | |
| 780 | |||
| 781 | ✗ | OptionalDouble Facility_Impl::dieselRefrigeration() const { | |
| 782 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 783 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 784 | ✗ | return mySqlFile->dieselRefrigeration(); | |
| 785 | } | ||
| 786 | ✗ | return OptionalDouble(); | |
| 787 | ✗ | } | |
| 788 | |||
| 789 | ✗ | OptionalDouble Facility_Impl::dieselGenerators() const { | |
| 790 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 791 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 792 | ✗ | return mySqlFile->dieselGenerators(); | |
| 793 | } | ||
| 794 | ✗ | return OptionalDouble(); | |
| 795 | ✗ | } | |
| 796 | |||
| 797 | ✗ | OptionalDouble Facility_Impl::dieselTotalEndUses() const { | |
| 798 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 799 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 800 | ✗ | return mySqlFile->dieselTotalEndUses(); | |
| 801 | } | ||
| 802 | ✗ | return OptionalDouble(); | |
| 803 | ✗ | } | |
| 804 | |||
| 805 | // Coal | ||
| 806 | ✗ | OptionalDouble Facility_Impl::coalHeating() const { | |
| 807 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 808 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 809 | ✗ | return mySqlFile->coalHeating(); | |
| 810 | } | ||
| 811 | ✗ | return OptionalDouble(); | |
| 812 | ✗ | } | |
| 813 | |||
| 814 | ✗ | OptionalDouble Facility_Impl::coalCooling() const { | |
| 815 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 816 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 817 | ✗ | return mySqlFile->coalCooling(); | |
| 818 | } | ||
| 819 | ✗ | return OptionalDouble(); | |
| 820 | ✗ | } | |
| 821 | |||
| 822 | ✗ | OptionalDouble Facility_Impl::coalInteriorLighting() const { | |
| 823 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 824 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 825 | ✗ | return mySqlFile->coalInteriorLighting(); | |
| 826 | } | ||
| 827 | ✗ | return OptionalDouble(); | |
| 828 | ✗ | } | |
| 829 | |||
| 830 | ✗ | OptionalDouble Facility_Impl::coalExteriorLighting() const { | |
| 831 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 832 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 833 | ✗ | return mySqlFile->coalExteriorLighting(); | |
| 834 | } | ||
| 835 | ✗ | return OptionalDouble(); | |
| 836 | ✗ | } | |
| 837 | |||
| 838 | ✗ | OptionalDouble Facility_Impl::coalInteriorEquipment() const { | |
| 839 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 840 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 841 | ✗ | return mySqlFile->coalInteriorEquipment(); | |
| 842 | } | ||
| 843 | ✗ | return OptionalDouble(); | |
| 844 | ✗ | } | |
| 845 | |||
| 846 | ✗ | OptionalDouble Facility_Impl::coalExteriorEquipment() const { | |
| 847 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 848 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 849 | ✗ | return mySqlFile->coalExteriorEquipment(); | |
| 850 | } | ||
| 851 | ✗ | return OptionalDouble(); | |
| 852 | ✗ | } | |
| 853 | |||
| 854 | ✗ | OptionalDouble Facility_Impl::coalFans() const { | |
| 855 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 856 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 857 | ✗ | return mySqlFile->coalFans(); | |
| 858 | } | ||
| 859 | ✗ | return OptionalDouble(); | |
| 860 | ✗ | } | |
| 861 | |||
| 862 | ✗ | OptionalDouble Facility_Impl::coalPumps() const { | |
| 863 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 864 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 865 | ✗ | return mySqlFile->coalPumps(); | |
| 866 | } | ||
| 867 | ✗ | return OptionalDouble(); | |
| 868 | ✗ | } | |
| 869 | |||
| 870 | ✗ | OptionalDouble Facility_Impl::coalHeatRejection() const { | |
| 871 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 872 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 873 | ✗ | return mySqlFile->coalHeatRejection(); | |
| 874 | } | ||
| 875 | ✗ | return OptionalDouble(); | |
| 876 | ✗ | } | |
| 877 | |||
| 878 | ✗ | OptionalDouble Facility_Impl::coalHumidification() const { | |
| 879 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 880 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 881 | ✗ | return mySqlFile->coalHumidification(); | |
| 882 | } | ||
| 883 | ✗ | return OptionalDouble(); | |
| 884 | ✗ | } | |
| 885 | |||
| 886 | ✗ | OptionalDouble Facility_Impl::coalHeatRecovery() const { | |
| 887 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 888 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 889 | ✗ | return mySqlFile->coalHeatRecovery(); | |
| 890 | } | ||
| 891 | ✗ | return OptionalDouble(); | |
| 892 | ✗ | } | |
| 893 | |||
| 894 | ✗ | OptionalDouble Facility_Impl::coalWaterSystems() const { | |
| 895 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 896 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 897 | ✗ | return mySqlFile->coalWaterSystems(); | |
| 898 | } | ||
| 899 | ✗ | return OptionalDouble(); | |
| 900 | ✗ | } | |
| 901 | |||
| 902 | ✗ | OptionalDouble Facility_Impl::coalRefrigeration() const { | |
| 903 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 904 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 905 | ✗ | return mySqlFile->coalRefrigeration(); | |
| 906 | } | ||
| 907 | ✗ | return OptionalDouble(); | |
| 908 | ✗ | } | |
| 909 | |||
| 910 | ✗ | OptionalDouble Facility_Impl::coalGenerators() const { | |
| 911 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 912 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 913 | ✗ | return mySqlFile->coalGenerators(); | |
| 914 | } | ||
| 915 | ✗ | return OptionalDouble(); | |
| 916 | ✗ | } | |
| 917 | |||
| 918 | ✗ | OptionalDouble Facility_Impl::coalTotalEndUses() const { | |
| 919 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 920 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 921 | ✗ | return mySqlFile->coalTotalEndUses(); | |
| 922 | } | ||
| 923 | ✗ | return OptionalDouble(); | |
| 924 | ✗ | } | |
| 925 | |||
| 926 | // Fuel Oil No 1 | ||
| 927 | ✗ | OptionalDouble Facility_Impl::fuelOilNo1Heating() const { | |
| 928 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 929 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 930 | ✗ | return mySqlFile->fuelOilNo1Heating(); | |
| 931 | } | ||
| 932 | ✗ | return OptionalDouble(); | |
| 933 | ✗ | } | |
| 934 | |||
| 935 | ✗ | OptionalDouble Facility_Impl::fuelOilNo1Cooling() const { | |
| 936 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 937 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 938 | ✗ | return mySqlFile->fuelOilNo1Cooling(); | |
| 939 | } | ||
| 940 | ✗ | return OptionalDouble(); | |
| 941 | ✗ | } | |
| 942 | |||
| 943 | ✗ | OptionalDouble Facility_Impl::fuelOilNo1InteriorLighting() const { | |
| 944 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 945 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 946 | ✗ | return mySqlFile->fuelOilNo1InteriorLighting(); | |
| 947 | } | ||
| 948 | ✗ | return OptionalDouble(); | |
| 949 | ✗ | } | |
| 950 | |||
| 951 | ✗ | OptionalDouble Facility_Impl::fuelOilNo1ExteriorLighting() const { | |
| 952 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 953 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 954 | ✗ | return mySqlFile->fuelOilNo1ExteriorLighting(); | |
| 955 | } | ||
| 956 | ✗ | return OptionalDouble(); | |
| 957 | ✗ | } | |
| 958 | |||
| 959 | ✗ | OptionalDouble Facility_Impl::fuelOilNo1InteriorEquipment() const { | |
| 960 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 961 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 962 | ✗ | return mySqlFile->fuelOilNo1InteriorEquipment(); | |
| 963 | } | ||
| 964 | ✗ | return OptionalDouble(); | |
| 965 | ✗ | } | |
| 966 | |||
| 967 | ✗ | OptionalDouble Facility_Impl::fuelOilNo1ExteriorEquipment() const { | |
| 968 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 969 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 970 | ✗ | return mySqlFile->fuelOilNo1ExteriorEquipment(); | |
| 971 | } | ||
| 972 | ✗ | return OptionalDouble(); | |
| 973 | ✗ | } | |
| 974 | |||
| 975 | ✗ | OptionalDouble Facility_Impl::fuelOilNo1Fans() const { | |
| 976 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 977 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 978 | ✗ | return mySqlFile->fuelOilNo1Fans(); | |
| 979 | } | ||
| 980 | ✗ | return OptionalDouble(); | |
| 981 | ✗ | } | |
| 982 | |||
| 983 | ✗ | OptionalDouble Facility_Impl::fuelOilNo1Pumps() const { | |
| 984 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 985 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 986 | ✗ | return mySqlFile->fuelOilNo1Pumps(); | |
| 987 | } | ||
| 988 | ✗ | return OptionalDouble(); | |
| 989 | ✗ | } | |
| 990 | |||
| 991 | ✗ | OptionalDouble Facility_Impl::fuelOilNo1HeatRejection() const { | |
| 992 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 993 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 994 | ✗ | return mySqlFile->fuelOilNo1HeatRejection(); | |
| 995 | } | ||
| 996 | ✗ | return OptionalDouble(); | |
| 997 | ✗ | } | |
| 998 | |||
| 999 | ✗ | OptionalDouble Facility_Impl::fuelOilNo1Humidification() const { | |
| 1000 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1001 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1002 | ✗ | return mySqlFile->fuelOilNo1Humidification(); | |
| 1003 | } | ||
| 1004 | ✗ | return OptionalDouble(); | |
| 1005 | ✗ | } | |
| 1006 | |||
| 1007 | ✗ | OptionalDouble Facility_Impl::fuelOilNo1HeatRecovery() const { | |
| 1008 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1009 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1010 | ✗ | return mySqlFile->fuelOilNo1HeatRecovery(); | |
| 1011 | } | ||
| 1012 | ✗ | return OptionalDouble(); | |
| 1013 | ✗ | } | |
| 1014 | |||
| 1015 | ✗ | OptionalDouble Facility_Impl::fuelOilNo1WaterSystems() const { | |
| 1016 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1017 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1018 | ✗ | return mySqlFile->fuelOilNo1WaterSystems(); | |
| 1019 | } | ||
| 1020 | ✗ | return OptionalDouble(); | |
| 1021 | ✗ | } | |
| 1022 | |||
| 1023 | ✗ | OptionalDouble Facility_Impl::fuelOilNo1Refrigeration() const { | |
| 1024 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1025 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1026 | ✗ | return mySqlFile->fuelOilNo1Refrigeration(); | |
| 1027 | } | ||
| 1028 | ✗ | return OptionalDouble(); | |
| 1029 | ✗ | } | |
| 1030 | |||
| 1031 | ✗ | OptionalDouble Facility_Impl::fuelOilNo1Generators() const { | |
| 1032 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1033 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1034 | ✗ | return mySqlFile->fuelOilNo1Generators(); | |
| 1035 | } | ||
| 1036 | ✗ | return OptionalDouble(); | |
| 1037 | ✗ | } | |
| 1038 | |||
| 1039 | ✗ | OptionalDouble Facility_Impl::fuelOilNo1TotalEndUses() const { | |
| 1040 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1041 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1042 | ✗ | return mySqlFile->fuelOilNo1TotalEndUses(); | |
| 1043 | } | ||
| 1044 | ✗ | return OptionalDouble(); | |
| 1045 | ✗ | } | |
| 1046 | |||
| 1047 | // Fuel Oil No 2 | ||
| 1048 | ✗ | OptionalDouble Facility_Impl::fuelOilNo2Heating() const { | |
| 1049 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1050 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1051 | ✗ | return mySqlFile->fuelOilNo2Heating(); | |
| 1052 | } | ||
| 1053 | ✗ | return OptionalDouble(); | |
| 1054 | ✗ | } | |
| 1055 | |||
| 1056 | ✗ | OptionalDouble Facility_Impl::fuelOilNo2Cooling() const { | |
| 1057 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1058 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1059 | ✗ | return mySqlFile->fuelOilNo2Cooling(); | |
| 1060 | } | ||
| 1061 | ✗ | return OptionalDouble(); | |
| 1062 | ✗ | } | |
| 1063 | |||
| 1064 | ✗ | OptionalDouble Facility_Impl::fuelOilNo2InteriorLighting() const { | |
| 1065 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1066 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1067 | ✗ | return mySqlFile->fuelOilNo2InteriorLighting(); | |
| 1068 | } | ||
| 1069 | ✗ | return OptionalDouble(); | |
| 1070 | ✗ | } | |
| 1071 | |||
| 1072 | ✗ | OptionalDouble Facility_Impl::fuelOilNo2ExteriorLighting() const { | |
| 1073 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1074 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1075 | ✗ | return mySqlFile->fuelOilNo2ExteriorLighting(); | |
| 1076 | } | ||
| 1077 | ✗ | return OptionalDouble(); | |
| 1078 | ✗ | } | |
| 1079 | |||
| 1080 | ✗ | OptionalDouble Facility_Impl::fuelOilNo2InteriorEquipment() const { | |
| 1081 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1082 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1083 | ✗ | return mySqlFile->fuelOilNo2InteriorEquipment(); | |
| 1084 | } | ||
| 1085 | ✗ | return OptionalDouble(); | |
| 1086 | ✗ | } | |
| 1087 | |||
| 1088 | ✗ | OptionalDouble Facility_Impl::fuelOilNo2ExteriorEquipment() const { | |
| 1089 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1090 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1091 | ✗ | return mySqlFile->fuelOilNo2ExteriorEquipment(); | |
| 1092 | } | ||
| 1093 | ✗ | return OptionalDouble(); | |
| 1094 | ✗ | } | |
| 1095 | |||
| 1096 | ✗ | OptionalDouble Facility_Impl::fuelOilNo2Fans() const { | |
| 1097 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1098 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1099 | ✗ | return mySqlFile->fuelOilNo2Fans(); | |
| 1100 | } | ||
| 1101 | ✗ | return OptionalDouble(); | |
| 1102 | ✗ | } | |
| 1103 | |||
| 1104 | ✗ | OptionalDouble Facility_Impl::fuelOilNo2Pumps() const { | |
| 1105 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1106 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1107 | ✗ | return mySqlFile->fuelOilNo2Pumps(); | |
| 1108 | } | ||
| 1109 | ✗ | return OptionalDouble(); | |
| 1110 | ✗ | } | |
| 1111 | |||
| 1112 | ✗ | OptionalDouble Facility_Impl::fuelOilNo2HeatRejection() const { | |
| 1113 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1114 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1115 | ✗ | return mySqlFile->fuelOilNo2HeatRejection(); | |
| 1116 | } | ||
| 1117 | ✗ | return OptionalDouble(); | |
| 1118 | ✗ | } | |
| 1119 | |||
| 1120 | ✗ | OptionalDouble Facility_Impl::fuelOilNo2Humidification() const { | |
| 1121 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1122 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1123 | ✗ | return mySqlFile->fuelOilNo2Humidification(); | |
| 1124 | } | ||
| 1125 | ✗ | return OptionalDouble(); | |
| 1126 | ✗ | } | |
| 1127 | |||
| 1128 | ✗ | OptionalDouble Facility_Impl::fuelOilNo2HeatRecovery() const { | |
| 1129 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1130 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1131 | ✗ | return mySqlFile->fuelOilNo2HeatRecovery(); | |
| 1132 | } | ||
| 1133 | ✗ | return OptionalDouble(); | |
| 1134 | ✗ | } | |
| 1135 | |||
| 1136 | ✗ | OptionalDouble Facility_Impl::fuelOilNo2WaterSystems() const { | |
| 1137 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1138 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1139 | ✗ | return mySqlFile->fuelOilNo2WaterSystems(); | |
| 1140 | } | ||
| 1141 | ✗ | return OptionalDouble(); | |
| 1142 | ✗ | } | |
| 1143 | |||
| 1144 | ✗ | OptionalDouble Facility_Impl::fuelOilNo2Refrigeration() const { | |
| 1145 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1146 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1147 | ✗ | return mySqlFile->fuelOilNo2Refrigeration(); | |
| 1148 | } | ||
| 1149 | ✗ | return OptionalDouble(); | |
| 1150 | ✗ | } | |
| 1151 | |||
| 1152 | ✗ | OptionalDouble Facility_Impl::fuelOilNo2Generators() const { | |
| 1153 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1154 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1155 | ✗ | return mySqlFile->fuelOilNo2Generators(); | |
| 1156 | } | ||
| 1157 | ✗ | return OptionalDouble(); | |
| 1158 | ✗ | } | |
| 1159 | |||
| 1160 | ✗ | OptionalDouble Facility_Impl::fuelOilNo2TotalEndUses() const { | |
| 1161 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1162 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1163 | ✗ | return mySqlFile->fuelOilNo2TotalEndUses(); | |
| 1164 | } | ||
| 1165 | ✗ | return OptionalDouble(); | |
| 1166 | ✗ | } | |
| 1167 | |||
| 1168 | // Propane | ||
| 1169 | ✗ | OptionalDouble Facility_Impl::propaneHeating() const { | |
| 1170 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1171 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1172 | ✗ | return mySqlFile->propaneHeating(); | |
| 1173 | } | ||
| 1174 | ✗ | return OptionalDouble(); | |
| 1175 | ✗ | } | |
| 1176 | |||
| 1177 | ✗ | OptionalDouble Facility_Impl::propaneCooling() const { | |
| 1178 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1179 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1180 | ✗ | return mySqlFile->propaneCooling(); | |
| 1181 | } | ||
| 1182 | ✗ | return OptionalDouble(); | |
| 1183 | ✗ | } | |
| 1184 | |||
| 1185 | ✗ | OptionalDouble Facility_Impl::propaneInteriorLighting() const { | |
| 1186 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1187 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1188 | ✗ | return mySqlFile->propaneInteriorLighting(); | |
| 1189 | } | ||
| 1190 | ✗ | return OptionalDouble(); | |
| 1191 | ✗ | } | |
| 1192 | |||
| 1193 | ✗ | OptionalDouble Facility_Impl::propaneExteriorLighting() const { | |
| 1194 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1195 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1196 | ✗ | return mySqlFile->propaneExteriorLighting(); | |
| 1197 | } | ||
| 1198 | ✗ | return OptionalDouble(); | |
| 1199 | ✗ | } | |
| 1200 | |||
| 1201 | ✗ | OptionalDouble Facility_Impl::propaneInteriorEquipment() const { | |
| 1202 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1203 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1204 | ✗ | return mySqlFile->propaneInteriorEquipment(); | |
| 1205 | } | ||
| 1206 | ✗ | return OptionalDouble(); | |
| 1207 | ✗ | } | |
| 1208 | |||
| 1209 | ✗ | OptionalDouble Facility_Impl::propaneExteriorEquipment() const { | |
| 1210 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1211 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1212 | ✗ | return mySqlFile->propaneExteriorEquipment(); | |
| 1213 | } | ||
| 1214 | ✗ | return OptionalDouble(); | |
| 1215 | ✗ | } | |
| 1216 | |||
| 1217 | ✗ | OptionalDouble Facility_Impl::propaneFans() const { | |
| 1218 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1219 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1220 | ✗ | return mySqlFile->propaneFans(); | |
| 1221 | } | ||
| 1222 | ✗ | return OptionalDouble(); | |
| 1223 | ✗ | } | |
| 1224 | |||
| 1225 | ✗ | OptionalDouble Facility_Impl::propanePumps() const { | |
| 1226 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1227 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1228 | ✗ | return mySqlFile->propanePumps(); | |
| 1229 | } | ||
| 1230 | ✗ | return OptionalDouble(); | |
| 1231 | ✗ | } | |
| 1232 | |||
| 1233 | ✗ | OptionalDouble Facility_Impl::propaneHeatRejection() const { | |
| 1234 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1235 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1236 | ✗ | return mySqlFile->propaneHeatRejection(); | |
| 1237 | } | ||
| 1238 | ✗ | return OptionalDouble(); | |
| 1239 | ✗ | } | |
| 1240 | |||
| 1241 | ✗ | OptionalDouble Facility_Impl::propaneHumidification() const { | |
| 1242 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1243 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1244 | ✗ | return mySqlFile->propaneHumidification(); | |
| 1245 | } | ||
| 1246 | ✗ | return OptionalDouble(); | |
| 1247 | ✗ | } | |
| 1248 | |||
| 1249 | ✗ | OptionalDouble Facility_Impl::propaneHeatRecovery() const { | |
| 1250 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1251 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1252 | ✗ | return mySqlFile->propaneHeatRecovery(); | |
| 1253 | } | ||
| 1254 | ✗ | return OptionalDouble(); | |
| 1255 | ✗ | } | |
| 1256 | |||
| 1257 | ✗ | OptionalDouble Facility_Impl::propaneWaterSystems() const { | |
| 1258 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1259 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1260 | ✗ | return mySqlFile->propaneWaterSystems(); | |
| 1261 | } | ||
| 1262 | ✗ | return OptionalDouble(); | |
| 1263 | ✗ | } | |
| 1264 | |||
| 1265 | ✗ | OptionalDouble Facility_Impl::propaneRefrigeration() const { | |
| 1266 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1267 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1268 | ✗ | return mySqlFile->propaneRefrigeration(); | |
| 1269 | } | ||
| 1270 | ✗ | return OptionalDouble(); | |
| 1271 | ✗ | } | |
| 1272 | |||
| 1273 | ✗ | OptionalDouble Facility_Impl::propaneGenerators() const { | |
| 1274 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1275 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1276 | ✗ | return mySqlFile->propaneGenerators(); | |
| 1277 | } | ||
| 1278 | ✗ | return OptionalDouble(); | |
| 1279 | ✗ | } | |
| 1280 | |||
| 1281 | ✗ | OptionalDouble Facility_Impl::propaneTotalEndUses() const { | |
| 1282 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1283 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1284 | ✗ | return mySqlFile->propaneTotalEndUses(); | |
| 1285 | } | ||
| 1286 | ✗ | return OptionalDouble(); | |
| 1287 | ✗ | } | |
| 1288 | |||
| 1289 | // Other Fuel 1 | ||
| 1290 | ✗ | OptionalDouble Facility_Impl::otherFuel1Heating() const { | |
| 1291 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1292 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1293 | ✗ | return mySqlFile->otherFuel1Heating(); | |
| 1294 | } | ||
| 1295 | ✗ | return OptionalDouble(); | |
| 1296 | ✗ | } | |
| 1297 | |||
| 1298 | ✗ | OptionalDouble Facility_Impl::otherFuel1Cooling() const { | |
| 1299 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1300 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1301 | ✗ | return mySqlFile->otherFuel1Cooling(); | |
| 1302 | } | ||
| 1303 | ✗ | return OptionalDouble(); | |
| 1304 | ✗ | } | |
| 1305 | |||
| 1306 | ✗ | OptionalDouble Facility_Impl::otherFuel1InteriorLighting() const { | |
| 1307 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1308 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1309 | ✗ | return mySqlFile->otherFuel1InteriorLighting(); | |
| 1310 | } | ||
| 1311 | ✗ | return OptionalDouble(); | |
| 1312 | ✗ | } | |
| 1313 | |||
| 1314 | ✗ | OptionalDouble Facility_Impl::otherFuel1ExteriorLighting() const { | |
| 1315 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1316 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1317 | ✗ | return mySqlFile->otherFuel1ExteriorLighting(); | |
| 1318 | } | ||
| 1319 | ✗ | return OptionalDouble(); | |
| 1320 | ✗ | } | |
| 1321 | |||
| 1322 | ✗ | OptionalDouble Facility_Impl::otherFuel1InteriorEquipment() const { | |
| 1323 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1324 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1325 | ✗ | return mySqlFile->otherFuel1InteriorEquipment(); | |
| 1326 | } | ||
| 1327 | ✗ | return OptionalDouble(); | |
| 1328 | ✗ | } | |
| 1329 | |||
| 1330 | ✗ | OptionalDouble Facility_Impl::otherFuel1ExteriorEquipment() const { | |
| 1331 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1332 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1333 | ✗ | return mySqlFile->otherFuel1ExteriorEquipment(); | |
| 1334 | } | ||
| 1335 | ✗ | return OptionalDouble(); | |
| 1336 | ✗ | } | |
| 1337 | |||
| 1338 | ✗ | OptionalDouble Facility_Impl::otherFuel1Fans() const { | |
| 1339 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1340 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1341 | ✗ | return mySqlFile->otherFuel1Fans(); | |
| 1342 | } | ||
| 1343 | ✗ | return OptionalDouble(); | |
| 1344 | ✗ | } | |
| 1345 | |||
| 1346 | ✗ | OptionalDouble Facility_Impl::otherFuel1Pumps() const { | |
| 1347 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1348 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1349 | ✗ | return mySqlFile->otherFuel1Pumps(); | |
| 1350 | } | ||
| 1351 | ✗ | return OptionalDouble(); | |
| 1352 | ✗ | } | |
| 1353 | |||
| 1354 | ✗ | OptionalDouble Facility_Impl::otherFuel1HeatRejection() const { | |
| 1355 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1356 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1357 | ✗ | return mySqlFile->otherFuel1HeatRejection(); | |
| 1358 | } | ||
| 1359 | ✗ | return OptionalDouble(); | |
| 1360 | ✗ | } | |
| 1361 | |||
| 1362 | ✗ | OptionalDouble Facility_Impl::otherFuel1Humidification() const { | |
| 1363 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1364 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1365 | ✗ | return mySqlFile->otherFuel1Humidification(); | |
| 1366 | } | ||
| 1367 | ✗ | return OptionalDouble(); | |
| 1368 | ✗ | } | |
| 1369 | |||
| 1370 | ✗ | OptionalDouble Facility_Impl::otherFuel1HeatRecovery() const { | |
| 1371 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1372 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1373 | ✗ | return mySqlFile->otherFuel1HeatRecovery(); | |
| 1374 | } | ||
| 1375 | ✗ | return OptionalDouble(); | |
| 1376 | ✗ | } | |
| 1377 | |||
| 1378 | ✗ | OptionalDouble Facility_Impl::otherFuel1WaterSystems() const { | |
| 1379 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1380 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1381 | ✗ | return mySqlFile->otherFuel1WaterSystems(); | |
| 1382 | } | ||
| 1383 | ✗ | return OptionalDouble(); | |
| 1384 | ✗ | } | |
| 1385 | |||
| 1386 | ✗ | OptionalDouble Facility_Impl::otherFuel1Refrigeration() const { | |
| 1387 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1388 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1389 | ✗ | return mySqlFile->otherFuel1Refrigeration(); | |
| 1390 | } | ||
| 1391 | ✗ | return OptionalDouble(); | |
| 1392 | ✗ | } | |
| 1393 | |||
| 1394 | ✗ | OptionalDouble Facility_Impl::otherFuel1Generators() const { | |
| 1395 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1396 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1397 | ✗ | return mySqlFile->otherFuel1Generators(); | |
| 1398 | } | ||
| 1399 | ✗ | return OptionalDouble(); | |
| 1400 | ✗ | } | |
| 1401 | |||
| 1402 | ✗ | OptionalDouble Facility_Impl::otherFuel1TotalEndUses() const { | |
| 1403 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1404 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1405 | ✗ | return mySqlFile->otherFuel1TotalEndUses(); | |
| 1406 | } | ||
| 1407 | ✗ | return OptionalDouble(); | |
| 1408 | ✗ | } | |
| 1409 | |||
| 1410 | // Other Fuel 2 | ||
| 1411 | ✗ | OptionalDouble Facility_Impl::otherFuel2Heating() const { | |
| 1412 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1413 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1414 | ✗ | return mySqlFile->otherFuel2Heating(); | |
| 1415 | } | ||
| 1416 | ✗ | return OptionalDouble(); | |
| 1417 | ✗ | } | |
| 1418 | |||
| 1419 | ✗ | OptionalDouble Facility_Impl::otherFuel2Cooling() const { | |
| 1420 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1421 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1422 | ✗ | return mySqlFile->otherFuel2Cooling(); | |
| 1423 | } | ||
| 1424 | ✗ | return OptionalDouble(); | |
| 1425 | ✗ | } | |
| 1426 | |||
| 1427 | ✗ | OptionalDouble Facility_Impl::otherFuel2InteriorLighting() const { | |
| 1428 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1429 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1430 | ✗ | return mySqlFile->otherFuel2InteriorLighting(); | |
| 1431 | } | ||
| 1432 | ✗ | return OptionalDouble(); | |
| 1433 | ✗ | } | |
| 1434 | |||
| 1435 | ✗ | OptionalDouble Facility_Impl::otherFuel2ExteriorLighting() const { | |
| 1436 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1437 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1438 | ✗ | return mySqlFile->otherFuel2ExteriorLighting(); | |
| 1439 | } | ||
| 1440 | ✗ | return OptionalDouble(); | |
| 1441 | ✗ | } | |
| 1442 | |||
| 1443 | ✗ | OptionalDouble Facility_Impl::otherFuel2InteriorEquipment() const { | |
| 1444 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1445 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1446 | ✗ | return mySqlFile->otherFuel2InteriorEquipment(); | |
| 1447 | } | ||
| 1448 | ✗ | return OptionalDouble(); | |
| 1449 | ✗ | } | |
| 1450 | |||
| 1451 | ✗ | OptionalDouble Facility_Impl::otherFuel2ExteriorEquipment() const { | |
| 1452 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1453 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1454 | ✗ | return mySqlFile->otherFuel2ExteriorEquipment(); | |
| 1455 | } | ||
| 1456 | ✗ | return OptionalDouble(); | |
| 1457 | ✗ | } | |
| 1458 | |||
| 1459 | ✗ | OptionalDouble Facility_Impl::otherFuel2Fans() const { | |
| 1460 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1461 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1462 | ✗ | return mySqlFile->otherFuel2Fans(); | |
| 1463 | } | ||
| 1464 | ✗ | return OptionalDouble(); | |
| 1465 | ✗ | } | |
| 1466 | |||
| 1467 | ✗ | OptionalDouble Facility_Impl::otherFuel2Pumps() const { | |
| 1468 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1469 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1470 | ✗ | return mySqlFile->otherFuel2Pumps(); | |
| 1471 | } | ||
| 1472 | ✗ | return OptionalDouble(); | |
| 1473 | ✗ | } | |
| 1474 | |||
| 1475 | ✗ | OptionalDouble Facility_Impl::otherFuel2HeatRejection() const { | |
| 1476 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1477 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1478 | ✗ | return mySqlFile->otherFuel2HeatRejection(); | |
| 1479 | } | ||
| 1480 | ✗ | return OptionalDouble(); | |
| 1481 | ✗ | } | |
| 1482 | |||
| 1483 | ✗ | OptionalDouble Facility_Impl::otherFuel2Humidification() const { | |
| 1484 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1485 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1486 | ✗ | return mySqlFile->otherFuel2Humidification(); | |
| 1487 | } | ||
| 1488 | ✗ | return OptionalDouble(); | |
| 1489 | ✗ | } | |
| 1490 | |||
| 1491 | ✗ | OptionalDouble Facility_Impl::otherFuel2HeatRecovery() const { | |
| 1492 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1493 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1494 | ✗ | return mySqlFile->otherFuel2HeatRecovery(); | |
| 1495 | } | ||
| 1496 | ✗ | return OptionalDouble(); | |
| 1497 | ✗ | } | |
| 1498 | |||
| 1499 | ✗ | OptionalDouble Facility_Impl::otherFuel2WaterSystems() const { | |
| 1500 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1501 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1502 | ✗ | return mySqlFile->otherFuel2WaterSystems(); | |
| 1503 | } | ||
| 1504 | ✗ | return OptionalDouble(); | |
| 1505 | ✗ | } | |
| 1506 | |||
| 1507 | ✗ | OptionalDouble Facility_Impl::otherFuel2Refrigeration() const { | |
| 1508 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1509 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1510 | ✗ | return mySqlFile->otherFuel2Refrigeration(); | |
| 1511 | } | ||
| 1512 | ✗ | return OptionalDouble(); | |
| 1513 | ✗ | } | |
| 1514 | |||
| 1515 | ✗ | OptionalDouble Facility_Impl::otherFuel2Generators() const { | |
| 1516 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1517 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1518 | ✗ | return mySqlFile->otherFuel2Generators(); | |
| 1519 | } | ||
| 1520 | ✗ | return OptionalDouble(); | |
| 1521 | ✗ | } | |
| 1522 | |||
| 1523 | ✗ | OptionalDouble Facility_Impl::otherFuel2TotalEndUses() const { | |
| 1524 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1525 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1526 | ✗ | return mySqlFile->otherFuel2TotalEndUses(); | |
| 1527 | } | ||
| 1528 | ✗ | return {}; | |
| 1529 | ✗ | } | |
| 1530 | |||
| 1531 | ✗ | OptionalDouble Facility_Impl::districtCoolingHeating() const { | |
| 1532 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1533 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1534 | ✗ | return mySqlFile->districtCoolingHeating(); | |
| 1535 | } | ||
| 1536 | ✗ | return {}; | |
| 1537 | ✗ | } | |
| 1538 | |||
| 1539 | ✗ | OptionalDouble Facility_Impl::districtCoolingCooling() const { | |
| 1540 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1541 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1542 | ✗ | return mySqlFile->districtCoolingCooling(); | |
| 1543 | } | ||
| 1544 | ✗ | return {}; | |
| 1545 | ✗ | } | |
| 1546 | |||
| 1547 | ✗ | OptionalDouble Facility_Impl::districtCoolingInteriorLighting() const { | |
| 1548 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1549 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1550 | ✗ | return mySqlFile->districtCoolingInteriorLighting(); | |
| 1551 | } | ||
| 1552 | ✗ | return {}; | |
| 1553 | ✗ | } | |
| 1554 | |||
| 1555 | ✗ | OptionalDouble Facility_Impl::districtCoolingExteriorLighting() const { | |
| 1556 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1557 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1558 | ✗ | return mySqlFile->districtCoolingExteriorLighting(); | |
| 1559 | } | ||
| 1560 | ✗ | return {}; | |
| 1561 | ✗ | } | |
| 1562 | |||
| 1563 | ✗ | OptionalDouble Facility_Impl::districtCoolingInteriorEquipment() const { | |
| 1564 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1565 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1566 | ✗ | return mySqlFile->districtCoolingInteriorEquipment(); | |
| 1567 | } | ||
| 1568 | ✗ | return {}; | |
| 1569 | ✗ | } | |
| 1570 | |||
| 1571 | ✗ | OptionalDouble Facility_Impl::districtCoolingExteriorEquipment() const { | |
| 1572 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1573 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1574 | ✗ | return mySqlFile->districtCoolingExteriorEquipment(); | |
| 1575 | } | ||
| 1576 | ✗ | return {}; | |
| 1577 | ✗ | } | |
| 1578 | |||
| 1579 | ✗ | OptionalDouble Facility_Impl::districtCoolingFans() const { | |
| 1580 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1581 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1582 | ✗ | return mySqlFile->districtCoolingFans(); | |
| 1583 | } | ||
| 1584 | ✗ | return {}; | |
| 1585 | ✗ | } | |
| 1586 | |||
| 1587 | ✗ | OptionalDouble Facility_Impl::districtCoolingPumps() const { | |
| 1588 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1589 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1590 | ✗ | return mySqlFile->districtCoolingPumps(); | |
| 1591 | } | ||
| 1592 | ✗ | return {}; | |
| 1593 | ✗ | } | |
| 1594 | |||
| 1595 | ✗ | OptionalDouble Facility_Impl::districtCoolingHeatRejection() const { | |
| 1596 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1597 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1598 | ✗ | return mySqlFile->districtCoolingHeatRejection(); | |
| 1599 | } | ||
| 1600 | ✗ | return {}; | |
| 1601 | ✗ | } | |
| 1602 | |||
| 1603 | ✗ | OptionalDouble Facility_Impl::districtCoolingHumidification() const { | |
| 1604 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1605 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1606 | ✗ | return mySqlFile->districtCoolingHumidification(); | |
| 1607 | } | ||
| 1608 | ✗ | return {}; | |
| 1609 | ✗ | } | |
| 1610 | |||
| 1611 | ✗ | OptionalDouble Facility_Impl::districtCoolingHeatRecovery() const { | |
| 1612 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1613 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1614 | ✗ | return mySqlFile->districtCoolingHeatRecovery(); | |
| 1615 | } | ||
| 1616 | ✗ | return {}; | |
| 1617 | ✗ | } | |
| 1618 | |||
| 1619 | ✗ | OptionalDouble Facility_Impl::districtCoolingWaterSystems() const { | |
| 1620 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1621 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1622 | ✗ | return mySqlFile->districtCoolingWaterSystems(); | |
| 1623 | } | ||
| 1624 | ✗ | return {}; | |
| 1625 | ✗ | } | |
| 1626 | |||
| 1627 | ✗ | OptionalDouble Facility_Impl::districtCoolingRefrigeration() const { | |
| 1628 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1629 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1630 | ✗ | return mySqlFile->districtCoolingRefrigeration(); | |
| 1631 | } | ||
| 1632 | ✗ | return {}; | |
| 1633 | ✗ | } | |
| 1634 | |||
| 1635 | ✗ | OptionalDouble Facility_Impl::districtCoolingGenerators() const { | |
| 1636 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1637 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1638 | ✗ | return mySqlFile->districtCoolingGenerators(); | |
| 1639 | } | ||
| 1640 | ✗ | return {}; | |
| 1641 | ✗ | } | |
| 1642 | |||
| 1643 | ✗ | OptionalDouble Facility_Impl::districtCoolingTotalEndUses() const { | |
| 1644 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1645 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1646 | ✗ | return mySqlFile->districtCoolingTotalEndUses(); | |
| 1647 | } | ||
| 1648 | ✗ | return {}; | |
| 1649 | ✗ | } | |
| 1650 | |||
| 1651 | ✗ | OptionalDouble Facility_Impl::districtHeatingHeating() const { | |
| 1652 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1653 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1654 | ✗ | return mySqlFile->districtHeatingHeating(); | |
| 1655 | } | ||
| 1656 | ✗ | return {}; | |
| 1657 | ✗ | } | |
| 1658 | |||
| 1659 | ✗ | OptionalDouble Facility_Impl::districtHeatingCooling() const { | |
| 1660 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1661 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1662 | ✗ | return mySqlFile->districtHeatingCooling(); | |
| 1663 | } | ||
| 1664 | ✗ | return {}; | |
| 1665 | ✗ | } | |
| 1666 | |||
| 1667 | ✗ | OptionalDouble Facility_Impl::districtHeatingInteriorLighting() const { | |
| 1668 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1669 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1670 | ✗ | return mySqlFile->districtHeatingInteriorLighting(); | |
| 1671 | } | ||
| 1672 | ✗ | return {}; | |
| 1673 | ✗ | } | |
| 1674 | |||
| 1675 | ✗ | OptionalDouble Facility_Impl::districtHeatingExteriorLighting() const { | |
| 1676 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1677 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1678 | ✗ | return mySqlFile->districtHeatingExteriorLighting(); | |
| 1679 | } | ||
| 1680 | ✗ | return {}; | |
| 1681 | ✗ | } | |
| 1682 | |||
| 1683 | ✗ | OptionalDouble Facility_Impl::districtHeatingInteriorEquipment() const { | |
| 1684 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1685 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1686 | ✗ | return mySqlFile->districtHeatingInteriorEquipment(); | |
| 1687 | } | ||
| 1688 | ✗ | return {}; | |
| 1689 | ✗ | } | |
| 1690 | |||
| 1691 | ✗ | OptionalDouble Facility_Impl::districtHeatingExteriorEquipment() const { | |
| 1692 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1693 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1694 | ✗ | return mySqlFile->districtHeatingExteriorEquipment(); | |
| 1695 | } | ||
| 1696 | ✗ | return {}; | |
| 1697 | ✗ | } | |
| 1698 | |||
| 1699 | ✗ | OptionalDouble Facility_Impl::districtHeatingFans() const { | |
| 1700 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1701 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1702 | ✗ | return mySqlFile->districtHeatingFans(); | |
| 1703 | } | ||
| 1704 | ✗ | return {}; | |
| 1705 | ✗ | } | |
| 1706 | |||
| 1707 | ✗ | OptionalDouble Facility_Impl::districtHeatingPumps() const { | |
| 1708 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1709 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1710 | ✗ | return mySqlFile->districtHeatingPumps(); | |
| 1711 | } | ||
| 1712 | ✗ | return {}; | |
| 1713 | ✗ | } | |
| 1714 | |||
| 1715 | ✗ | OptionalDouble Facility_Impl::districtHeatingHeatRejection() const { | |
| 1716 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1717 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1718 | ✗ | return mySqlFile->districtHeatingHeatRejection(); | |
| 1719 | } | ||
| 1720 | ✗ | return {}; | |
| 1721 | ✗ | } | |
| 1722 | |||
| 1723 | ✗ | OptionalDouble Facility_Impl::districtHeatingHumidification() const { | |
| 1724 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1725 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1726 | ✗ | return mySqlFile->districtHeatingHumidification(); | |
| 1727 | } | ||
| 1728 | ✗ | return {}; | |
| 1729 | ✗ | } | |
| 1730 | |||
| 1731 | ✗ | OptionalDouble Facility_Impl::districtHeatingHeatRecovery() const { | |
| 1732 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1733 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1734 | ✗ | return mySqlFile->districtHeatingHeatRecovery(); | |
| 1735 | } | ||
| 1736 | ✗ | return {}; | |
| 1737 | ✗ | } | |
| 1738 | |||
| 1739 | ✗ | OptionalDouble Facility_Impl::districtHeatingWaterSystems() const { | |
| 1740 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1741 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1742 | ✗ | return mySqlFile->districtHeatingWaterSystems(); | |
| 1743 | } | ||
| 1744 | ✗ | return {}; | |
| 1745 | ✗ | } | |
| 1746 | |||
| 1747 | ✗ | OptionalDouble Facility_Impl::districtHeatingRefrigeration() const { | |
| 1748 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1749 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1750 | ✗ | return mySqlFile->districtHeatingRefrigeration(); | |
| 1751 | } | ||
| 1752 | ✗ | return {}; | |
| 1753 | ✗ | } | |
| 1754 | |||
| 1755 | ✗ | OptionalDouble Facility_Impl::districtHeatingGenerators() const { | |
| 1756 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1757 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1758 | ✗ | return mySqlFile->districtHeatingGenerators(); | |
| 1759 | } | ||
| 1760 | ✗ | return {}; | |
| 1761 | ✗ | } | |
| 1762 | |||
| 1763 | ✗ | OptionalDouble Facility_Impl::districtHeatingTotalEndUses() const { | |
| 1764 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1765 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1766 | ✗ | return mySqlFile->districtHeatingTotalEndUses(); | |
| 1767 | } | ||
| 1768 | ✗ | return {}; | |
| 1769 | ✗ | } | |
| 1770 | |||
| 1771 | ✗ | OptionalDouble Facility_Impl::waterHeating() const { | |
| 1772 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1773 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1774 | ✗ | return mySqlFile->waterHeating(); | |
| 1775 | } | ||
| 1776 | ✗ | return {}; | |
| 1777 | ✗ | } | |
| 1778 | |||
| 1779 | ✗ | OptionalDouble Facility_Impl::waterCooling() const { | |
| 1780 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1781 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1782 | ✗ | return mySqlFile->waterCooling(); | |
| 1783 | } | ||
| 1784 | ✗ | return {}; | |
| 1785 | ✗ | } | |
| 1786 | |||
| 1787 | ✗ | OptionalDouble Facility_Impl::waterInteriorLighting() const { | |
| 1788 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1789 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1790 | ✗ | return mySqlFile->waterInteriorLighting(); | |
| 1791 | } | ||
| 1792 | ✗ | return {}; | |
| 1793 | ✗ | } | |
| 1794 | |||
| 1795 | ✗ | OptionalDouble Facility_Impl::waterExteriorLighting() const { | |
| 1796 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1797 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1798 | ✗ | return mySqlFile->waterExteriorLighting(); | |
| 1799 | } | ||
| 1800 | ✗ | return {}; | |
| 1801 | ✗ | } | |
| 1802 | |||
| 1803 | ✗ | OptionalDouble Facility_Impl::waterInteriorEquipment() const { | |
| 1804 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1805 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1806 | ✗ | return mySqlFile->waterInteriorEquipment(); | |
| 1807 | } | ||
| 1808 | ✗ | return {}; | |
| 1809 | ✗ | } | |
| 1810 | |||
| 1811 | ✗ | OptionalDouble Facility_Impl::waterExteriorEquipment() const { | |
| 1812 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1813 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1814 | ✗ | return mySqlFile->waterExteriorEquipment(); | |
| 1815 | } | ||
| 1816 | ✗ | return {}; | |
| 1817 | ✗ | } | |
| 1818 | |||
| 1819 | ✗ | OptionalDouble Facility_Impl::waterFans() const { | |
| 1820 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1821 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1822 | ✗ | return mySqlFile->waterFans(); | |
| 1823 | } | ||
| 1824 | ✗ | return {}; | |
| 1825 | ✗ | } | |
| 1826 | |||
| 1827 | ✗ | OptionalDouble Facility_Impl::waterPumps() const { | |
| 1828 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1829 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1830 | ✗ | return mySqlFile->waterPumps(); | |
| 1831 | } | ||
| 1832 | ✗ | return {}; | |
| 1833 | ✗ | } | |
| 1834 | |||
| 1835 | ✗ | OptionalDouble Facility_Impl::waterHeatRejection() const { | |
| 1836 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1837 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1838 | ✗ | return mySqlFile->waterHeatRejection(); | |
| 1839 | } | ||
| 1840 | ✗ | return {}; | |
| 1841 | ✗ | } | |
| 1842 | |||
| 1843 | ✗ | OptionalDouble Facility_Impl::waterHumidification() const { | |
| 1844 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1845 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1846 | ✗ | return mySqlFile->waterHumidification(); | |
| 1847 | } | ||
| 1848 | ✗ | return {}; | |
| 1849 | ✗ | } | |
| 1850 | |||
| 1851 | ✗ | OptionalDouble Facility_Impl::waterHeatRecovery() const { | |
| 1852 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1853 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1854 | ✗ | return mySqlFile->waterHeatRecovery(); | |
| 1855 | } | ||
| 1856 | ✗ | return {}; | |
| 1857 | ✗ | } | |
| 1858 | |||
| 1859 | ✗ | OptionalDouble Facility_Impl::waterWaterSystems() const { | |
| 1860 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1861 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1862 | ✗ | return mySqlFile->waterWaterSystems(); | |
| 1863 | } | ||
| 1864 | ✗ | return {}; | |
| 1865 | ✗ | } | |
| 1866 | |||
| 1867 | ✗ | OptionalDouble Facility_Impl::waterRefrigeration() const { | |
| 1868 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1869 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1870 | ✗ | return mySqlFile->waterRefrigeration(); | |
| 1871 | } | ||
| 1872 | ✗ | return {}; | |
| 1873 | ✗ | } | |
| 1874 | |||
| 1875 | ✗ | OptionalDouble Facility_Impl::waterGenerators() const { | |
| 1876 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1877 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1878 | ✗ | return mySqlFile->waterGenerators(); | |
| 1879 | } | ||
| 1880 | ✗ | return {}; | |
| 1881 | ✗ | } | |
| 1882 | |||
| 1883 | ✗ | OptionalDouble Facility_Impl::waterTotalEndUses() const { | |
| 1884 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1885 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1886 | ✗ | return mySqlFile->waterTotalEndUses(); | |
| 1887 | } | ||
| 1888 | ✗ | return {}; | |
| 1889 | ✗ | } | |
| 1890 | |||
| 1891 | ✗ | OptionalDouble Facility_Impl::hoursHeatingSetpointNotMet() const { | |
| 1892 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1893 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1894 | ✗ | return mySqlFile->hoursHeatingSetpointNotMet(); | |
| 1895 | } | ||
| 1896 | ✗ | return {}; | |
| 1897 | ✗ | } | |
| 1898 | |||
| 1899 | ✗ | OptionalDouble Facility_Impl::hoursCoolingSetpointNotMet() const { | |
| 1900 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1901 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1902 | ✗ | return mySqlFile->hoursCoolingSetpointNotMet(); | |
| 1903 | } | ||
| 1904 | ✗ | return {}; | |
| 1905 | ✗ | } | |
| 1906 | |||
| 1907 | ✗ | boost::optional<EndUses> Facility_Impl::endUses() const { | |
| 1908 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1909 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1910 | ✗ | return mySqlFile->endUses(); | |
| 1911 | } | ||
| 1912 | ✗ | return {}; | |
| 1913 | ✗ | } | |
| 1914 | |||
| 1915 | ✗ | boost::optional<CalibrationResult> Facility_Impl::calibrationResult() const { | |
| 1916 | ✗ | boost::optional<CalibrationResult> result; | |
| 1917 | |||
| 1918 | ✗ | OptionalSqlFile mySqlFile = model().sqlFile(); | |
| 1919 | ✗ | if (mySqlFile && mySqlFile->connectionOpen()) { | |
| 1920 | ✗ | result = CalibrationResult(); | |
| 1921 | ✗ | for (const model::UtilityBill& utilityBill : this->model().getConcreteModelObjects<model::UtilityBill>()) { | |
| 1922 | CalibrationUtilityBill calibrationUtilityBill( | ||
| 1923 | ✗ | utilityBill.name().get(), utilityBill.fuelType(), utilityBill.meterInstallLocation(), utilityBill.meterSpecificInstallLocation(), | |
| 1924 | ✗ | utilityBill.meterEndUseCategory(), utilityBill.meterSpecificEndUse(), utilityBill.consumptionUnit(), | |
| 1925 | ✗ | utilityBill.consumptionUnitConversionFactor(), utilityBill.peakDemandUnit(), utilityBill.peakDemandUnitConversionFactor(), | |
| 1926 | ✗ | utilityBill.timestepsInPeakDemandWindow(), utilityBill.minutesInPeakDemandWindow(), utilityBill.numberBillingPeriodsInCalculations(), | |
| 1927 | ✗ | utilityBill.CVRMSE(), utilityBill.NMBE()); | |
| 1928 | |||
| 1929 | ✗ | for (const model::BillingPeriod& billingPeriod : utilityBill.billingPeriods()) { | |
| 1930 | ✗ | CalibrationBillingPeriod calibrationBillingPeriod(billingPeriod.startDate(), billingPeriod.numberOfDays(), utilityBill.consumptionUnit(), | |
| 1931 | ✗ | utilityBill.peakDemandUnit(), billingPeriod.consumption(), billingPeriod.peakDemand(), | |
| 1932 | billingPeriod.totalCost(), billingPeriod.modelConsumption(), | ||
| 1933 | ✗ | billingPeriod.modelPeakDemand(), billingPeriod.modelTotalCost()); | |
| 1934 | |||
| 1935 | ✗ | calibrationUtilityBill.addBillingPeriod(calibrationBillingPeriod); | |
| 1936 | ✗ | } | |
| 1937 | ✗ | result->addUtilityBill(calibrationUtilityBill); | |
| 1938 | ✗ | } | |
| 1939 | } | ||
| 1940 | ✗ | return result; | |
| 1941 | ✗ | } | |
| 1942 | |||
| 1943 | ✗ | boost::optional<ModelObject> Facility_Impl::buildingAsModelObject() const { | |
| 1944 | ✗ | OptionalModelObject result; | |
| 1945 | ✗ | OptionalBuilding intermediate = building(); | |
| 1946 | ✗ | if (intermediate) { | |
| 1947 | ✗ | result = *intermediate; | |
| 1948 | } | ||
| 1949 | ✗ | return result; | |
| 1950 | ✗ | } | |
| 1951 | |||
| 1952 | ✗ | std::vector<ModelObject> Facility_Impl::metersAsModelObjects() const { | |
| 1953 | ✗ | ModelObjectVector result = castVector<ModelObject>(meters()); | |
| 1954 | ✗ | return result; | |
| 1955 | } | ||
| 1956 | |||
| 1957 | ✗ | std::vector<ModelObject> Facility_Impl::exteriorLightsAsModelObjects() const { | |
| 1958 | ✗ | ModelObjectVector result = castVector<ModelObject>(exteriorLights()); | |
| 1959 | ✗ | return result; | |
| 1960 | } | ||
| 1961 | |||
| 1962 | ✗ | std::vector<ModelObject> Facility_Impl::exteriorFuelEquipmentAsModelObjects() const { | |
| 1963 | ✗ | ModelObjectVector result = castVector<ModelObject>(exteriorFuelEquipments()); | |
| 1964 | ✗ | return result; | |
| 1965 | } | ||
| 1966 | |||
| 1967 | ✗ | std::vector<ModelObject> Facility_Impl::exteriorWaterEquipmentAsModelObjects() const { | |
| 1968 | ✗ | ModelObjectVector result = castVector<ModelObject>(exteriorWaterEquipments()); | |
| 1969 | ✗ | return result; | |
| 1970 | } | ||
| 1971 | |||
| 1972 | } // namespace detail | ||
| 1973 | |||
| 1974 |
1/1✓ Branch 3 taken 70 times.
|
70 | Facility::Facility(std::shared_ptr<detail::Facility_Impl> impl) : ParentObject(std::move(impl)) {} |
| 1975 | |||
| 1976 | 298 | Facility::Facility(Model& model) : ParentObject(Facility::iddObjectType(), model) {} | |
| 1977 | |||
| 1978 | 2 | OptionalDouble Facility::totalSiteEnergy() const { | |
| 1979 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::Facility_Impl>()->totalSiteEnergy(); |
| 1980 | } | ||
| 1981 | ✗ | OptionalDouble Facility::netSiteEnergy() const { | |
| 1982 | ✗ | return getImpl<detail::Facility_Impl>()->netSiteEnergy(); | |
| 1983 | } | ||
| 1984 | ✗ | OptionalDouble Facility::totalSourceEnergy() const { | |
| 1985 | ✗ | return getImpl<detail::Facility_Impl>()->totalSourceEnergy(); | |
| 1986 | } | ||
| 1987 | ✗ | OptionalDouble Facility::netSourceEnergy() const { | |
| 1988 | ✗ | return getImpl<detail::Facility_Impl>()->netSourceEnergy(); | |
| 1989 | } | ||
| 1990 | ✗ | OptionalDouble Facility::annualTotalCost(const FuelType& fuel) const { | |
| 1991 | ✗ | return getImpl<detail::Facility_Impl>()->annualTotalCost(fuel); | |
| 1992 | } | ||
| 1993 | ✗ | OptionalDouble Facility::annualTotalCostPerBldgArea(const FuelType& fuel) const { | |
| 1994 | ✗ | return getImpl<detail::Facility_Impl>()->annualTotalCostPerBldgArea(fuel); | |
| 1995 | } | ||
| 1996 | ✗ | OptionalDouble Facility::annualTotalCostPerNetConditionedBldgArea(const FuelType& fuel) const { | |
| 1997 | ✗ | return getImpl<detail::Facility_Impl>()->annualTotalCostPerNetConditionedBldgArea(fuel); | |
| 1998 | } | ||
| 1999 | ✗ | OptionalDouble Facility::annualTotalUtilityCost() const { | |
| 2000 | ✗ | return getImpl<detail::Facility_Impl>()->annualTotalUtilityCost(); | |
| 2001 | } | ||
| 2002 | ✗ | OptionalDouble Facility::annualElectricTotalCost() const { | |
| 2003 | ✗ | return getImpl<detail::Facility_Impl>()->annualElectricTotalCost(); | |
| 2004 | } | ||
| 2005 | ✗ | OptionalDouble Facility::annualGasTotalCost() const { | |
| 2006 | ✗ | return getImpl<detail::Facility_Impl>()->annualGasTotalCost(); | |
| 2007 | } | ||
| 2008 | ✗ | OptionalDouble Facility::annualDistrictCoolingTotalCost() const { | |
| 2009 | ✗ | return getImpl<detail::Facility_Impl>()->annualDistrictCoolingTotalCost(); | |
| 2010 | } | ||
| 2011 | ✗ | OptionalDouble Facility::annualDistrictHeatingTotalCost() const { | |
| 2012 | ✗ | return getImpl<detail::Facility_Impl>()->annualDistrictHeatingTotalCost(); | |
| 2013 | } | ||
| 2014 | ✗ | OptionalDouble Facility::annualWaterTotalCost() const { | |
| 2015 | ✗ | return getImpl<detail::Facility_Impl>()->annualWaterTotalCost(); | |
| 2016 | } | ||
| 2017 | |||
| 2018 | 1 | OptionalDouble Facility::economicsCapitalCost() const { | |
| 2019 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::Facility_Impl>()->economicsCapitalCost(); |
| 2020 | } | ||
| 2021 | |||
| 2022 | ✗ | OptionalDouble Facility::economicsEnergyCost() const { | |
| 2023 | ✗ | return getImpl<detail::Facility_Impl>()->economicsEnergyCost(); | |
| 2024 | } | ||
| 2025 | |||
| 2026 | 1 | OptionalDouble Facility::economicsTLCC() const { | |
| 2027 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::Facility_Impl>()->economicsTLCC(); |
| 2028 | } | ||
| 2029 | |||
| 2030 | ✗ | OptionalDouble Facility::economicsVirtualRateGas() const { | |
| 2031 | ✗ | return getImpl<detail::Facility_Impl>()->economicsVirtualRateGas(); | |
| 2032 | } | ||
| 2033 | |||
| 2034 | ✗ | OptionalDouble Facility::economicsVirtualRateElec() const { | |
| 2035 | ✗ | return getImpl<detail::Facility_Impl>()->economicsVirtualRateElec(); | |
| 2036 | } | ||
| 2037 | |||
| 2038 | ✗ | OptionalDouble Facility::economicsVirtualRateCombined() const { | |
| 2039 | ✗ | return getImpl<detail::Facility_Impl>()->economicsVirtualRateCombined(); | |
| 2040 | } | ||
| 2041 | |||
| 2042 | ✗ | OptionalDouble Facility::economicsSPB() const { | |
| 2043 | ✗ | return getImpl<detail::Facility_Impl>()->economicsSPB(); | |
| 2044 | } | ||
| 2045 | |||
| 2046 | ✗ | OptionalDouble Facility::economicsDPB() const { | |
| 2047 | ✗ | return getImpl<detail::Facility_Impl>()->economicsDPB(); | |
| 2048 | } | ||
| 2049 | |||
| 2050 | ✗ | OptionalDouble Facility::economicsNPV() const { | |
| 2051 | ✗ | return getImpl<detail::Facility_Impl>()->economicsNPV(); | |
| 2052 | } | ||
| 2053 | |||
| 2054 | ✗ | OptionalDouble Facility::economicsIRR() const { | |
| 2055 | ✗ | return getImpl<detail::Facility_Impl>()->economicsIRR(); | |
| 2056 | } | ||
| 2057 | |||
| 2058 | ✗ | OptionalDouble Facility::electricityHeating() const { | |
| 2059 | ✗ | return getImpl<detail::Facility_Impl>()->electricityHeating(); | |
| 2060 | } | ||
| 2061 | |||
| 2062 | ✗ | OptionalDouble Facility::electricityCooling() const { | |
| 2063 | ✗ | return getImpl<detail::Facility_Impl>()->electricityCooling(); | |
| 2064 | } | ||
| 2065 | |||
| 2066 | ✗ | OptionalDouble Facility::electricityInteriorLighting() const { | |
| 2067 | ✗ | return getImpl<detail::Facility_Impl>()->electricityInteriorLighting(); | |
| 2068 | } | ||
| 2069 | |||
| 2070 | ✗ | OptionalDouble Facility::electricityExteriorLighting() const { | |
| 2071 | ✗ | return getImpl<detail::Facility_Impl>()->electricityExteriorLighting(); | |
| 2072 | } | ||
| 2073 | |||
| 2074 | ✗ | OptionalDouble Facility::electricityInteriorEquipment() const { | |
| 2075 | ✗ | return getImpl<detail::Facility_Impl>()->electricityInteriorEquipment(); | |
| 2076 | } | ||
| 2077 | |||
| 2078 | ✗ | OptionalDouble Facility::electricityExteriorEquipment() const { | |
| 2079 | ✗ | return getImpl<detail::Facility_Impl>()->electricityExteriorEquipment(); | |
| 2080 | } | ||
| 2081 | |||
| 2082 | ✗ | OptionalDouble Facility::electricityFans() const { | |
| 2083 | ✗ | return getImpl<detail::Facility_Impl>()->electricityFans(); | |
| 2084 | } | ||
| 2085 | |||
| 2086 | ✗ | OptionalDouble Facility::electricityPumps() const { | |
| 2087 | ✗ | return getImpl<detail::Facility_Impl>()->electricityPumps(); | |
| 2088 | } | ||
| 2089 | |||
| 2090 | ✗ | OptionalDouble Facility::electricityHeatRejection() const { | |
| 2091 | ✗ | return getImpl<detail::Facility_Impl>()->electricityHeatRejection(); | |
| 2092 | } | ||
| 2093 | |||
| 2094 | ✗ | OptionalDouble Facility::electricityHumidification() const { | |
| 2095 | ✗ | return getImpl<detail::Facility_Impl>()->electricityHumidification(); | |
| 2096 | } | ||
| 2097 | |||
| 2098 | ✗ | OptionalDouble Facility::electricityHeatRecovery() const { | |
| 2099 | ✗ | return getImpl<detail::Facility_Impl>()->electricityHeatRecovery(); | |
| 2100 | } | ||
| 2101 | |||
| 2102 | ✗ | OptionalDouble Facility::electricityWaterSystems() const { | |
| 2103 | ✗ | return getImpl<detail::Facility_Impl>()->electricityWaterSystems(); | |
| 2104 | } | ||
| 2105 | |||
| 2106 | ✗ | OptionalDouble Facility::electricityRefrigeration() const { | |
| 2107 | ✗ | return getImpl<detail::Facility_Impl>()->electricityRefrigeration(); | |
| 2108 | } | ||
| 2109 | |||
| 2110 | ✗ | OptionalDouble Facility::electricityGenerators() const { | |
| 2111 | ✗ | return getImpl<detail::Facility_Impl>()->electricityGenerators(); | |
| 2112 | } | ||
| 2113 | |||
| 2114 | ✗ | OptionalDouble Facility::electricityTotalEndUses() const { | |
| 2115 | ✗ | return getImpl<detail::Facility_Impl>()->electricityTotalEndUses(); | |
| 2116 | } | ||
| 2117 | |||
| 2118 | ✗ | OptionalDouble Facility::naturalGasHeating() const { | |
| 2119 | ✗ | return getImpl<detail::Facility_Impl>()->naturalGasHeating(); | |
| 2120 | } | ||
| 2121 | |||
| 2122 | ✗ | OptionalDouble Facility::naturalGasCooling() const { | |
| 2123 | ✗ | return getImpl<detail::Facility_Impl>()->naturalGasCooling(); | |
| 2124 | } | ||
| 2125 | |||
| 2126 | ✗ | OptionalDouble Facility::naturalGasInteriorLighting() const { | |
| 2127 | ✗ | return getImpl<detail::Facility_Impl>()->naturalGasInteriorLighting(); | |
| 2128 | } | ||
| 2129 | |||
| 2130 | ✗ | OptionalDouble Facility::naturalGasExteriorLighting() const { | |
| 2131 | ✗ | return getImpl<detail::Facility_Impl>()->naturalGasExteriorLighting(); | |
| 2132 | } | ||
| 2133 | |||
| 2134 | ✗ | OptionalDouble Facility::naturalGasInteriorEquipment() const { | |
| 2135 | ✗ | return getImpl<detail::Facility_Impl>()->naturalGasInteriorEquipment(); | |
| 2136 | } | ||
| 2137 | |||
| 2138 | ✗ | OptionalDouble Facility::naturalGasExteriorEquipment() const { | |
| 2139 | ✗ | return getImpl<detail::Facility_Impl>()->naturalGasExteriorEquipment(); | |
| 2140 | } | ||
| 2141 | |||
| 2142 | ✗ | OptionalDouble Facility::naturalGasFans() const { | |
| 2143 | ✗ | return getImpl<detail::Facility_Impl>()->naturalGasFans(); | |
| 2144 | } | ||
| 2145 | |||
| 2146 | ✗ | OptionalDouble Facility::naturalGasPumps() const { | |
| 2147 | ✗ | return getImpl<detail::Facility_Impl>()->naturalGasPumps(); | |
| 2148 | } | ||
| 2149 | |||
| 2150 | ✗ | OptionalDouble Facility::naturalGasHeatRejection() const { | |
| 2151 | ✗ | return getImpl<detail::Facility_Impl>()->naturalGasHeatRejection(); | |
| 2152 | } | ||
| 2153 | |||
| 2154 | ✗ | OptionalDouble Facility::naturalGasHumidification() const { | |
| 2155 | ✗ | return getImpl<detail::Facility_Impl>()->naturalGasHumidification(); | |
| 2156 | } | ||
| 2157 | |||
| 2158 | ✗ | OptionalDouble Facility::naturalGasHeatRecovery() const { | |
| 2159 | ✗ | return getImpl<detail::Facility_Impl>()->naturalGasHeatRecovery(); | |
| 2160 | } | ||
| 2161 | |||
| 2162 | ✗ | OptionalDouble Facility::naturalGasWaterSystems() const { | |
| 2163 | ✗ | return getImpl<detail::Facility_Impl>()->naturalGasWaterSystems(); | |
| 2164 | } | ||
| 2165 | |||
| 2166 | ✗ | OptionalDouble Facility::naturalGasRefrigeration() const { | |
| 2167 | ✗ | return getImpl<detail::Facility_Impl>()->naturalGasRefrigeration(); | |
| 2168 | } | ||
| 2169 | |||
| 2170 | ✗ | OptionalDouble Facility::naturalGasGenerators() const { | |
| 2171 | ✗ | return getImpl<detail::Facility_Impl>()->naturalGasGenerators(); | |
| 2172 | } | ||
| 2173 | |||
| 2174 | ✗ | OptionalDouble Facility::naturalGasTotalEndUses() const { | |
| 2175 | ✗ | return getImpl<detail::Facility_Impl>()->naturalGasTotalEndUses(); | |
| 2176 | } | ||
| 2177 | |||
| 2178 | // Gasoline | ||
| 2179 | ✗ | OptionalDouble Facility::gasolineHeating() const { | |
| 2180 | ✗ | return getImpl<detail::Facility_Impl>()->gasolineHeating(); | |
| 2181 | } | ||
| 2182 | |||
| 2183 | ✗ | OptionalDouble Facility::gasolineCooling() const { | |
| 2184 | ✗ | return getImpl<detail::Facility_Impl>()->gasolineCooling(); | |
| 2185 | } | ||
| 2186 | |||
| 2187 | ✗ | OptionalDouble Facility::gasolineInteriorLighting() const { | |
| 2188 | ✗ | return getImpl<detail::Facility_Impl>()->gasolineInteriorLighting(); | |
| 2189 | } | ||
| 2190 | |||
| 2191 | ✗ | OptionalDouble Facility::gasolineExteriorLighting() const { | |
| 2192 | ✗ | return getImpl<detail::Facility_Impl>()->gasolineExteriorLighting(); | |
| 2193 | } | ||
| 2194 | |||
| 2195 | ✗ | OptionalDouble Facility::gasolineInteriorEquipment() const { | |
| 2196 | ✗ | return getImpl<detail::Facility_Impl>()->gasolineInteriorEquipment(); | |
| 2197 | } | ||
| 2198 | |||
| 2199 | ✗ | OptionalDouble Facility::gasolineExteriorEquipment() const { | |
| 2200 | ✗ | return getImpl<detail::Facility_Impl>()->gasolineExteriorEquipment(); | |
| 2201 | } | ||
| 2202 | |||
| 2203 | ✗ | OptionalDouble Facility::gasolineFans() const { | |
| 2204 | ✗ | return getImpl<detail::Facility_Impl>()->gasolineFans(); | |
| 2205 | } | ||
| 2206 | |||
| 2207 | ✗ | OptionalDouble Facility::gasolinePumps() const { | |
| 2208 | ✗ | return getImpl<detail::Facility_Impl>()->gasolinePumps(); | |
| 2209 | } | ||
| 2210 | |||
| 2211 | ✗ | OptionalDouble Facility::gasolineHeatRejection() const { | |
| 2212 | ✗ | return getImpl<detail::Facility_Impl>()->gasolineHeatRejection(); | |
| 2213 | } | ||
| 2214 | |||
| 2215 | ✗ | OptionalDouble Facility::gasolineHumidification() const { | |
| 2216 | ✗ | return getImpl<detail::Facility_Impl>()->gasolineHumidification(); | |
| 2217 | } | ||
| 2218 | |||
| 2219 | ✗ | OptionalDouble Facility::gasolineHeatRecovery() const { | |
| 2220 | ✗ | return getImpl<detail::Facility_Impl>()->gasolineHeatRecovery(); | |
| 2221 | } | ||
| 2222 | |||
| 2223 | ✗ | OptionalDouble Facility::gasolineWaterSystems() const { | |
| 2224 | ✗ | return getImpl<detail::Facility_Impl>()->gasolineWaterSystems(); | |
| 2225 | } | ||
| 2226 | |||
| 2227 | ✗ | OptionalDouble Facility::gasolineRefrigeration() const { | |
| 2228 | ✗ | return getImpl<detail::Facility_Impl>()->gasolineRefrigeration(); | |
| 2229 | } | ||
| 2230 | |||
| 2231 | ✗ | OptionalDouble Facility::gasolineGenerators() const { | |
| 2232 | ✗ | return getImpl<detail::Facility_Impl>()->gasolineGenerators(); | |
| 2233 | } | ||
| 2234 | |||
| 2235 | ✗ | OptionalDouble Facility::gasolineTotalEndUses() const { | |
| 2236 | ✗ | return getImpl<detail::Facility_Impl>()->gasolineTotalEndUses(); | |
| 2237 | } | ||
| 2238 | |||
| 2239 | // Diesel | ||
| 2240 | ✗ | OptionalDouble Facility::dieselHeating() const { | |
| 2241 | ✗ | return getImpl<detail::Facility_Impl>()->dieselHeating(); | |
| 2242 | } | ||
| 2243 | |||
| 2244 | ✗ | OptionalDouble Facility::dieselCooling() const { | |
| 2245 | ✗ | return getImpl<detail::Facility_Impl>()->dieselCooling(); | |
| 2246 | } | ||
| 2247 | |||
| 2248 | ✗ | OptionalDouble Facility::dieselInteriorLighting() const { | |
| 2249 | ✗ | return getImpl<detail::Facility_Impl>()->dieselInteriorLighting(); | |
| 2250 | } | ||
| 2251 | |||
| 2252 | ✗ | OptionalDouble Facility::dieselExteriorLighting() const { | |
| 2253 | ✗ | return getImpl<detail::Facility_Impl>()->dieselExteriorLighting(); | |
| 2254 | } | ||
| 2255 | |||
| 2256 | ✗ | OptionalDouble Facility::dieselInteriorEquipment() const { | |
| 2257 | ✗ | return getImpl<detail::Facility_Impl>()->dieselInteriorEquipment(); | |
| 2258 | } | ||
| 2259 | |||
| 2260 | ✗ | OptionalDouble Facility::dieselExteriorEquipment() const { | |
| 2261 | ✗ | return getImpl<detail::Facility_Impl>()->dieselExteriorEquipment(); | |
| 2262 | } | ||
| 2263 | |||
| 2264 | ✗ | OptionalDouble Facility::dieselFans() const { | |
| 2265 | ✗ | return getImpl<detail::Facility_Impl>()->dieselFans(); | |
| 2266 | } | ||
| 2267 | |||
| 2268 | ✗ | OptionalDouble Facility::dieselPumps() const { | |
| 2269 | ✗ | return getImpl<detail::Facility_Impl>()->dieselPumps(); | |
| 2270 | } | ||
| 2271 | |||
| 2272 | ✗ | OptionalDouble Facility::dieselHeatRejection() const { | |
| 2273 | ✗ | return getImpl<detail::Facility_Impl>()->dieselHeatRejection(); | |
| 2274 | } | ||
| 2275 | |||
| 2276 | ✗ | OptionalDouble Facility::dieselHumidification() const { | |
| 2277 | ✗ | return getImpl<detail::Facility_Impl>()->dieselHumidification(); | |
| 2278 | } | ||
| 2279 | |||
| 2280 | ✗ | OptionalDouble Facility::dieselHeatRecovery() const { | |
| 2281 | ✗ | return getImpl<detail::Facility_Impl>()->dieselHeatRecovery(); | |
| 2282 | } | ||
| 2283 | |||
| 2284 | ✗ | OptionalDouble Facility::dieselWaterSystems() const { | |
| 2285 | ✗ | return getImpl<detail::Facility_Impl>()->dieselWaterSystems(); | |
| 2286 | } | ||
| 2287 | |||
| 2288 | ✗ | OptionalDouble Facility::dieselRefrigeration() const { | |
| 2289 | ✗ | return getImpl<detail::Facility_Impl>()->dieselRefrigeration(); | |
| 2290 | } | ||
| 2291 | |||
| 2292 | ✗ | OptionalDouble Facility::dieselGenerators() const { | |
| 2293 | ✗ | return getImpl<detail::Facility_Impl>()->dieselGenerators(); | |
| 2294 | } | ||
| 2295 | |||
| 2296 | ✗ | OptionalDouble Facility::dieselTotalEndUses() const { | |
| 2297 | ✗ | return getImpl<detail::Facility_Impl>()->dieselTotalEndUses(); | |
| 2298 | } | ||
| 2299 | |||
| 2300 | // Coal | ||
| 2301 | ✗ | OptionalDouble Facility::coalHeating() const { | |
| 2302 | ✗ | return getImpl<detail::Facility_Impl>()->coalHeating(); | |
| 2303 | } | ||
| 2304 | |||
| 2305 | ✗ | OptionalDouble Facility::coalCooling() const { | |
| 2306 | ✗ | return getImpl<detail::Facility_Impl>()->coalCooling(); | |
| 2307 | } | ||
| 2308 | |||
| 2309 | ✗ | OptionalDouble Facility::coalInteriorLighting() const { | |
| 2310 | ✗ | return getImpl<detail::Facility_Impl>()->coalInteriorLighting(); | |
| 2311 | } | ||
| 2312 | |||
| 2313 | ✗ | OptionalDouble Facility::coalExteriorLighting() const { | |
| 2314 | ✗ | return getImpl<detail::Facility_Impl>()->coalExteriorLighting(); | |
| 2315 | } | ||
| 2316 | |||
| 2317 | ✗ | OptionalDouble Facility::coalInteriorEquipment() const { | |
| 2318 | ✗ | return getImpl<detail::Facility_Impl>()->coalInteriorEquipment(); | |
| 2319 | } | ||
| 2320 | |||
| 2321 | ✗ | OptionalDouble Facility::coalExteriorEquipment() const { | |
| 2322 | ✗ | return getImpl<detail::Facility_Impl>()->coalExteriorEquipment(); | |
| 2323 | } | ||
| 2324 | |||
| 2325 | ✗ | OptionalDouble Facility::coalFans() const { | |
| 2326 | ✗ | return getImpl<detail::Facility_Impl>()->coalFans(); | |
| 2327 | } | ||
| 2328 | |||
| 2329 | ✗ | OptionalDouble Facility::coalPumps() const { | |
| 2330 | ✗ | return getImpl<detail::Facility_Impl>()->coalPumps(); | |
| 2331 | } | ||
| 2332 | |||
| 2333 | ✗ | OptionalDouble Facility::coalHeatRejection() const { | |
| 2334 | ✗ | return getImpl<detail::Facility_Impl>()->coalHeatRejection(); | |
| 2335 | } | ||
| 2336 | |||
| 2337 | ✗ | OptionalDouble Facility::coalHumidification() const { | |
| 2338 | ✗ | return getImpl<detail::Facility_Impl>()->coalHumidification(); | |
| 2339 | } | ||
| 2340 | |||
| 2341 | ✗ | OptionalDouble Facility::coalHeatRecovery() const { | |
| 2342 | ✗ | return getImpl<detail::Facility_Impl>()->coalHeatRecovery(); | |
| 2343 | } | ||
| 2344 | |||
| 2345 | ✗ | OptionalDouble Facility::coalWaterSystems() const { | |
| 2346 | ✗ | return getImpl<detail::Facility_Impl>()->coalWaterSystems(); | |
| 2347 | } | ||
| 2348 | |||
| 2349 | ✗ | OptionalDouble Facility::coalRefrigeration() const { | |
| 2350 | ✗ | return getImpl<detail::Facility_Impl>()->coalRefrigeration(); | |
| 2351 | } | ||
| 2352 | |||
| 2353 | ✗ | OptionalDouble Facility::coalGenerators() const { | |
| 2354 | ✗ | return getImpl<detail::Facility_Impl>()->coalGenerators(); | |
| 2355 | } | ||
| 2356 | |||
| 2357 | ✗ | OptionalDouble Facility::coalTotalEndUses() const { | |
| 2358 | ✗ | return getImpl<detail::Facility_Impl>()->coalTotalEndUses(); | |
| 2359 | } | ||
| 2360 | |||
| 2361 | // Fuel Oil No 1 | ||
| 2362 | ✗ | OptionalDouble Facility::fuelOilNo1Heating() const { | |
| 2363 | ✗ | return getImpl<detail::Facility_Impl>()->fuelOilNo1Heating(); | |
| 2364 | } | ||
| 2365 | |||
| 2366 | ✗ | OptionalDouble Facility::fuelOilNo1Cooling() const { | |
| 2367 | ✗ | return getImpl<detail::Facility_Impl>()->fuelOilNo1Cooling(); | |
| 2368 | } | ||
| 2369 | |||
| 2370 | ✗ | OptionalDouble Facility::fuelOilNo1InteriorLighting() const { | |
| 2371 | ✗ | return getImpl<detail::Facility_Impl>()->fuelOilNo1InteriorLighting(); | |
| 2372 | } | ||
| 2373 | |||
| 2374 | ✗ | OptionalDouble Facility::fuelOilNo1ExteriorLighting() const { | |
| 2375 | ✗ | return getImpl<detail::Facility_Impl>()->fuelOilNo1ExteriorLighting(); | |
| 2376 | } | ||
| 2377 | |||
| 2378 | ✗ | OptionalDouble Facility::fuelOilNo1InteriorEquipment() const { | |
| 2379 | ✗ | return getImpl<detail::Facility_Impl>()->fuelOilNo1InteriorEquipment(); | |
| 2380 | } | ||
| 2381 | |||
| 2382 | ✗ | OptionalDouble Facility::fuelOilNo1ExteriorEquipment() const { | |
| 2383 | ✗ | return getImpl<detail::Facility_Impl>()->fuelOilNo1ExteriorEquipment(); | |
| 2384 | } | ||
| 2385 | |||
| 2386 | ✗ | OptionalDouble Facility::fuelOilNo1Fans() const { | |
| 2387 | ✗ | return getImpl<detail::Facility_Impl>()->fuelOilNo1Fans(); | |
| 2388 | } | ||
| 2389 | |||
| 2390 | ✗ | OptionalDouble Facility::fuelOilNo1Pumps() const { | |
| 2391 | ✗ | return getImpl<detail::Facility_Impl>()->fuelOilNo1Pumps(); | |
| 2392 | } | ||
| 2393 | |||
| 2394 | ✗ | OptionalDouble Facility::fuelOilNo1HeatRejection() const { | |
| 2395 | ✗ | return getImpl<detail::Facility_Impl>()->fuelOilNo1HeatRejection(); | |
| 2396 | } | ||
| 2397 | |||
| 2398 | ✗ | OptionalDouble Facility::fuelOilNo1Humidification() const { | |
| 2399 | ✗ | return getImpl<detail::Facility_Impl>()->fuelOilNo1Humidification(); | |
| 2400 | } | ||
| 2401 | |||
| 2402 | ✗ | OptionalDouble Facility::fuelOilNo1HeatRecovery() const { | |
| 2403 | ✗ | return getImpl<detail::Facility_Impl>()->fuelOilNo1HeatRecovery(); | |
| 2404 | } | ||
| 2405 | |||
| 2406 | ✗ | OptionalDouble Facility::fuelOilNo1WaterSystems() const { | |
| 2407 | ✗ | return getImpl<detail::Facility_Impl>()->fuelOilNo1WaterSystems(); | |
| 2408 | } | ||
| 2409 | |||
| 2410 | ✗ | OptionalDouble Facility::fuelOilNo1Refrigeration() const { | |
| 2411 | ✗ | return getImpl<detail::Facility_Impl>()->fuelOilNo1Refrigeration(); | |
| 2412 | } | ||
| 2413 | |||
| 2414 | ✗ | OptionalDouble Facility::fuelOilNo1Generators() const { | |
| 2415 | ✗ | return getImpl<detail::Facility_Impl>()->fuelOilNo1Generators(); | |
| 2416 | } | ||
| 2417 | |||
| 2418 | ✗ | OptionalDouble Facility::fuelOilNo1TotalEndUses() const { | |
| 2419 | ✗ | return getImpl<detail::Facility_Impl>()->fuelOilNo1TotalEndUses(); | |
| 2420 | } | ||
| 2421 | |||
| 2422 | // Fuel Oil No 2 | ||
| 2423 | ✗ | OptionalDouble Facility::fuelOilNo2Heating() const { | |
| 2424 | ✗ | return getImpl<detail::Facility_Impl>()->fuelOilNo2Heating(); | |
| 2425 | } | ||
| 2426 | |||
| 2427 | ✗ | OptionalDouble Facility::fuelOilNo2Cooling() const { | |
| 2428 | ✗ | return getImpl<detail::Facility_Impl>()->fuelOilNo2Cooling(); | |
| 2429 | } | ||
| 2430 | |||
| 2431 | ✗ | OptionalDouble Facility::fuelOilNo2InteriorLighting() const { | |
| 2432 | ✗ | return getImpl<detail::Facility_Impl>()->fuelOilNo2InteriorLighting(); | |
| 2433 | } | ||
| 2434 | |||
| 2435 | ✗ | OptionalDouble Facility::fuelOilNo2ExteriorLighting() const { | |
| 2436 | ✗ | return getImpl<detail::Facility_Impl>()->fuelOilNo2ExteriorLighting(); | |
| 2437 | } | ||
| 2438 | |||
| 2439 | ✗ | OptionalDouble Facility::fuelOilNo2InteriorEquipment() const { | |
| 2440 | ✗ | return getImpl<detail::Facility_Impl>()->fuelOilNo2InteriorEquipment(); | |
| 2441 | } | ||
| 2442 | |||
| 2443 | ✗ | OptionalDouble Facility::fuelOilNo2ExteriorEquipment() const { | |
| 2444 | ✗ | return getImpl<detail::Facility_Impl>()->fuelOilNo2ExteriorEquipment(); | |
| 2445 | } | ||
| 2446 | |||
| 2447 | ✗ | OptionalDouble Facility::fuelOilNo2Fans() const { | |
| 2448 | ✗ | return getImpl<detail::Facility_Impl>()->fuelOilNo2Fans(); | |
| 2449 | } | ||
| 2450 | |||
| 2451 | ✗ | OptionalDouble Facility::fuelOilNo2Pumps() const { | |
| 2452 | ✗ | return getImpl<detail::Facility_Impl>()->fuelOilNo2Pumps(); | |
| 2453 | } | ||
| 2454 | |||
| 2455 | ✗ | OptionalDouble Facility::fuelOilNo2HeatRejection() const { | |
| 2456 | ✗ | return getImpl<detail::Facility_Impl>()->fuelOilNo2HeatRejection(); | |
| 2457 | } | ||
| 2458 | |||
| 2459 | ✗ | OptionalDouble Facility::fuelOilNo2Humidification() const { | |
| 2460 | ✗ | return getImpl<detail::Facility_Impl>()->fuelOilNo2Humidification(); | |
| 2461 | } | ||
| 2462 | |||
| 2463 | ✗ | OptionalDouble Facility::fuelOilNo2HeatRecovery() const { | |
| 2464 | ✗ | return getImpl<detail::Facility_Impl>()->fuelOilNo2HeatRecovery(); | |
| 2465 | } | ||
| 2466 | |||
| 2467 | ✗ | OptionalDouble Facility::fuelOilNo2WaterSystems() const { | |
| 2468 | ✗ | return getImpl<detail::Facility_Impl>()->fuelOilNo2WaterSystems(); | |
| 2469 | } | ||
| 2470 | |||
| 2471 | ✗ | OptionalDouble Facility::fuelOilNo2Refrigeration() const { | |
| 2472 | ✗ | return getImpl<detail::Facility_Impl>()->fuelOilNo2Refrigeration(); | |
| 2473 | } | ||
| 2474 | |||
| 2475 | ✗ | OptionalDouble Facility::fuelOilNo2Generators() const { | |
| 2476 | ✗ | return getImpl<detail::Facility_Impl>()->fuelOilNo2Generators(); | |
| 2477 | } | ||
| 2478 | |||
| 2479 | ✗ | OptionalDouble Facility::fuelOilNo2TotalEndUses() const { | |
| 2480 | ✗ | return getImpl<detail::Facility_Impl>()->fuelOilNo2TotalEndUses(); | |
| 2481 | } | ||
| 2482 | |||
| 2483 | // Propane | ||
| 2484 | ✗ | OptionalDouble Facility::propaneHeating() const { | |
| 2485 | ✗ | return getImpl<detail::Facility_Impl>()->propaneHeating(); | |
| 2486 | } | ||
| 2487 | |||
| 2488 | ✗ | OptionalDouble Facility::propaneCooling() const { | |
| 2489 | ✗ | return getImpl<detail::Facility_Impl>()->propaneCooling(); | |
| 2490 | } | ||
| 2491 | |||
| 2492 | ✗ | OptionalDouble Facility::propaneInteriorLighting() const { | |
| 2493 | ✗ | return getImpl<detail::Facility_Impl>()->propaneInteriorLighting(); | |
| 2494 | } | ||
| 2495 | |||
| 2496 | ✗ | OptionalDouble Facility::propaneExteriorLighting() const { | |
| 2497 | ✗ | return getImpl<detail::Facility_Impl>()->propaneExteriorLighting(); | |
| 2498 | } | ||
| 2499 | |||
| 2500 | ✗ | OptionalDouble Facility::propaneInteriorEquipment() const { | |
| 2501 | ✗ | return getImpl<detail::Facility_Impl>()->propaneInteriorEquipment(); | |
| 2502 | } | ||
| 2503 | |||
| 2504 | ✗ | OptionalDouble Facility::propaneExteriorEquipment() const { | |
| 2505 | ✗ | return getImpl<detail::Facility_Impl>()->propaneExteriorEquipment(); | |
| 2506 | } | ||
| 2507 | |||
| 2508 | ✗ | OptionalDouble Facility::propaneFans() const { | |
| 2509 | ✗ | return getImpl<detail::Facility_Impl>()->propaneFans(); | |
| 2510 | } | ||
| 2511 | |||
| 2512 | ✗ | OptionalDouble Facility::propanePumps() const { | |
| 2513 | ✗ | return getImpl<detail::Facility_Impl>()->propanePumps(); | |
| 2514 | } | ||
| 2515 | |||
| 2516 | ✗ | OptionalDouble Facility::propaneHeatRejection() const { | |
| 2517 | ✗ | return getImpl<detail::Facility_Impl>()->propaneHeatRejection(); | |
| 2518 | } | ||
| 2519 | |||
| 2520 | ✗ | OptionalDouble Facility::propaneHumidification() const { | |
| 2521 | ✗ | return getImpl<detail::Facility_Impl>()->propaneHumidification(); | |
| 2522 | } | ||
| 2523 | |||
| 2524 | ✗ | OptionalDouble Facility::propaneHeatRecovery() const { | |
| 2525 | ✗ | return getImpl<detail::Facility_Impl>()->propaneHeatRecovery(); | |
| 2526 | } | ||
| 2527 | |||
| 2528 | ✗ | OptionalDouble Facility::propaneWaterSystems() const { | |
| 2529 | ✗ | return getImpl<detail::Facility_Impl>()->propaneWaterSystems(); | |
| 2530 | } | ||
| 2531 | |||
| 2532 | ✗ | OptionalDouble Facility::propaneRefrigeration() const { | |
| 2533 | ✗ | return getImpl<detail::Facility_Impl>()->propaneRefrigeration(); | |
| 2534 | } | ||
| 2535 | |||
| 2536 | ✗ | OptionalDouble Facility::propaneGenerators() const { | |
| 2537 | ✗ | return getImpl<detail::Facility_Impl>()->propaneGenerators(); | |
| 2538 | } | ||
| 2539 | |||
| 2540 | ✗ | OptionalDouble Facility::propaneTotalEndUses() const { | |
| 2541 | ✗ | return getImpl<detail::Facility_Impl>()->propaneTotalEndUses(); | |
| 2542 | } | ||
| 2543 | |||
| 2544 | // Other Fuel 1 | ||
| 2545 | ✗ | OptionalDouble Facility::otherFuel1Heating() const { | |
| 2546 | ✗ | return getImpl<detail::Facility_Impl>()->otherFuel1Heating(); | |
| 2547 | } | ||
| 2548 | |||
| 2549 | ✗ | OptionalDouble Facility::otherFuel1Cooling() const { | |
| 2550 | ✗ | return getImpl<detail::Facility_Impl>()->otherFuel1Cooling(); | |
| 2551 | } | ||
| 2552 | |||
| 2553 | ✗ | OptionalDouble Facility::otherFuel1InteriorLighting() const { | |
| 2554 | ✗ | return getImpl<detail::Facility_Impl>()->otherFuel1InteriorLighting(); | |
| 2555 | } | ||
| 2556 | |||
| 2557 | ✗ | OptionalDouble Facility::otherFuel1ExteriorLighting() const { | |
| 2558 | ✗ | return getImpl<detail::Facility_Impl>()->otherFuel1ExteriorLighting(); | |
| 2559 | } | ||
| 2560 | |||
| 2561 | ✗ | OptionalDouble Facility::otherFuel1InteriorEquipment() const { | |
| 2562 | ✗ | return getImpl<detail::Facility_Impl>()->otherFuel1InteriorEquipment(); | |
| 2563 | } | ||
| 2564 | |||
| 2565 | ✗ | OptionalDouble Facility::otherFuel1ExteriorEquipment() const { | |
| 2566 | ✗ | return getImpl<detail::Facility_Impl>()->otherFuel1ExteriorEquipment(); | |
| 2567 | } | ||
| 2568 | |||
| 2569 | ✗ | OptionalDouble Facility::otherFuel1Fans() const { | |
| 2570 | ✗ | return getImpl<detail::Facility_Impl>()->otherFuel1Fans(); | |
| 2571 | } | ||
| 2572 | |||
| 2573 | ✗ | OptionalDouble Facility::otherFuel1Pumps() const { | |
| 2574 | ✗ | return getImpl<detail::Facility_Impl>()->otherFuel1Pumps(); | |
| 2575 | } | ||
| 2576 | |||
| 2577 | ✗ | OptionalDouble Facility::otherFuel1HeatRejection() const { | |
| 2578 | ✗ | return getImpl<detail::Facility_Impl>()->otherFuel1HeatRejection(); | |
| 2579 | } | ||
| 2580 | |||
| 2581 | ✗ | OptionalDouble Facility::otherFuel1Humidification() const { | |
| 2582 | ✗ | return getImpl<detail::Facility_Impl>()->otherFuel1Humidification(); | |
| 2583 | } | ||
| 2584 | |||
| 2585 | ✗ | OptionalDouble Facility::otherFuel1HeatRecovery() const { | |
| 2586 | ✗ | return getImpl<detail::Facility_Impl>()->otherFuel1HeatRecovery(); | |
| 2587 | } | ||
| 2588 | |||
| 2589 | ✗ | OptionalDouble Facility::otherFuel1WaterSystems() const { | |
| 2590 | ✗ | return getImpl<detail::Facility_Impl>()->otherFuel1WaterSystems(); | |
| 2591 | } | ||
| 2592 | |||
| 2593 | ✗ | OptionalDouble Facility::otherFuel1Refrigeration() const { | |
| 2594 | ✗ | return getImpl<detail::Facility_Impl>()->otherFuel1Refrigeration(); | |
| 2595 | } | ||
| 2596 | |||
| 2597 | ✗ | OptionalDouble Facility::otherFuel1Generators() const { | |
| 2598 | ✗ | return getImpl<detail::Facility_Impl>()->otherFuel1Generators(); | |
| 2599 | } | ||
| 2600 | |||
| 2601 | ✗ | OptionalDouble Facility::otherFuel1TotalEndUses() const { | |
| 2602 | ✗ | return getImpl<detail::Facility_Impl>()->otherFuel1TotalEndUses(); | |
| 2603 | } | ||
| 2604 | |||
| 2605 | // Other Fuel 2 | ||
| 2606 | ✗ | OptionalDouble Facility::otherFuel2Heating() const { | |
| 2607 | ✗ | return getImpl<detail::Facility_Impl>()->otherFuel2Heating(); | |
| 2608 | } | ||
| 2609 | |||
| 2610 | ✗ | OptionalDouble Facility::otherFuel2Cooling() const { | |
| 2611 | ✗ | return getImpl<detail::Facility_Impl>()->otherFuel2Cooling(); | |
| 2612 | } | ||
| 2613 | |||
| 2614 | ✗ | OptionalDouble Facility::otherFuel2InteriorLighting() const { | |
| 2615 | ✗ | return getImpl<detail::Facility_Impl>()->otherFuel2InteriorLighting(); | |
| 2616 | } | ||
| 2617 | |||
| 2618 | ✗ | OptionalDouble Facility::otherFuel2ExteriorLighting() const { | |
| 2619 | ✗ | return getImpl<detail::Facility_Impl>()->otherFuel2ExteriorLighting(); | |
| 2620 | } | ||
| 2621 | |||
| 2622 | ✗ | OptionalDouble Facility::otherFuel2InteriorEquipment() const { | |
| 2623 | ✗ | return getImpl<detail::Facility_Impl>()->otherFuel2InteriorEquipment(); | |
| 2624 | } | ||
| 2625 | |||
| 2626 | ✗ | OptionalDouble Facility::otherFuel2ExteriorEquipment() const { | |
| 2627 | ✗ | return getImpl<detail::Facility_Impl>()->otherFuel2ExteriorEquipment(); | |
| 2628 | } | ||
| 2629 | |||
| 2630 | ✗ | OptionalDouble Facility::otherFuel2Fans() const { | |
| 2631 | ✗ | return getImpl<detail::Facility_Impl>()->otherFuel2Fans(); | |
| 2632 | } | ||
| 2633 | |||
| 2634 | ✗ | OptionalDouble Facility::otherFuel2Pumps() const { | |
| 2635 | ✗ | return getImpl<detail::Facility_Impl>()->otherFuel2Pumps(); | |
| 2636 | } | ||
| 2637 | |||
| 2638 | ✗ | OptionalDouble Facility::otherFuel2HeatRejection() const { | |
| 2639 | ✗ | return getImpl<detail::Facility_Impl>()->otherFuel2HeatRejection(); | |
| 2640 | } | ||
| 2641 | |||
| 2642 | ✗ | OptionalDouble Facility::otherFuel2Humidification() const { | |
| 2643 | ✗ | return getImpl<detail::Facility_Impl>()->otherFuel2Humidification(); | |
| 2644 | } | ||
| 2645 | |||
| 2646 | ✗ | OptionalDouble Facility::otherFuel2HeatRecovery() const { | |
| 2647 | ✗ | return getImpl<detail::Facility_Impl>()->otherFuel2HeatRecovery(); | |
| 2648 | } | ||
| 2649 | |||
| 2650 | ✗ | OptionalDouble Facility::otherFuel2WaterSystems() const { | |
| 2651 | ✗ | return getImpl<detail::Facility_Impl>()->otherFuel2WaterSystems(); | |
| 2652 | } | ||
| 2653 | |||
| 2654 | ✗ | OptionalDouble Facility::otherFuel2Refrigeration() const { | |
| 2655 | ✗ | return getImpl<detail::Facility_Impl>()->otherFuel2Refrigeration(); | |
| 2656 | } | ||
| 2657 | |||
| 2658 | ✗ | OptionalDouble Facility::otherFuel2Generators() const { | |
| 2659 | ✗ | return getImpl<detail::Facility_Impl>()->otherFuel2Generators(); | |
| 2660 | } | ||
| 2661 | |||
| 2662 | ✗ | OptionalDouble Facility::otherFuel2TotalEndUses() const { | |
| 2663 | ✗ | return getImpl<detail::Facility_Impl>()->otherFuel2TotalEndUses(); | |
| 2664 | } | ||
| 2665 | |||
| 2666 | ✗ | OptionalDouble Facility::districtCoolingHeating() const { | |
| 2667 | ✗ | return getImpl<detail::Facility_Impl>()->districtCoolingHeating(); | |
| 2668 | } | ||
| 2669 | |||
| 2670 | ✗ | OptionalDouble Facility::districtCoolingCooling() const { | |
| 2671 | ✗ | return getImpl<detail::Facility_Impl>()->districtCoolingCooling(); | |
| 2672 | } | ||
| 2673 | |||
| 2674 | ✗ | OptionalDouble Facility::districtCoolingInteriorLighting() const { | |
| 2675 | ✗ | return getImpl<detail::Facility_Impl>()->districtCoolingInteriorLighting(); | |
| 2676 | } | ||
| 2677 | |||
| 2678 | ✗ | OptionalDouble Facility::districtCoolingExteriorLighting() const { | |
| 2679 | ✗ | return getImpl<detail::Facility_Impl>()->districtCoolingExteriorLighting(); | |
| 2680 | } | ||
| 2681 | |||
| 2682 | ✗ | OptionalDouble Facility::districtCoolingInteriorEquipment() const { | |
| 2683 | ✗ | return getImpl<detail::Facility_Impl>()->districtCoolingInteriorEquipment(); | |
| 2684 | } | ||
| 2685 | |||
| 2686 | ✗ | OptionalDouble Facility::districtCoolingExteriorEquipment() const { | |
| 2687 | ✗ | return getImpl<detail::Facility_Impl>()->districtCoolingExteriorEquipment(); | |
| 2688 | } | ||
| 2689 | |||
| 2690 | ✗ | OptionalDouble Facility::districtCoolingFans() const { | |
| 2691 | ✗ | return getImpl<detail::Facility_Impl>()->districtCoolingFans(); | |
| 2692 | } | ||
| 2693 | |||
| 2694 | ✗ | OptionalDouble Facility::districtCoolingPumps() const { | |
| 2695 | ✗ | return getImpl<detail::Facility_Impl>()->districtCoolingPumps(); | |
| 2696 | } | ||
| 2697 | |||
| 2698 | ✗ | OptionalDouble Facility::districtCoolingHeatRejection() const { | |
| 2699 | ✗ | return getImpl<detail::Facility_Impl>()->districtCoolingHeatRejection(); | |
| 2700 | } | ||
| 2701 | |||
| 2702 | ✗ | OptionalDouble Facility::districtCoolingHumidification() const { | |
| 2703 | ✗ | return getImpl<detail::Facility_Impl>()->districtCoolingHumidification(); | |
| 2704 | } | ||
| 2705 | |||
| 2706 | ✗ | OptionalDouble Facility::districtCoolingHeatRecovery() const { | |
| 2707 | ✗ | return getImpl<detail::Facility_Impl>()->districtCoolingHeatRecovery(); | |
| 2708 | } | ||
| 2709 | |||
| 2710 | ✗ | OptionalDouble Facility::districtCoolingWaterSystems() const { | |
| 2711 | ✗ | return getImpl<detail::Facility_Impl>()->districtCoolingWaterSystems(); | |
| 2712 | } | ||
| 2713 | |||
| 2714 | ✗ | OptionalDouble Facility::districtCoolingRefrigeration() const { | |
| 2715 | ✗ | return getImpl<detail::Facility_Impl>()->districtCoolingRefrigeration(); | |
| 2716 | } | ||
| 2717 | |||
| 2718 | ✗ | OptionalDouble Facility::districtCoolingGenerators() const { | |
| 2719 | ✗ | return getImpl<detail::Facility_Impl>()->districtCoolingGenerators(); | |
| 2720 | } | ||
| 2721 | |||
| 2722 | ✗ | OptionalDouble Facility::districtCoolingTotalEndUses() const { | |
| 2723 | ✗ | return getImpl<detail::Facility_Impl>()->districtCoolingTotalEndUses(); | |
| 2724 | } | ||
| 2725 | |||
| 2726 | ✗ | OptionalDouble Facility::districtHeatingHeating() const { | |
| 2727 | ✗ | return getImpl<detail::Facility_Impl>()->districtHeatingHeating(); | |
| 2728 | } | ||
| 2729 | |||
| 2730 | ✗ | OptionalDouble Facility::districtHeatingCooling() const { | |
| 2731 | ✗ | return getImpl<detail::Facility_Impl>()->districtHeatingCooling(); | |
| 2732 | } | ||
| 2733 | |||
| 2734 | ✗ | OptionalDouble Facility::districtHeatingInteriorLighting() const { | |
| 2735 | ✗ | return getImpl<detail::Facility_Impl>()->districtHeatingInteriorLighting(); | |
| 2736 | } | ||
| 2737 | |||
| 2738 | ✗ | OptionalDouble Facility::districtHeatingExteriorLighting() const { | |
| 2739 | ✗ | return getImpl<detail::Facility_Impl>()->districtHeatingExteriorLighting(); | |
| 2740 | } | ||
| 2741 | |||
| 2742 | ✗ | OptionalDouble Facility::districtHeatingInteriorEquipment() const { | |
| 2743 | ✗ | return getImpl<detail::Facility_Impl>()->districtHeatingInteriorEquipment(); | |
| 2744 | } | ||
| 2745 | |||
| 2746 | ✗ | OptionalDouble Facility::districtHeatingExteriorEquipment() const { | |
| 2747 | ✗ | return getImpl<detail::Facility_Impl>()->districtHeatingExteriorEquipment(); | |
| 2748 | } | ||
| 2749 | |||
| 2750 | ✗ | OptionalDouble Facility::districtHeatingFans() const { | |
| 2751 | ✗ | return getImpl<detail::Facility_Impl>()->districtHeatingFans(); | |
| 2752 | } | ||
| 2753 | |||
| 2754 | ✗ | OptionalDouble Facility::districtHeatingPumps() const { | |
| 2755 | ✗ | return getImpl<detail::Facility_Impl>()->districtHeatingPumps(); | |
| 2756 | } | ||
| 2757 | |||
| 2758 | ✗ | OptionalDouble Facility::districtHeatingHeatRejection() const { | |
| 2759 | ✗ | return getImpl<detail::Facility_Impl>()->districtHeatingHeatRejection(); | |
| 2760 | } | ||
| 2761 | |||
| 2762 | ✗ | OptionalDouble Facility::districtHeatingHumidification() const { | |
| 2763 | ✗ | return getImpl<detail::Facility_Impl>()->districtHeatingHumidification(); | |
| 2764 | } | ||
| 2765 | |||
| 2766 | ✗ | OptionalDouble Facility::districtHeatingHeatRecovery() const { | |
| 2767 | ✗ | return getImpl<detail::Facility_Impl>()->districtHeatingHeatRecovery(); | |
| 2768 | } | ||
| 2769 | |||
| 2770 | ✗ | OptionalDouble Facility::districtHeatingWaterSystems() const { | |
| 2771 | ✗ | return getImpl<detail::Facility_Impl>()->districtHeatingWaterSystems(); | |
| 2772 | } | ||
| 2773 | |||
| 2774 | ✗ | OptionalDouble Facility::districtHeatingRefrigeration() const { | |
| 2775 | ✗ | return getImpl<detail::Facility_Impl>()->districtHeatingRefrigeration(); | |
| 2776 | } | ||
| 2777 | |||
| 2778 | ✗ | OptionalDouble Facility::districtHeatingGenerators() const { | |
| 2779 | ✗ | return getImpl<detail::Facility_Impl>()->districtHeatingGenerators(); | |
| 2780 | } | ||
| 2781 | |||
| 2782 | ✗ | OptionalDouble Facility::districtHeatingTotalEndUses() const { | |
| 2783 | ✗ | return getImpl<detail::Facility_Impl>()->districtHeatingTotalEndUses(); | |
| 2784 | } | ||
| 2785 | |||
| 2786 | ✗ | OptionalDouble Facility::waterHeating() const { | |
| 2787 | ✗ | return getImpl<detail::Facility_Impl>()->waterHeating(); | |
| 2788 | } | ||
| 2789 | |||
| 2790 | ✗ | OptionalDouble Facility::waterCooling() const { | |
| 2791 | ✗ | return getImpl<detail::Facility_Impl>()->waterCooling(); | |
| 2792 | } | ||
| 2793 | |||
| 2794 | ✗ | OptionalDouble Facility::waterInteriorLighting() const { | |
| 2795 | ✗ | return getImpl<detail::Facility_Impl>()->waterInteriorLighting(); | |
| 2796 | } | ||
| 2797 | |||
| 2798 | ✗ | OptionalDouble Facility::waterExteriorLighting() const { | |
| 2799 | ✗ | return getImpl<detail::Facility_Impl>()->waterExteriorLighting(); | |
| 2800 | } | ||
| 2801 | |||
| 2802 | ✗ | OptionalDouble Facility::waterInteriorEquipment() const { | |
| 2803 | ✗ | return getImpl<detail::Facility_Impl>()->waterInteriorEquipment(); | |
| 2804 | } | ||
| 2805 | |||
| 2806 | ✗ | OptionalDouble Facility::waterExteriorEquipment() const { | |
| 2807 | ✗ | return getImpl<detail::Facility_Impl>()->waterExteriorEquipment(); | |
| 2808 | } | ||
| 2809 | |||
| 2810 | ✗ | OptionalDouble Facility::waterFans() const { | |
| 2811 | ✗ | return getImpl<detail::Facility_Impl>()->waterFans(); | |
| 2812 | } | ||
| 2813 | |||
| 2814 | ✗ | OptionalDouble Facility::waterPumps() const { | |
| 2815 | ✗ | return getImpl<detail::Facility_Impl>()->waterPumps(); | |
| 2816 | } | ||
| 2817 | |||
| 2818 | ✗ | OptionalDouble Facility::waterHeatRejection() const { | |
| 2819 | ✗ | return getImpl<detail::Facility_Impl>()->waterHeatRejection(); | |
| 2820 | } | ||
| 2821 | |||
| 2822 | ✗ | OptionalDouble Facility::waterHumidification() const { | |
| 2823 | ✗ | return getImpl<detail::Facility_Impl>()->waterHumidification(); | |
| 2824 | } | ||
| 2825 | |||
| 2826 | ✗ | OptionalDouble Facility::waterHeatRecovery() const { | |
| 2827 | ✗ | return getImpl<detail::Facility_Impl>()->waterHeatRecovery(); | |
| 2828 | } | ||
| 2829 | |||
| 2830 | ✗ | OptionalDouble Facility::waterWaterSystems() const { | |
| 2831 | ✗ | return getImpl<detail::Facility_Impl>()->waterWaterSystems(); | |
| 2832 | } | ||
| 2833 | |||
| 2834 | ✗ | OptionalDouble Facility::waterRefrigeration() const { | |
| 2835 | ✗ | return getImpl<detail::Facility_Impl>()->waterRefrigeration(); | |
| 2836 | } | ||
| 2837 | |||
| 2838 | ✗ | OptionalDouble Facility::waterGenerators() const { | |
| 2839 | ✗ | return getImpl<detail::Facility_Impl>()->waterGenerators(); | |
| 2840 | } | ||
| 2841 | |||
| 2842 | ✗ | OptionalDouble Facility::waterTotalEndUses() const { | |
| 2843 | ✗ | return getImpl<detail::Facility_Impl>()->waterTotalEndUses(); | |
| 2844 | } | ||
| 2845 | |||
| 2846 | ✗ | OptionalDouble Facility::hoursHeatingSetpointNotMet() const { | |
| 2847 | ✗ | return getImpl<detail::Facility_Impl>()->hoursHeatingSetpointNotMet(); | |
| 2848 | } | ||
| 2849 | |||
| 2850 | ✗ | OptionalDouble Facility::hoursCoolingSetpointNotMet() const { | |
| 2851 | ✗ | return getImpl<detail::Facility_Impl>()->hoursCoolingSetpointNotMet(); | |
| 2852 | } | ||
| 2853 | |||
| 2854 | ✗ | boost::optional<EndUses> Facility::endUses() const { | |
| 2855 | ✗ | return getImpl<detail::Facility_Impl>()->endUses(); | |
| 2856 | } | ||
| 2857 | |||
| 2858 | ✗ | boost::optional<CalibrationResult> Facility::calibrationResult() const { | |
| 2859 | ✗ | return getImpl<detail::Facility_Impl>()->calibrationResult(); | |
| 2860 | } | ||
| 2861 | |||
| 2862 | // get the building | ||
| 2863 | ✗ | boost::optional<Building> Facility::building() const { | |
| 2864 | ✗ | return getImpl<detail::Facility_Impl>()->building(); | |
| 2865 | } | ||
| 2866 | |||
| 2867 | /// get meter requests for the facility | ||
| 2868 | 1 | std::vector<OutputMeter> Facility::meters() const { | |
| 2869 |
1/1✓ Branch 3 taken 1 time.
|
1 | return getImpl<detail::Facility_Impl>()->meters(); |
| 2870 | } | ||
| 2871 | |||
| 2872 | 2 | boost::optional<OutputMeter> Facility::getMeterByFuelType(const FuelType& fuelType, const std::string& reportingFrequency, | |
| 2873 | const boost::optional<EndUseType>& endUseType, | ||
| 2874 | const boost::optional<std::string>& specificEndUse) const { | ||
| 2875 |
1/1✓ Branch 3 taken 2 times.
|
2 | return getImpl<detail::Facility_Impl>()->getMeterByFuelType(fuelType, reportingFrequency, endUseType, specificEndUse); |
| 2876 | } | ||
| 2877 | |||
| 2878 | ✗ | std::vector<ExteriorLights> Facility::exteriorLights() const { | |
| 2879 | ✗ | return getImpl<detail::Facility_Impl>()->exteriorLights(); | |
| 2880 | } | ||
| 2881 | |||
| 2882 | ✗ | std::vector<ExteriorFuelEquipment> Facility::exteriorFuelEquipments() const { | |
| 2883 | ✗ | return getImpl<detail::Facility_Impl>()->exteriorFuelEquipments(); | |
| 2884 | } | ||
| 2885 | |||
| 2886 | ✗ | std::vector<ExteriorWaterEquipment> Facility::exteriorWaterEquipments() const { | |
| 2887 | ✗ | return getImpl<detail::Facility_Impl>()->exteriorWaterEquipments(); | |
| 2888 | } | ||
| 2889 | |||
| 2890 | ✗ | std::vector<FuelType> Facility::fossilFuels() { | |
| 2891 | return FuelTypeVector{FuelType(FuelType::Gas), FuelType(FuelType::Gasoline), FuelType(FuelType::Diesel), | ||
| 2892 | ✗ | FuelType(FuelType::FuelOil_1), FuelType(FuelType::FuelOil_2), FuelType(FuelType::Propane)}; | |
| 2893 | } | ||
| 2894 | |||
| 2895 | 8811 | IddObjectType Facility::iddObjectType() { | |
| 2896 |
1/1✓ Branch 1 taken 8811 times.
|
8811 | IddObjectType result(IddObjectType::OS_Facility); |
| 2897 | 8811 | return result; | |
| 2898 | } | ||
| 2899 | |||
| 2900 | } // namespace model | ||
| 2901 | } // namespace openstudio | ||
| 2902 |