|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.actor.TokenGotEvent
public class TokenGotEvent
An event that is published by IOPorts whenever get or getInside is called. The appropriate event should be published whenever a token is taken out from the port's queue by the actor code. 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 (pnorbert) |
Red (pnorbert) |
Field Summary | |
---|---|
private int |
_channel
Deprecated. |
private boolean |
_outside
Deprecated. |
private IOPort |
_port
Deprecated. |
private Token |
_token
Deprecated. |
private Token[] |
_tokenArray
Deprecated. |
private int |
_vectorLength
Deprecated. |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
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
private boolean _outside
Constructor Detail |
---|
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.Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |