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 thatvoid
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 baselineScenariovoid
purge(Scenario scenario)
Delete all data related to scenariovoid
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
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
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
Delete all data related to scenario
-