Class: URBANopt::Scenario::ScenarioPostProcessorBase
- Inherits:
-
Object
- Object
- URBANopt::Scenario::ScenarioPostProcessorBase
- Defined in:
- lib/urbanopt/scenario/scenario_post_processor_base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#scenario_base ⇒ Object
readonly
Returns the value of attribute scenario_base.
Instance Method Summary collapse
-
#add_simulation_dir(simulation_dir) ⇒ Object
Add results from a simulation_dir to this result.
-
#initialize(scenario_base) ⇒ ScenarioPostProcessorBase
constructor
ScenarioPostProcessorBase post-processes a Scenario to create scenario level results.
-
#run ⇒ Object
Run the post processor on this Scenario.
-
#save ⇒ Object
Save scenario result.
Constructor Details
#initialize(scenario_base) ⇒ ScenarioPostProcessorBase
ScenarioPostProcessorBase post-processes a Scenario to create scenario level results.
- parameters:
-
scenario_base- ScenarioBase - An object of ScenarioBase class.
39 40 41 |
# File 'lib/urbanopt/scenario/scenario_post_processor_base.rb', line 39 def initialize(scenario_base) @scenario_base = scenario_base end |
Instance Attribute Details
#scenario_base ⇒ Object (readonly)
Returns the value of attribute scenario_base.
43 44 45 |
# File 'lib/urbanopt/scenario/scenario_post_processor_base.rb', line 43 def scenario_base @scenario_base end |
Instance Method Details
#add_simulation_dir(simulation_dir) ⇒ Object
Add results from a simulation_dir to this result.
- parameters:
-
simulation_dir- SimulationDirOSW - An object on SimulationDirOSW class.
57 58 59 |
# File 'lib/urbanopt/scenario/scenario_post_processor_base.rb', line 57 def add_simulation_dir(simulation_dir) raise 'add_simulation_dir not implemented for ScenarioPostProcessorBase, override in your class' end |
#run ⇒ Object
Run the post processor on this Scenario.
48 49 50 |
# File 'lib/urbanopt/scenario/scenario_post_processor_base.rb', line 48 def run raise 'run not implemented for ScenarioPostProcessorBase, override in your class' end |
#save ⇒ Object
Save scenario result.
64 65 66 |
# File 'lib/urbanopt/scenario/scenario_post_processor_base.rb', line 64 def save raise 'save not implemented for ScenarioPostProcessorBase, override in your class' end |