@Deprecated
public class TokenGotEvent
extends java.lang.Object
Red (pnorbert) |
Red (pnorbert) |
Constructor and Description |
---|
TokenGotEvent(IOPort sink,
int channel,
Token[] tokens,
int vectorLength,
boolean outside)
Deprecated.
Create a new token got event with the given parameters.
|
TokenGotEvent(IOPort sink,
int channel,
Token token,
boolean outside)
Deprecated.
Create a new token got event with the given parameters.
|
Modifier and Type | Method and Description |
---|---|
int |
getChannel()
Deprecated.
Return the channel the token was received on.
|
boolean |
getOutsideFlag()
Deprecated.
Return the direction flag (outside or inside).
|
IOPort |
getPort()
Deprecated.
Return the port that the token was received at.
|
Token |
getToken()
Deprecated.
Return the token that was received by the IOPort.
|
Token[] |
getTokenArray()
Deprecated.
Return the array of tokens that was received by the
IOPort.
|
int |
getVectorLength()
Deprecated.
Return the number of tokens in the array taken at the IOPort.
|
java.lang.String |
toString()
Deprecated.
Return a string representation of this event.
|
public TokenGotEvent(IOPort sink, int channel, Token[] tokens, int vectorLength, boolean outside)
sink
- The IOPort the token is stored at.channel
- Channel the token was received on.tokens
- The token array used for the get.vectorLength
- The number of tokens taken.outside
- True if the token was taken on outside channel,
false otherwise.public TokenGotEvent(IOPort sink, int channel, Token token, boolean outside)
sink
- The IOPort the token is stored at.channel
- Channel the token was received on.token
- The token that was received.outside
- True if the token was taken on outside channel,
false otherwise.public int getChannel()
public IOPort getPort()
public Token getToken()
public Token[] getTokenArray()
public int getVectorLength()
public boolean getOutsideFlag()
public java.lang.String toString()
toString
in class java.lang.Object