Package org.kigalisim.lang.operation
Class GetStreamOperation
java.lang.Object
org.kigalisim.lang.operation.GetStreamOperation
- All Implemented Interfaces:
Operation
Operation to get a stream value.
-
Constructor Summary
ConstructorsConstructorDescriptionGetStreamOperation(String streamName) Create a new GetStreamOperation.GetStreamOperation(String streamName, String units) Create a new GetStreamOperation with unit conversion.GetStreamOperation(String streamName, String targetSubstance, String units) Create a new GetStreamOperation with scope resolution and unit conversion. -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(PushDownMachine machine) Execute the calculation and leave the result at the top of the stack.
-
Constructor Details
-
GetStreamOperation
Create a new GetStreamOperation.- Parameters:
streamName- The name of the stream to get.
-
GetStreamOperation
Create a new GetStreamOperation with unit conversion.- Parameters:
streamName- The name of the stream to get.units- The units to convert to.
-
GetStreamOperation
Create a new GetStreamOperation with scope resolution and unit conversion.- Parameters:
streamName- The name of the stream to get.targetSubstance- The substance name to resolve to (for indirect access).units- The units to convert to.
-
-
Method Details