Package ptolemy.caltrop.ddi.util
Class DataflowActorInterpreter.SingleTokenReaderThunk
- java.lang.Object
-
- ptolemy.caltrop.ddi.util.DataflowActorInterpreter.SingleTokenReaderThunk
-
- All Implemented Interfaces:
caltrop.interpreter.environment.Environment.VariableContainer
- Enclosing class:
- DataflowActorInterpreter
protected static class DataflowActorInterpreter.SingleTokenReaderThunk extends java.lang.Object implements caltrop.interpreter.environment.Environment.VariableContainer
A single token reader thunk encapsulates the operation of reading a single token from a specified channel. This allows us to defer the reading operation to the time when the token is actually needed.
-
-
Constructor Summary
Constructors Constructor Description SingleTokenReaderThunk(caltrop.interpreter.InputChannel channel, int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
freeze()
java.lang.Object
value()
java.lang.Object
value(java.lang.Object[] location)
-
-
-
Method Detail
-
value
public java.lang.Object value()
- Specified by:
value
in interfacecaltrop.interpreter.environment.Environment.VariableContainer
-
value
public java.lang.Object value(java.lang.Object[] location)
- Specified by:
value
in interfacecaltrop.interpreter.environment.Environment.VariableContainer
-
freeze
public void freeze()
- Specified by:
freeze
in interfacecaltrop.interpreter.environment.Environment.VariableContainer
-
-