src/utilities/bcl/templates/ReportingMeasure/measure.rb
def energyPlusOutputRequests(runner, user_arguments)
    super(runner, user_arguments)

    result = OpenStudio::IdfObjectVector.new

    # To use the built-in error checking we need the model...
    # get the last model and sql file
    model = runner.lastOpenStudioModel
    if model.empty?
      runner.registerError('Cannot find last model.')
      return false
    end
    model = model.get

    # use the built-in error checking
    if !runner.validateUserArguments(arguments(model), user_arguments)
      return false
    end

    if runner.getBoolArgumentValue('report_drybulb_temp', user_arguments)
      request = OpenStudio::IdfObject.load('Output:Variable,,Site Outdoor Air Drybulb Temperature,Hourly;').get
      result << request
    end

    return result
  end
# return a vector of IdfObject's to request EnergyPlus objects needed by the run method
# Warning: Do not change the name of this method to be snake_case. The method must be lowerCamelCase.
return a vector of IdfObject's to request EnergyPlus objects needed by the run method
Warning: Do not change the name of this method to be snake_case. The method must be lowerCamelCase.
return a vector of IdfObject ' s to request EnergyPlus objects needed by the run method Warning : Do not change the name of this method to be snake_case . The method must be lowerCamelCase .
def energyPlusOutputRequests(runner, user_arguments)
    super(runner, user_arguments)
    result = OpenStudio::IdfObjectVector.new
    model = runner.lastOpenStudioModel
    if model.empty?
      runner.registerError('Cannot find last model.')
      return false
    end
    model = model.get
    if !runner.validateUserArguments(arguments(model), user_arguments)
      return false
    end
    if runner.getBoolArgumentValue('report_drybulb_temp', user_arguments)
      request = OpenStudio::IdfObject.load('Output:Variable,,Site Outdoor Air Drybulb Temperature,Hourly;').get
      result << request
    end
    return result
  end
def energyPlusOutputRequests ( runner , user_arguments ) super ( runner , user_arguments ) result = OpenStudio :: IdfObjectVector . new model = runner . lastOpenStudioModel if model . empty? runner . registerError ( 'Cannot find last model.' ) return false end model = model . get if ! runner . validateUserArguments ( arguments ( model ) , user_arguments ) return false end if runner . getBoolArgumentValue ( 'report_drybulb_temp' , user_arguments ) request = OpenStudio :: IdfObject . load ( 'Output:Variable,,Site Outdoor Air Drybulb Temperature,Hourly;' ) . get result << request end return result end
return a vector of IdfObject's to request EnergyPlus objects needed by the run method
Warning: Do not change the name of this method to be snake_case.
return a vector of IdfObject ' s to request EnergyPlus objects needed by the run method Warning : Do not change the name of this method to be snake_case .
# To use the built-in error checking we need the model... # get the last model and sql file # use the built-in error checking
runner
user_arguments