Package org.kigalisim.lang.program
Class ParsedScenarios
java.lang.Object
org.kigalisim.lang.program.ParsedScenarios
Record of scenarios parsed from the source of a QubecTalk program.
Contains the scenarios defined in the simulations stanza with their associated policies.
-
Constructor Summary
ConstructorsConstructorDescriptionParsedScenarios(Iterable<ParsedScenario> scenarios) Create a new record of scenarios. -
Method Summary
Modifier and TypeMethodDescriptiongetScenario(String name) Get a specific scenario by name.Get the names of all scenarios defined in this simulations stanza.
-
Constructor Details
-
ParsedScenarios
Create a new record of scenarios.- Parameters:
scenarios- The scenarios defined in the simulations stanza.
-
-
Method Details
-
getScenarios
Get the names of all scenarios defined in this simulations stanza.- Returns:
- Set of scenario names.
-
getScenario
Get a specific scenario by name.- Parameters:
name- The name of the scenario to retrieve.- Returns:
- The scenario with the specified name.
- Throws:
IllegalArgumentException- if no scenario with the given name exists.
-