|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| 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) |
| Constructor Summary | |
|---|---|
TokenGotEvent(IOPort sink,
int channel,
Token[] tokens,
int vectorLength,
boolean outside)
Create a new token got event with the given parameters. |
|
TokenGotEvent(IOPort sink,
int channel,
Token token,
boolean outside)
Create a new token got event with the given parameters. |
|
| Method Summary | |
|---|---|
int |
getChannel()
Return the channel the token was received on. |
boolean |
getOutsideFlag()
Return the direction flag (outside or inside). |
IOPort |
getPort()
Return the port that the token was received at. |
Token |
getToken()
Return the token that was received by the IOPort. |
Token[] |
getTokenArray()
Return the array of tokens that was received by the IOPort. |
int |
getVectorLength()
Return the number of tokens in the array taken at the IOPort. |
java.lang.String |
toString()
Return a string representation of this event. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 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 | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||