Class: URBANopt::Scenario::ScenarioPostProcessorBase

Inherits:
Object
  • Object
show all
Defined in:
lib/urbanopt/scenario/scenario_post_processor_base.rb

Direct Known Subclasses

ScenarioDefaultPostProcessor

Instance Attribute Summary collapse

Instance Method Summary collapse

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_baseObject (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

#runObject

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

#saveObject

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