Class: URBANopt::Scenario::ScenarioRunnerBase
- Inherits:
-
Object
- Object
- URBANopt::Scenario::ScenarioRunnerBase
- Defined in:
- lib/urbanopt/scenario/scenario_runner_base.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#create_simulation_files(scenario, force_clear = false) ⇒ Object
Create all SimulationDirs for Scenario.
-
#initialize ⇒ ScenarioRunnerBase
constructor
ScenarioRunnerBase is the agnostic interface for a class which can create and run SimulationFiles.
-
#run(scenario, force_clear = false) ⇒ Object
Create and run all SimulationFiles for Scenario.
Constructor Details
#initialize ⇒ ScenarioRunnerBase
ScenarioRunnerBase is the agnostic interface for a class which can create and run SimulationFiles.
37 |
# File 'lib/urbanopt/scenario/scenario_runner_base.rb', line 37 def initialize; end |
Instance Method Details
#create_simulation_files(scenario, force_clear = false) ⇒ Object
Create all SimulationDirs for Scenario.
- parameters:
-
scenario- ScenarioBase - Scenario to create simulation input files for scenario.force_clear- Bool - Clear Scenario before creating simulation input files- return:
-
Array Returns an array of all SimulationDirs, even those created previously, for Scenario.
46 47 48 |
# File 'lib/urbanopt/scenario/scenario_runner_base.rb', line 46 def create_simulation_files(scenario, force_clear = false) raise 'create_input_files is not implemented for ScenarioRunnerBase, override in your class' end |
#run(scenario, force_clear = false) ⇒ Object
Create and run all SimulationFiles for Scenario.
- parameters:
-
scenario- ScenarioBase - Scenario to create and run simulation input files for.force_clear- Bool - Clear Scenario before creating Simulation input files.- return:
-
Array Returns an array of all SimulationDirs, even those created previously, for Scenario.
58 59 60 |
# File 'lib/urbanopt/scenario/scenario_runner_base.rb', line 58 def run(scenario, force_clear = false) raise 'run is not implemented for ScenarioRunnerBase, override in your class' end |