Package org.kigalisim.lang.fragment
Class ScenariosFragment
java.lang.Object
org.kigalisim.lang.fragment.Fragment
org.kigalisim.lang.fragment.ScenariosFragment
A fragment containing parsed scenarios.
-
Constructor Summary
ConstructorsConstructorDescriptionScenariosFragment(ParsedScenarios scenarios) Create a new fragment containing parsed scenarios. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if this fragment is a policy stanza (or default).booleanCheck if this fragment is a scenarios stanza.Get the scenarios parsed from the source of this fragment.Methods inherited from class org.kigalisim.lang.fragment.Fragment
getApplication, getDuring, getOperation, getPolicy, getProgram, getScenario, getString, getSubstance, getUnit
-
Constructor Details
-
ScenariosFragment
Create a new fragment containing parsed scenarios.- Parameters:
scenarios- The scenarios parsed from the source of this fragment.
-
-
Method Details
-
getScenarios
Description copied from class:FragmentGet the scenarios parsed from the source of this fragment.- Overrides:
getScenariosin classFragment- Returns:
- The parsed scenarios.
-
getIsStanzaScenarios
public boolean getIsStanzaScenarios()Description copied from class:FragmentCheck if this fragment is a scenarios stanza.- Overrides:
getIsStanzaScenariosin classFragment- Returns:
- True if this fragment is a scenarios stanza, false if another stanza.
-
getIsStanzaPolicyOrDefault
public boolean getIsStanzaPolicyOrDefault()Description copied from class:FragmentCheck if this fragment is a policy stanza (or default).- Overrides:
getIsStanzaPolicyOrDefaultin classFragment- Returns:
- True if policy stanza, false if another stanza.
-