|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.actor.TokenSentEvent
public class TokenSentEvent
An event that is published by IOPorts whenever broadcast, send or sendInside is called. The appropriate event should be published whenever a token is transfered from one port to another. In Kepler the provenance recorder uses these events to save intermediate results of the workflow. In the future these events could be used for "smart" reruns or a fault tolerance mechanism.
Red (barney) |
Red (barney) |
Field Summary | |
---|---|
private int |
_channel
Deprecated. |
private IOPort |
_port
Deprecated. |
private Token |
_token
Deprecated. |
private Token[] |
_tokenArray
Deprecated. |
private int |
_vectorLength
Deprecated. |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private int _channel
private IOPort _port
private Token _token
private Token[] _tokenArray
private int _vectorLength
Constructor Detail |
---|
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.Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |