MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / timestepsInPeakDemandWindow

Method timestepsInPeakDemandWindow

src/model/UtilityBill.cpp:404–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402 }
403
404 boost::optional<unsigned> UtilityBill_Impl::timestepsInPeakDemandWindow() const {
405 if (this->fuelType() == FuelType::Electricity) {
406 return getUnsigned(OS_UtilityBillFields::TimestepsinPeakDemandWindow, true);
407 }
408 return boost::none;
409 }
410
411 bool UtilityBill_Impl::isTimestepsInPeakDemandWindowDefaulted() const {
412 return isEmpty(OS_UtilityBillFields::TimestepsinPeakDemandWindow);

Callers 3

calibrationResultMethod · 0.45
modelPeakDemandMethod · 0.45

Calls 1

fuelTypeMethod · 0.95

Tested by

no test coverage detected