Class TokenManager
java.lang.Object
fr.ens.biologie.genomique.eoulsan.core.workflow.TokenManager
- All Implemented Interfaces:
Runnable
This class define a token manager for a step.
- Since:
- 2.0
- Author:
- Laurent Jourdren
-
Method Summary
Modifier and TypeMethodDescriptionintGet the number of context created by the token manager.booleanTest if this is the end of the step.booleanTest if there is no token to be received by the token manager.booleanTest if the thread for the token is started.voidrun()voidtokenEvent(fr.ens.biologie.genomique.eoulsan.core.workflow.Token token)
-
Method Details
-
isNoTokenToReceive
public boolean isNoTokenToReceive()Test if there is no token to be received by the token manager.- Returns:
- true if no token to be received by the token manager
-
getContextCount
public int getContextCount()Get the number of context created by the token manager.- Returns:
- the number of context created by the token manager
-
isEndOfStep
public boolean isEndOfStep()Test if this is the end of the step.- Returns:
- true if this is the end of the step
-
tokenEvent
public void tokenEvent(fr.ens.biologie.genomique.eoulsan.core.workflow.Token token) -
isStarted
public boolean isStarted()Test if the thread for the token is started.- Returns:
- true if the thread for the token is started
-
run
public void run()
-