de.unihalle.informatik.Alida.workflows
Class ALDWorkflow.ExecuteThread

java.lang.Object
  extended by java.lang.Thread
      extended by de.unihalle.informatik.Alida.workflows.ALDWorkflow.ExecuteThread
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
ALDWorkflow

 class ALDWorkflow.ExecuteThread
extends java.lang.Thread

This thread executes all non-ready nodes in the given order. Execution may be asked to be terminated by calling the workflows interruptExecution method. Currently termination will take effect before the next node is executed.

Author:
posch

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  java.util.List<ALDWorkflowNode> nodes
          The nodes of the workflow to execute
private  ALDWorkflow workflow
          workflow to execute nodes for.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ALDWorkflow.ExecuteThread(ALDWorkflow workflow, java.util.List<ALDWorkflowNode> nodes)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

nodes

private final java.util.List<ALDWorkflowNode> nodes
The nodes of the workflow to execute


workflow

private final ALDWorkflow workflow
workflow to execute nodes for.

Constructor Detail

ALDWorkflow.ExecuteThread

public ALDWorkflow.ExecuteThread(ALDWorkflow workflow,
                                 java.util.List<ALDWorkflowNode> nodes)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread