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.



49
50
51
# File 'lib/urbanopt/scenario/scenario_post_processor_base.rb', line 49

def initialize(scenario_base)
  @scenario_base = scenario_base
end

Instance Attribute Details

#scenario_baseObject (readonly)

Returns the value of attribute scenario_base.



53
54
55
# File 'lib/urbanopt/scenario/scenario_post_processor_base.rb', line 53

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.



67
68
69
# File 'lib/urbanopt/scenario/scenario_post_processor_base.rb', line 67

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.



58
59
60
# File 'lib/urbanopt/scenario/scenario_post_processor_base.rb', line 58

def run
  raise 'run not implemented for ScenarioPostProcessorBase, override in your class'
end

#saveObject

Save scenario result.



74
75
76
# File 'lib/urbanopt/scenario/scenario_post_processor_base.rb', line 74

def save
  raise 'save not implemented for ScenarioPostProcessorBase, override in your class'
end