Method: OpenStudio::Analysis::Workflow#add_measure

Defined in:
lib/openstudio/analysis/workflow.rb

#add_measure(instance_name, instance_display_name, local_path_to_measure, measure_metadata) ⇒ Object

Add a measure from the custom hash format without reading the measure.rb or measure.xml file

Parameters:

  • local_path_to_measure (String)

    This is the local path to the measure directory, relative or absolute. It is used when zipping up all the measures.

  • measure_metadata (Hash)

    Format of the measure.xml in JSON format

Returns:

  • (Object)

    Returns the measure that was added as an OpenStudio::AnalysisWorkflowStep object



63
64
65
66
67
# File 'lib/openstudio/analysis/workflow.rb', line 63

def add_measure(instance_name, instance_display_name, local_path_to_measure, )
  @items << OpenStudio::Analysis::WorkflowStep.from_measure_hash(instance_name, instance_display_name, local_path_to_measure, )

  @items.last
end