Sha256: 9d677763f280c9b2736c62185aa4a1da36b0dd892c74c8fff8d2113ecfdad27b

Contents?: true

Size: 1.4 KB

Versions: 2

Compression:

Stored size: 1.4 KB

Contents

# *********************************************************************************
# URBANopt (tm), Copyright (c) Alliance for Sustainable Energy, LLC.
# See also https://github.com/urbanopt/urbanopt-scenario-gem/blob/develop/LICENSE.md
# *********************************************************************************

module URBANopt
  module Scenario
    class ScenarioPostProcessorBase
      ##
      # ScenarioPostProcessorBase post-processes a Scenario to create scenario level results.
      ##
      # [parameters:]
      # * +scenario_base+ - _ScenarioBase_ - An object of ScenarioBase class.
      def initialize(scenario_base)
        @scenario_base = scenario_base
      end

      attr_reader :scenario_base

      ##
      # Run the post processor on this Scenario.
      ##
      def run
        raise 'run not implemented for ScenarioPostProcessorBase, override in your class'
      end

      ##
      # Add results from a simulation_dir to this result.
      ##
      # [parameters:]
      # * +simulation_dir+ - _SimulationDirOSW_ - An object on SimulationDirOSW class.
      def add_simulation_dir(simulation_dir)
        raise 'add_simulation_dir not implemented for ScenarioPostProcessorBase, override in your class'
      end

      ##
      # Save scenario result.
      ##
      def save
        raise 'save not implemented for ScenarioPostProcessorBase, override in your class'
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
urbanopt-scenario-0.11.0 lib/urbanopt/scenario/scenario_post_processor_base.rb
urbanopt-scenario-0.10.0 lib/urbanopt/scenario/scenario_post_processor_base.rb