Package org.kigalisim.lang.fragment
Class OperationFragment
java.lang.Object
org.kigalisim.lang.fragment.Fragment
org.kigalisim.lang.fragment.OperationFragment
A fragment containing only a calculation.
-
Constructor Summary
ConstructorsConstructorDescriptionOperationFragment(Operation operation) Create a new fragment containing an operation. -
Method Summary
Modifier and TypeMethodDescriptionGet the operation parsed from the source of this fragment.Methods inherited from class org.kigalisim.lang.fragment.Fragment
getApplication, getDuring, getIsStanzaPolicyOrDefault, getIsStanzaScenarios, getPolicy, getProgram, getScenario, getScenarios, getString, getSubstance, getUnit
-
Constructor Details
-
OperationFragment
Create a new fragment containing an operation.- Parameters:
operation- The calculation parsed from the source of this fragment.
-
-
Method Details
-
getOperation
Get the operation parsed from the source of this fragment.- Overrides:
getOperationin classFragment- Returns:
- Operation which can be resolved to an EngineNumber at runtime.
-