Class: WorkflowStep_Shim
- Inherits:
-
Object
- Object
- WorkflowStep_Shim
- 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
-
#step ⇒ Object
readonly
Returns the value of attribute step.
Instance Method Summary collapse
-
#arguments ⇒ Object
std::map<std::string, Variant> arguments() const;.
-
#initialize(step) ⇒ WorkflowStep_Shim
constructor
A new instance of WorkflowStep_Shim.
-
#measureDirName ⇒ Object
std::string measureDirName() const;.
- #name ⇒ Object
- #result ⇒ Object
Constructor Details
#initialize(step) ⇒ WorkflowStep_Shim
Returns a new instance of WorkflowStep_Shim.
170 171 172 |
# File 'lib/openstudio/workflow_json.rb', line 170 def initialize(step) @step = step end |
Instance Attribute Details
#step ⇒ Object (readonly)
Returns the value of attribute step.
174 175 176 |
# File 'lib/openstudio/workflow_json.rb', line 174 def step @step end |
Instance Method Details
#arguments ⇒ Object
std::map<std::string, Variant> arguments() const;
198 199 200 201 |
# File 'lib/openstudio/workflow_json.rb', line 198 def arguments # TODO: match C++ @step[:arguments] end |
#measureDirName ⇒ Object
std::string measureDirName() const;
193 194 195 |
# File 'lib/openstudio/workflow_json.rb', line 193 def measureDirName @step[:measure_dir_name] end |
#name ⇒ Object
176 177 178 179 180 181 182 |
# File 'lib/openstudio/workflow_json.rb', line 176 def name if @step[:name] Optional_Shim.new(@step[:name]) else Optional_Shim.new(nil) end end |
#result ⇒ Object
184 185 186 187 188 189 190 |
# File 'lib/openstudio/workflow_json.rb', line 184 def result if @step[:result] Optional_Shim.new(WorkflowStepResult_Shim.new(@step[:result])) else Optional_Shim.new(nil) end end |