Class: WorkflowStep_Shim

Inherits:
Object
  • Object
show all
Defined in:
lib/openstudio/workflow_json.rb

Overview

WorkflowStep_Shim provides a shim interface to the WorkflowStep class in OpenStudio 2.X when running in OpenStudio 1.X

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(step) ⇒ WorkflowStep_Shim

Returns a new instance of WorkflowStep_Shim.



168
169
170
# File 'lib/openstudio/workflow_json.rb', line 168

def initialize(step)
  @step = step
end

Instance Attribute Details

#stepObject (readonly)

Returns the value of attribute step.



172
173
174
# File 'lib/openstudio/workflow_json.rb', line 172

def step
  @step
end

Instance Method Details

#argumentsObject

std::map<std::string, Variant> arguments() const;



196
197
198
199
# File 'lib/openstudio/workflow_json.rb', line 196

def arguments
  # TODO: match C++
  @step[:arguments]
end

#measureDirNameObject

std::string measureDirName() const;



191
192
193
# File 'lib/openstudio/workflow_json.rb', line 191

def measureDirName
  @step[:measure_dir_name]
end

#nameObject



174
175
176
177
178
179
180
# File 'lib/openstudio/workflow_json.rb', line 174

def name
  if @step[:name]
    Optional_Shim.new(@step[:name])
  else
    Optional_Shim.new(nil)
  end
end

#resultObject



182
183
184
185
186
187
188
# File 'lib/openstudio/workflow_json.rb', line 182

def result
  if @step[:result]
    Optional_Shim.new(WorkflowStepResult_Shim.new(@step[:result]))
  else
    Optional_Shim.new(nil)
  end
end