class DFInputChannel
extends java.lang.Object
implements caltrop.interpreter.InputChannel
| Red (cxh) |
| Yellow (neuendor) |
| Constructor and Description |
|---|
DFInputChannel(TypedIOPort port,
int channel) |
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Commit reads of this channel.
|
java.lang.Object |
get(int n)
Get the given token from this input channel.
|
boolean |
hasAvailable(int n)
Return true if the given number of tokens are available to be
immediately read from the channel.
|
void |
rollback()
Rollback any reads from this channel, allowing the tokens to
be read again.
|
java.lang.String |
toString() |
public DFInputChannel(TypedIOPort port, int channel)
public java.lang.Object get(int n)
get in interface caltrop.interpreter.InputChannelpublic void commit()
commit in interface caltrop.interpreter.InputChannelpublic void rollback()
rollback in interface caltrop.interpreter.InputChannelpublic boolean hasAvailable(int n)
hasAvailable in interface caltrop.interpreter.InputChannelpublic java.lang.String toString()
toString in class java.lang.Object