Package org.kigalisim.lang.program
Class ParsedScenario
java.lang.Object
org.kigalisim.lang.program.ParsedScenario
Record of a scenario parsed from the source of a QubecTalk program.
Contains the ordered list of policies which should be applied in this scenario.
-
Constructor Summary
ConstructorsConstructorDescriptionParsedScenario(String name, List<String> policies, int startYear, int endYear, int trials) Create a new record of a scenario. -
Method Summary
Modifier and TypeMethodDescriptionintGet the ending year for the simulation.getName()Gets the name of the scenario.Get the ordered list of policies for this scenario.intGet the starting year for the simulation.intGet the number of trials for the simulation.
-
Constructor Details
-
ParsedScenario
Create a new record of a scenario.- Parameters:
name- The name of the scenario parsed.policies- The ordered list of policies which should be applied in this scenario excluding default which is always applied first.startYear- The starting year for the simulation.endYear- The ending year for the simulation.trials- The number of trials to run for the simulation.
-
-
Method Details
-
getName
Gets the name of the scenario.- Returns:
- The name of the scenario.
-
getPolicies
Get the ordered list of policies for this scenario.Does not include the "default" policy which is always applied first.
- Returns:
- Iterable over the names of the policies which should be applied in this scenario in order.
-
getStartYear
public int getStartYear()Get the starting year for the simulation.- Returns:
- The starting year.
-
getEndYear
public int getEndYear()Get the ending year for the simulation.- Returns:
- The ending year.
-
getTrials
public int getTrials()Get the number of trials for the simulation.- Returns:
- The number of trials.
-