示例#1
0
 bool PipeIndoor_Impl::setAmbientAirVelocitySchedule(Schedule& schedule) {
   bool result = setSchedule(OS_Pipe_IndoorFields::AmbientAirVelocitySchedule,
                             "PipeIndoor",
                             "Ambient Air Velocity Schedule",
                             schedule);
   return result;
 }
示例#2
0
 bool FanConstantVolume_Impl::setAvailabilitySchedule(Schedule& schedule) {
   bool result = setSchedule(OS_Fan_ConstantVolumeFields::AvailabilityScheduleName,
                             "FanConstantVolume",
                             "Availability",
                             schedule);
   return result;
 }
 bool AvailabilityManagerNightVentilation_Impl::setApplicabilitySchedule(Schedule& schedule) {
   bool result = setSchedule(OS_AvailabilityManager_NightVentilationFields::ApplicabilitySchedule,
                             "AvailabilityManagerNightVentilation",
                             "Applicability Schedule",
                             schedule);
   return result;
 }
 bool ControllerMechanicalVentilation_Impl::setAvailabilitySchedule(Schedule& schedule) {
   bool result = setSchedule(OS_Controller_MechanicalVentilationFields::AvailabilitySchedule,
                             "ControllerMechanicalVentilation",
                             "Availability Schedule",
                             schedule);
   return result;
 }
 bool CoilHeatingDesuperheater_Impl::setAvailabilitySchedule(Schedule& schedule) {
   bool result = setSchedule(OS_Coil_Heating_DesuperheaterFields::AvailabilityScheduleName,
                             "CoilHeatingDesuperheater",
                             "Availability",
                             schedule);
   return result;
 }
 bool EvaporativeFluidCoolerSingleSpeed_Impl::setBlowdownMakeupWaterUsageSchedule(Schedule& schedule) {
   bool result = setSchedule(OS_EvaporativeFluidCooler_SingleSpeedFields::BlowdownMakeupWaterUsageScheduleName,
                             "EvaporativeFluidCoolerSingleSpeed",
                             "Blowdown Makeup Water Usage",
                             schedule);
   return result;
 }
 bool CoilCoolingDXVariableRefrigerantFlow_Impl::setAvailabilitySchedule(Schedule& schedule) {
   bool result = setSchedule(OS_Coil_Cooling_DX_VariableRefrigerantFlowFields::AvailabilitySchedule,
                             "CoilCoolingDXVariableRefrigerantFlow",
                             "Availability Schedule",
                             schedule);
   return result;
 }
 bool ZoneControlHumidistat_Impl::setHumidifyingRelativeHumiditySetpointSchedule(Schedule& schedule) {
   bool result = setSchedule(OS_ZoneControl_HumidistatFields::HumidifyingRelativeHumiditySetpointScheduleName,
                             "ZoneControlHumidistat",
                             "Humidifying Relative Humidity Setpoint",
                             schedule);
   return result;
 }
示例#9
0
 bool CoilCoolingWater_Impl::setAvailabilitySchedule(Schedule& schedule) {
   bool result = setSchedule(OS_Coil_Cooling_WaterFields::AvailabilityScheduleName,
                             "CoilCoolingWater",
                             "Availability",
                             schedule);
   return result;
 }
 bool ThermalStorageIceDetailed_Impl::setAvailabilitySchedule(Schedule& schedule) {
   bool result = setSchedule(OS_ThermalStorage_Ice_DetailedFields::AvailabilitySchedule,
                             "ThermalStorageIceDetailed",
                             "Availability Schedule",
                             schedule);
   return result;
 }
示例#11
0
 bool PipeIndoor_Impl::setAmbientTemperatureSchedule(Schedule& schedule) {
   bool result = setSchedule(OS_Pipe_IndoorFields::AmbientTemperatureSchedule,
                             "PipeIndoor",
                             "Ambient Temperature Schedule",
                             schedule);
   return result;
 }
 bool ZoneHVACUnitHeater_Impl::setAvailabilitySchedule(Schedule& schedule) 
 {
   bool result = setSchedule(OS_ZoneHVAC_UnitHeaterFields::AvailabilityScheduleName,
                             "ZoneHVACUnitHeater",
                             "Availability",
                             schedule);
   return result;
 }
 bool ZoneHVACLowTemperatureRadiantElectric_Impl::setAvailabilitySchedule(Schedule& schedule) 
 {
   bool result = setSchedule(OS_ZoneHVAC_LowTemperatureRadiant_ElectricFields::AvailabilityScheduleName,
                             "ZoneHVACLowTemperatureRadiantElectric",
                             "Availability",
                             schedule);
   return result;
 }
示例#14
0
 bool FanOnOff_Impl::setAvailabilitySchedule(Schedule& schedule)
 {
   bool result = setSchedule(OS_Fan_OnOffFields::AvailabilityScheduleName,
                             "FanOnOff",
                             "Availability",
                             schedule);
   return result;
 }
