org.jscience.computing.ai.planning
Class SolverThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.jscience.computing.ai.planning.SolverThread
All Implemented Interfaces:
java.lang.Runnable

public class SolverThread
extends java.lang.Thread

The thread that invokes Planner to solve a planning problem. The only reason to have another thread to solve problems rather than using the main thread to do so is that, in some platforms, the command line parameters that are supposed to change the stack size work only for the threads other than the main thread.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SolverThread(TaskList tlIn, boolean findAllIn)
          To initialize this thread.
 
Method Summary
 void run()
          The function that is called when this thread is invoked.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SolverThread

public SolverThread(TaskList tlIn,
                    boolean findAllIn)
To initialize this thread.

Parameters:
tlIn - the task list to be achieved by this thread.
findAllIn - true if the thread is to return all the possible plans, false if the function is to return only the the first plan found.
Method Detail

run

public void run()
The function that is called when this thread is invoked.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread