Interface ScenarioService

All Superinterfaces:
Service

public interface ScenarioService
extends Service
New public API for clients to create Scenarios and Scenario data
  • Method Summary

    Modifier and Type Method Description
    void createBaselineScenarioData​(Scenario scenario)
    Given a Scenario (metadata): assign an ID to the Scenario and save it to the DB lookup its ScenarioBuilder using the ScenarioType, then create Baseline Scenario Data using that
    void createScenarioFromBaseline​(Scenario scenario)
    Given a Scenario (metadata): assign an ID to the Scenario and save it to the DB lookup its ScenarioBuilder using the ScenarioType, then create the Scenario data using baselineScenario
    void purge​(Scenario scenario)
    Delete all data related to scenario
    void registerScenarioBuilder​(java.lang.String scenarioType, java.lang.Class<? extends ScenarioBuilder> builderClass)
    Given a fully-qualified ScenarioType, register an appropriate ScenarioBuilder impl for it Meant to be called from ModuleContextListener
  • Method Details

    • createBaselineScenarioData

      void createBaselineScenarioData​(Scenario scenario)
      Given a Scenario (metadata):
      • assign an ID to the Scenario and save it to the DB
      • lookup its ScenarioBuilder using the ScenarioType, then create Baseline Scenario Data using that
    • createScenarioFromBaseline

      void createScenarioFromBaseline​(Scenario scenario)
      Given a Scenario (metadata):
      • assign an ID to the Scenario and save it to the DB
      • lookup its ScenarioBuilder using the ScenarioType, then create the Scenario data using baselineScenario
    • registerScenarioBuilder

      void registerScenarioBuilder​(java.lang.String scenarioType, java.lang.Class<? extends ScenarioBuilder> builderClass)
      Given a fully-qualified ScenarioType, register an appropriate ScenarioBuilder impl for it Meant to be called from ModuleContextListener
    • purge

      void purge​(Scenario scenario)
      Delete all data related to scenario