bool CoilHeatingLowTempRadiantVarFlow_Impl::setHeatingControlTemperatureSchedule(Schedule& schedule)
{
    bool result = setSchedule(OS_Coil_Heating_LowTemperatureRadiant_VariableFlowFields::HeatingControlTemperatureScheduleName,
                              "CoilHeatingLowTempRadiantVarFlow",
                              "Heating Control Temperature",
                              schedule);
    return result;
}
示例#16
0
 bool ShadingSurface_Impl::setTransmittanceSchedule(Schedule& transmittanceSchedule)
 {
   bool result = setSchedule(OS_ShadingSurfaceFields::TransmittanceScheduleName,
                             "ShadingSurface",
                             "Transmittance",
                             transmittanceSchedule);
   return result;
 }
 bool ZoneHVACLowTemperatureRadiantElectric_Impl::setHeatingSetpointTemperatureSchedule(Schedule& schedule) 
 {
   bool result = setSchedule(OS_ZoneHVAC_LowTemperatureRadiant_ElectricFields::HeatingSetpointTemperatureScheduleName,
                             "ZoneHVACLowTemperatureRadiantElectric",
                             "Heating Setpoint Temperature",
                             schedule);
   return result;
 }
 bool ZoneHVACLowTempRadiantVarFlow_Impl::setAvailabilitySchedule(Schedule& schedule) 
 {
   bool result = setSchedule(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::AvailabilityScheduleName,
                             "ZoneHVACLowTempRadiantVarFlow",
                             "Availability",
                             schedule);
   return result;
 }
示例#19
0
 bool OtherEquipment_Impl::hardApplySchedules() {
   bool result(false);
   OptionalSchedule schedule = this->schedule();
   if (schedule) {
     result = setSchedule(*schedule);
   }
   return result;
 }
AvailabilityManagerScheduled::AvailabilityManagerScheduled(const Model& model)
  : ModelObject(AvailabilityManagerScheduled::iddObjectType(),model)
{
  OS_ASSERT(getImpl<detail::AvailabilityManagerScheduled_Impl>());

  Schedule s = model.alwaysOnDiscreteSchedule();

  OS_ASSERT(setSchedule(s));
}
 bool AvailabilityManagerScheduled_Impl::setScheduleAsModelObject(const boost::optional<ModelObject>& modelObject) {
   if (modelObject) {
     OptionalSchedule intermediate = modelObject->optionalCast<Schedule>();
     if (intermediate) {
       Schedule schedule(*intermediate);
       return setSchedule(schedule);
     }
   }
   return false;
 }
示例#22
0
 bool ExteriorLights_Impl::setScheduleAsModelObject(const boost::optional<ModelObject>& modelObject) {
   if (modelObject) {
     OptionalSchedule intermediate = modelObject->optionalCast<Schedule>();
     if (intermediate) {
       Schedule schedule(*intermediate);
       return setSchedule(schedule);
     }
   }
   return false;
 }
bool SiteWaterMainsTemperature_Impl::setTemperatureSchedule(Schedule& schedule) {
    bool result = setSchedule(OS_Site_WaterMainsTemperatureFields::TemperatureScheduleName,
                              "SiteWaterMainsTemperature",
                              "Temperature",
                              schedule);
    if (result) {
        result = setCalculationMethod("Schedule");
        OS_ASSERT(result);
    }
    return result;
}
示例#24
0
bool soomla::CCReward::init(cocos2d::__String *id, cocos2d::__String *name, CCSchedule *schedule) {
    bool ret = CCSoomlaEntity::init(id, name);

    if (ret) {
        setSchedule(schedule != NULL ? schedule : CCSchedule::createAnyTimeOnce());
        addReward(this);
        return true;
    }

    return ret;
}
 bool SolarCollectorPerformancePhotovoltaicThermalSimple_Impl::setThermalConversionEfficiencySchedule(Schedule& schedule) {
   bool result = setSchedule(OS_SolarCollectorPerformance_PhotovoltaicThermal_SimpleFields::ThermalConversionEfficiencyScheduleName,
                             "SolarCollectorPerformancePhotovoltaicThermalSimple",
                             "Thermal Conversion Efficiency",
                             schedule);
   if (result){
     result = setString(OS_SolarCollectorPerformance_PhotovoltaicThermal_SimpleFields::ThermalConversionEfficiencyInputModeType, "Scheduled");
     OS_ASSERT(result);
     resetThermalConversionEfficiency();
   }
   return result;
 }
 bool PhotovoltaicPerformanceSimple_Impl::setEfficiencySchedule(Schedule& schedule) {
   bool result = setSchedule(OS_PhotovoltaicPerformance_SimpleFields::EfficiencyScheduleName,
                             "PhotovoltaicPerformanceSimple",
                             "Efficiency",
                             schedule);
   if (result) {
     result = setConversionEfficiencyInputMode("Scheduled");
     OS_ASSERT(result);
     result = setString(OS_PhotovoltaicPerformance_SimpleFields::ValueforCellEfficiencyifFixed, "");
     OS_ASSERT(result);
   }
   return result;
 }
SetpointManagerScheduled::SetpointManagerScheduled(const Model& model,
                                                   Schedule& schedule)
  : SetpointManager(SetpointManagerScheduled::iddObjectType(),model) 
{
  OS_ASSERT(getImpl<detail::SetpointManagerScheduled_Impl>());
  bool ok = setControlVariable("Temperature");
  OS_ASSERT(ok);
  ok = setSchedule(schedule);
  if (!ok) {
    LOG_AND_THROW("Unable to set " << schedule.briefDescription() << " as "
                  << briefDescription() << "'s temperature setpoint schedule.");
  }
}
示例#28
0
ExteriorLights::ExteriorLights(const ExteriorLightsDefinition& definition,
                               Schedule& schedule)
  : ModelObject(ExteriorLights::iddObjectType(),definition.model())
{
  OS_ASSERT(getImpl<detail::ExteriorLights_Impl>());

  bool ok = setExteriorLightsDefinition(definition);
  OS_ASSERT(ok);
  ok = setSchedule(schedule);
  if (!ok) {
    remove();
    LOG_AND_THROW("Could not set " << briefDescription() << "'s schedule to "
                  << schedule.briefDescription() << ".");
  }
}
示例#29
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;
 }