clases/clase_011_EjemploProyectoFinal_FInal_FInal/osm/CVentanas_004/measures/add_output_variable/measure.rb
# define the arguments that the user will input
define the arguments that the user will input
define the arguments that the user will input
def arguments(model)
    args = OpenStudio::Measure::OSArgumentVector.new
    variable_name = OpenStudio::Measure::OSArgument.makeStringArgument('variable_name', true)
    variable_name.setDisplayName('Enter Variable Name')
    args << variable_name
    reporting_frequency_chs = OpenStudio::StringVector.new
    reporting_frequency_chs << 'detailed'
    reporting_frequency_chs << 'timestep'
    reporting_frequency_chs << 'hourly'
    reporting_frequency_chs << 'daily'
    reporting_frequency_chs << 'monthly'
    reporting_frequency_chs << 'runperiod'
    reporting_frequency = OpenStudio::Measure::OSArgument.makeChoiceArgument('reporting_frequency', reporting_frequency_chs, true)
    reporting_frequency.setDisplayName('Reporting Frequency')
    reporting_frequency.setDefaultValue('hourly')
    args << reporting_frequency
    key_value = OpenStudio::Measure::OSArgument.makeStringArgument('key_value', true)
    key_value.setDisplayName('Enter Key Name')
    key_value.setDescription('Enter * for all objects or the full name of a specific object to.')
    key_value.setDefaultValue('*')
    args << key_value
    return args
  end
def arguments ( model ) args = OpenStudio :: Measure :: OSArgumentVector . new variable_name = OpenStudio :: Measure :: OSArgument . makeStringArgument ( 'variable_name' , true ) variable_name . setDisplayName ( 'Enter Variable Name' ) args << variable_name reporting_frequency_chs = OpenStudio :: StringVector . new reporting_frequency_chs << 'detailed' reporting_frequency_chs << 'timestep' reporting_frequency_chs << 'hourly' reporting_frequency_chs << 'daily' reporting_frequency_chs << 'monthly' reporting_frequency_chs << 'runperiod' reporting_frequency = OpenStudio :: Measure :: OSArgument . makeChoiceArgument ( 'reporting_frequency' , reporting_frequency_chs , true ) reporting_frequency . setDisplayName ( 'Reporting Frequency' ) reporting_frequency . setDefaultValue ( 'hourly' ) args << reporting_frequency key_value = OpenStudio :: Measure :: OSArgument . makeStringArgument ( 'key_value' , true ) key_value . setDisplayName ( 'Enter Key Name' ) key_value . setDescription ( 'Enter * for all objects or the full name of a specific object to.' ) key_value . setDefaultValue ( '*' ) args << key_value return args end
define the arguments that the user will input
define the arguments that the user will input
# make an argument for the variable name # make an argument for the electric tariff # make an argument for the key_value
model
<not_specific>