Class GetStreamOperation
java.lang.Object
org.kigalisim.lang.operation.GetStreamOperation
- All Implemented Interfaces:
Operation
-
Constructor Summary
ConstructorsConstructorDescriptionGetStreamOperation(String streamName) Create a new GetStreamOperation.GetStreamOperation(String streamName, int yearsPast) Create a new GetStreamOperation with a lookback period.GetStreamOperation(String streamName, int yearsPast, String units) Create a new GetStreamOperation with unit conversion and lookback period.GetStreamOperation(String streamName, int yearsPast, String targetSubstance, String units) Create a new GetStreamOperation with scope resolution, unit conversion, and lookback period.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.Get a record describing this operation's semantics.
-
Constructor Details
-
GetStreamOperation
Create a new GetStreamOperation.- Parameters:
streamName- The name of the stream to get.
-
GetStreamOperation
Create a new GetStreamOperation with a lookback period.- Parameters:
streamName- The name of the stream to get.yearsPast- The number of years to look back. Zero means current year.
-
GetStreamOperation
-
GetStreamOperation
Create a new GetStreamOperation with unit conversion and lookback period.- Parameters:
streamName- The name of the stream to get.yearsPast- The number of years to look back. Zero means current year.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.
-
GetStreamOperation
Create a new GetStreamOperation with scope resolution, unit conversion, and lookback period.- Parameters:
streamName- The name of the stream to get.yearsPast- The number of years to look back. Zero means current year.targetSubstance- The substance name to resolve to (for indirect access).units- The units to convert to.
-
-
Method Details
-
execute
Execute the calculation and leave the result at the top of the stack. -
getStaticSemantics
Get a record describing this operation's semantics.Get a record describing this operation's semantics that are inferrable from its static expression in code. In other words, properties and effects which do not require inspection at time of executing the operation.
- Specified by:
getStaticSemanticsin interfaceOperation- Returns:
- Inference of common static properties found for this operation.
-