AvailabilityManagerNightCycle::AvailabilityManagerNightCycle(const Model& model) : AvailabilityManager(AvailabilityManagerNightCycle::iddObjectType(),model) { OS_ASSERT(getImpl<detail::AvailabilityManagerNightCycle_Impl>()); setThermostatTolerance(1.0); setCyclingRunTime(3600); }
bool AvailabilityManagerNightCycle_Impl::setThermostatTolerance(const Quantity& thermostatTolerance) { OptionalDouble value = getDoubleFromQuantity(OS_AvailabilityManager_NightCycleFields::ThermostatTolerance,thermostatTolerance); if (!value) { return false; } setThermostatTolerance(value.get()); return true; }