Class TSG_Command

java.lang.Object
de.grogra.graph.wrapped.impl.parallel.TSG_Command
All Implemented Interfaces:
ThreadableCommand, Command

public abstract class TSG_Command extends Object implements ThreadableCommand
  • Constructor Details

    • TSG_Command

      public TSG_Command()
  • Method Details

    • getCommandName

      public String getCommandName()
      Description copied from interface: Command
      Returns a name which can be used in the graphical user interface to represent this command.
      Specified by:
      getCommandName in interface Command
      Returns:
      this commands's name
    • run

      public void run(Object info, Context context)
      Description copied from interface: Command
      Performs the actions of this command. This method is invoked by the JobManager after the command has been submitted to the job manager by one of execute, runAt, or runLater-methods. The arguments info and context are the arguments which have been provided as arguments to the JobManager-methods.
      Specified by:
      run in interface Command
      Parameters:
      info - an argument
      context - a context
    • runG

      public abstract void runG(TWGraph wg)
    • asRunnable

      public Runnable asRunnable(TWGraph wg, Context ctx)
    • getCallbackQueue

      public BlockingQueue getCallbackQueue()
      Specified by:
      getCallbackQueue in interface ThreadableCommand
    • setCallbackQueue

      public void setCallbackQueue(BlockingQueue callbackQueue)
      Specified by:
      setCallbackQueue in interface ThreadableCommand