Example #1
0
 bool HotWaterEquipment_Impl::setScheduleAsModelObject(const boost::optional<ModelObject>& modelObject) {
   if (modelObject) {
     OptionalSchedule intermediate = modelObject->optionalCast<Schedule>();
     if (intermediate) {
       Schedule schedule(*intermediate);
       return setSchedule(schedule);
     }
     else {
       return false;
     }
   }
   else {
     resetSchedule();
   }
   return true;
 }
 bool SetpointManagerOutdoorAirReset_Impl::setScheduleAsModelObject(const boost::optional<ModelObject>& modelObject) {
   if (modelObject) {
     OptionalSchedule intermediate = modelObject->optionalCast<Schedule>();
     if (intermediate) {
       Schedule schedule(*intermediate);
       return setSchedule(schedule);
     }
     else {
       return false;
     }
   }
   else {
     resetSchedule();
   }
   return true;
 }
SetpointManagerOutdoorAirReset::SetpointManagerOutdoorAirReset(const Model& model)
  : SetpointManager(SetpointManagerOutdoorAirReset::iddObjectType(),model)
{
  OS_ASSERT(getImpl<detail::SetpointManagerOutdoorAirReset_Impl>());

  setControlVariable("Temperature");
  setSetpointatOutdoorLowTemperature(22.0);
  setOutdoorLowTemperature(10.0);
  setSetpointatOutdoorHighTemperature(10.0);
  setOutdoorHighTemperature(24.0);
  resetSchedule();
  resetSetpointatOutdoorLowTemperature2();
  resetOutdoorLowTemperature2();
  resetSetpointatOutdoorHighTemperature2();
  resetOutdoorHighTemperature2();
}
 bool SpaceInfiltrationEffectiveLeakageArea_Impl::setScheduleAsModelObject(const boost::optional<ModelObject>& modelObject) {
   if (modelObject) {
     OptionalSchedule intermediate = modelObject->optionalCast<Schedule>();
     if (intermediate) {
       Schedule schedule(*intermediate);
       return setSchedule(schedule);
     }
     else {
       return false;
     }
   }
   else {
     resetSchedule();
   }
   return true;
 }