@Deprecated
public class TokenSentEvent
extends java.lang.Object
Red (barney) |
Red (barney) |
Constructor and Description |
---|
TokenSentEvent(IOPort source,
int channel,
Token token)
Deprecated.
Create a new token sent event with the given parameters.
|
TokenSentEvent(IOPort source,
int channel,
Token[] tokens,
int vectorLength)
Deprecated.
Create a new token sent event with the given parameters.
|
TokenSentEvent(IOPort source,
Token token)
Deprecated.
Create a new token sent event with the given parameters.
|
TokenSentEvent(IOPort source,
Token[] tokens,
int vectorLength)
Deprecated.
Create a new token sent event with the given parameters.
|
Modifier and Type | Method and Description |
---|---|
int |
getChannel()
Deprecated.
Return the channel the token was sent on.
|
IOPort |
getPort()
Deprecated.
Return the port that the token was sent from.
|
Token |
getToken()
Deprecated.
Return the token that was sent by the IOPort.
|
Token[] |
getTokenArray()
Deprecated.
Return the array of tokens that the IOPort sent.
|
int |
getVectorLength()
Deprecated.
Return the number of tokens in the array sent by the IOPort.
|
java.lang.String |
toString()
Deprecated.
Return a string representation of this event.
|
public TokenSentEvent(IOPort source, int channel, Token[] tokens, int vectorLength)
source
- The IOPort the token came from.channel
- Channel the token was sent on.tokens
- The token array used for the send.vectorLength
- The number of tokens sent.public TokenSentEvent(IOPort source, int channel, Token token)
source
- The IOPort the token came from.channel
- Channel the token was sent on.token
- The token that was sent.public TokenSentEvent(IOPort source, Token token)
source
- The IOPort the token came from.token
- The token that was sent.public TokenSentEvent(IOPort source, Token[] tokens, int vectorLength)
source
- The IOPort the token came from.tokens
- The token array used for the broadcast.vectorLength
- The number of tokens sent.public int getChannel()
public IOPort getPort()
public Token getToken()
public Token[] getTokenArray()
public int getVectorLength()
public java.lang.String toString()
toString
in class java.lang.Object