lib/measures/tbd/resources/conditioned.rb
def coolingTemperatureSetpoints?(model)
  answer = false
  unless model && model.is_a?(OpenStudio::Model::Model)
    TBD.log(TBD::DEBUG,
      "Can't find or validate OSM (argument) for cooling setpoints - skipping")
    return answer
  end

  model.getThermalZones.each do |zone|
    next if answer
    min, _ = minCoolScheduledSetpoint(zone)
    answer = true if min
  end
  answer
end
##
# Validate if model has zones with valid cooling temperature setpoints
#
# @param [OpenStudio::Model::Model] model An OS model
#
# @return [Bool] Returns true if valid cooling temperature setpoints
Validate if model has zones with valid cooling temperature setpoints
Validate if model has zones with valid cooling temperature setpoints
def coolingTemperatureSetpoints?(model)
  answer = false
  unless model && model.is_a?(OpenStudio::Model::Model)
    TBD.log(TBD::DEBUG,
      "Can't find or validate OSM (argument) for cooling setpoints - skipping")
    return answer
  end
  model.getThermalZones.each do |zone|
    next if answer
    min, _ = minCoolScheduledSetpoint(zone)
    answer = true if min
  end
  answer
end
def coolingTemperatureSetpoints? ( model ) answer = false unless model && model . is_a? ( OpenStudio :: Model :: Model ) TBD . log ( TBD :: DEBUG , "Can't find or validate OSM (argument) for cooling setpoints - skipping" ) return answer end model . getThermalZones . each do | zone | next if answer min , _ = minCoolScheduledSetpoint ( zone ) answer = true if min end answer end
Validate if model has zones with valid cooling temperature setpoints
Validate if model has zones with valid cooling temperature setpoints
Returns true if valid cooling temperature setpoints
Returns true if valid cooling temperature setpoints
Bool
model
model An OS model
model An OS model