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;.
- #result ⇒ Object
Constructor Details
#initialize(step) ⇒ WorkflowStep_Shim
Returns a new instance of WorkflowStep_Shim.
150 151 152 |
# File 'lib/openstudio/workflow_json.rb', line 150 def initialize(step) @step = step end |
Instance Attribute Details
#step ⇒ Object (readonly)
Returns the value of attribute step.
154 155 156 |
# File 'lib/openstudio/workflow_json.rb', line 154 def step @step end |
Instance Method Details
#arguments ⇒ Object
std::map<std::string, Variant> arguments() const;
170 171 172 173 |
# File 'lib/openstudio/workflow_json.rb', line 170 def arguments # TODO: match C++ @step[:arguments] end |
#measureDirName ⇒ Object
std::string measureDirName() const;
165 166 167 |
# File 'lib/openstudio/workflow_json.rb', line 165 def measureDirName @step[:measure_dir_name] end |
#result ⇒ Object
156 157 158 159 160 161 162 |
# File 'lib/openstudio/workflow_json.rb', line 156 def result if @step[:result] Optional_Shim.new(WorkflowStepResult_Shim.new(@step[:result])) else Optional_Shim.new end end |