java.lang.Object
fr.ens.biologie.genomique.eoulsan.core.workflow.TokenManager
All Implemented Interfaces:
Runnable

public class TokenManager extends Object implements Runnable
This class define a token manager for a step.
Since:
2.0
Author:
Laurent Jourdren
  • 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()
      Specified by:
      run in interface Runnable