|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ArcToken
Arc tokens point to arcs in the graph. Arc tokens may be active only briefly, if the node at the end of the arc is ready to execute. However, if the node is a join node, and not all incoming arcs have tokens, an arc token may be active for some time.
Method Summary | |
---|---|
Arc |
getArc()
Returns the arc that this arc token points to. |
NodeToken |
getChildToken()
Returns the node token which was generated from this arc token. |
NodeToken |
getParentToken()
Returns the node token which directly preceded this arc token. |
GraphProcess |
getProcess()
Returns the process that this node token belongs to. |
Set<ArcTokenSetMember> |
getTokenSetMemberships()
Returns the set members for each token set that this token is tied to. |
boolean |
isPending()
Return true if this arc token requires processing, false otherwise. |
void |
markComplete(NodeToken child)
Marks this token as being complete, in the sense that it no longer represents an active part of the process. |
void |
markProcessed()
Marks this arc token as processed. |
Methods inherited from interface com.googlecode.sarasvati.Token |
---|
accept, getExecutionType, isComplete, markBacktracked |
Method Detail |
---|
Arc getArc()
GraphProcess getProcess()
NodeToken getParentToken()
NodeToken getChildToken()
boolean isPending()
void markProcessed()
isPending()
void markComplete(NodeToken child)
child
- The node token generated from this arc tokenSet<ArcTokenSetMember> getTokenSetMemberships()
getTokenSetMemberships
in interface Token
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |