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