|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
JSHOP2.SolverThread
public class SolverThread
The thread that invokes JSHOP2 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 | |
---|---|
private int |
planNo
The maximum number of plans allowed. |
private java.util.LinkedList<Plan> |
plans
The list of plans to be returned. |
private TaskList |
tl
The task list to be achieved. |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
SolverThread(TaskList tlIn,
int planNoIn)
To initialize this thread. |
Method Summary | |
---|---|
java.util.LinkedList<Plan> |
getPlans()
To return the plans found by this thread. |
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 |
Field Detail |
---|
private int planNo
private java.util.LinkedList<Plan> plans
private TaskList tl
Constructor Detail |
---|
public SolverThread(TaskList tlIn, int planNoIn)
tlIn
- the task list to be achieved by this thread.planNoIn
- the maximum number of plans allowed.Method Detail |
---|
public java.util.LinkedList<Plan> getPlans()
LinkedList
of plans found by this thread.public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |