Class ParsedScenarios

java.lang.Object
org.kigalisim.lang.program.ParsedScenarios

public class ParsedScenarios extends Object
Record of scenarios parsed from the source of a QubecTalk program.

Contains the scenarios defined in the simulations stanza with their associated policies.

  • Constructor Details

    • ParsedScenarios

      public ParsedScenarios(Iterable<ParsedScenario> scenarios)
      Create a new record of scenarios.
      Parameters:
      scenarios - The scenarios defined in the simulations stanza.
  • Method Details

    • getScenarios

      public Set<String> getScenarios()
      Get the names of all scenarios defined in this simulations stanza.
      Returns:
      Set of scenario names.
    • getScenario

      public ParsedScenario getScenario(String name)
      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.