コード例 #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;
 }
コード例 #3
0
 bool AvailabilityManagerNightVentilation_Impl::setApplicabilitySchedule(Schedule& schedule) {
   bool result = setSchedule(OS_AvailabilityManager_NightVentilationFields::ApplicabilitySchedule,
                             "AvailabilityManagerNightVentilation",
                             "Applicability Schedule",
                             schedule);
   return result;
 }
コード例 #4
0
 bool ControllerMechanicalVentilation_Impl::setAvailabilitySchedule(Schedule& schedule) {
   bool result = setSchedule(OS_Controller_MechanicalVentilationFields::AvailabilitySchedule,
                             "ControllerMechanicalVentilation",
                             "Availability Schedule",
                             schedule);
   return result;
 }
コード例 #5
0
 bool CoilHeatingDesuperheater_Impl::setAvailabilitySchedule(Schedule& schedule) {
   bool result = setSchedule(OS_Coil_Heating_DesuperheaterFields::AvailabilityScheduleName,
                             "CoilHeatingDesuperheater",
                             "Availability",
                             schedule);
   return result;
 }
コード例 #6
0
 bool EvaporativeFluidCoolerSingleSpeed_Impl::setBlowdownMakeupWaterUsageSchedule(Schedule& schedule) {
   bool result = setSchedule(OS_EvaporativeFluidCooler_SingleSpeedFields::BlowdownMakeupWaterUsageScheduleName,
                             "EvaporativeFluidCoolerSingleSpeed",
                             "Blowdown Makeup Water Usage",
                             schedule);
   return result;
 }
コード例 #7
0
 bool CoilCoolingDXVariableRefrigerantFlow_Impl::setAvailabilitySchedule(Schedule& schedule) {
   bool result = setSchedule(OS_Coil_Cooling_DX_VariableRefrigerantFlowFields::AvailabilitySchedule,
                             "CoilCoolingDXVariableRefrigerantFlow",
                             "Availability Schedule",
                             schedule);
   return result;
 }
コード例 #8
0
 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;
 }
コード例 #10
0
 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;
 }
コード例 #12
0
 bool ZoneHVACUnitHeater_Impl::setAvailabilitySchedule(Schedule& schedule) 
 {
   bool result = setSchedule(OS_ZoneHVAC_UnitHeaterFields::AvailabilityScheduleName,
                             "ZoneHVACUnitHeater",
                             "Availability",
                             schedule);
   return result;
 }
コード例 #13
0
 bool ZoneHVACLowTemperatureRadiantElectric_Impl::setAvailabilitySchedule(Schedule& schedule) 
 {
   bool result = setSchedule(OS_ZoneHVAC_LowTemperatureRadiant_ElectricFields::AvailabilityScheduleName,
                             "ZoneHVACLowTemperatureRadiantElectric",
                             "Availability",
                             schedule);
   return result;
 }
コード例 #14
0
ファイル: FanOnOff.cpp プロジェクト: jtanaa/OpenStudio
 bool FanOnOff_Impl::setAvailabilitySchedule(Schedule& schedule)
 {
   bool result = setSchedule(OS_Fan_OnOffFields::AvailabilityScheduleName,
                             "FanOnOff",
                             "Availability",
                             schedule);
   return result;
 }
コード例 #15
0
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;
 }
コード例 #17
0
 bool ZoneHVACLowTemperatureRadiantElectric_Impl::setHeatingSetpointTemperatureSchedule(Schedule& schedule) 
 {
   bool result = setSchedule(OS_ZoneHVAC_LowTemperatureRadiant_ElectricFields::HeatingSetpointTemperatureScheduleName,
                             "ZoneHVACLowTemperatureRadiantElectric",
                             "Heating Setpoint Temperature",
                             schedule);
   return result;
 }
コード例 #18
0
 bool ZoneHVACLowTempRadiantVarFlow_Impl::setAvailabilitySchedule(Schedule& schedule) 
 {
   bool result = setSchedule(OS_ZoneHVAC_LowTemperatureRadiant_VariableFlowFields::AvailabilityScheduleName,
                             "ZoneHVACLowTempRadiantVarFlow",
                             "Availability",
                             schedule);
   return result;
 }
コード例 #19
0
ファイル: OtherEquipment.cpp プロジェクト: jtanaa/OpenStudio
 bool OtherEquipment_Impl::hardApplySchedules() {
   bool result(false);
   OptionalSchedule schedule = this->schedule();
   if (schedule) {
     result = setSchedule(*schedule);
   }
   return result;
 }
コード例 #20
0
AvailabilityManagerScheduled::AvailabilityManagerScheduled(const Model& model)
  : ModelObject(AvailabilityManagerScheduled::iddObjectType(),model)
{
  OS_ASSERT(getImpl<detail::AvailabilityManagerScheduled_Impl>());

  Schedule s = model.alwaysOnDiscreteSchedule();

  OS_ASSERT(setSchedule(s));
}
コード例 #21
0
 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;
 }
コード例 #23
0
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
ファイル: CCReward.cpp プロジェクト: EduardovEduard/Spike
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;
 }
コード例 #26
0
 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;
 }
コード例 #27
0
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;
 }
コード例 #30
0
 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;
 }