|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
algo.RunByteLocTSP
class RunByteLocTSP
Thread for parallel computation.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
private BestByteLocStore |
best
|
int |
COUNT
|
private Deque |
globalStack
|
private long |
iter
|
private long |
maxiter
|
private long |
pushes
|
private java.util.ArrayList |
stack
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
RunByteLocTSP(Deque s,
BestByteLocStore b,
long max)
|
Method Summary | |
---|---|
void |
getBest(Path path)
|
void |
getBestRec(Path path,
int depth)
|
long |
getIterations()
|
long |
getMaxIterations()
|
void |
run()
|
long |
setMaxIterations(long m)
|
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 BestByteLocStore best
private Deque globalStack
private long maxiter
private long iter
private long pushes
private java.util.ArrayList stack
public final int COUNT
Constructor Detail |
---|
public RunByteLocTSP(Deque s, BestByteLocStore b, long max)
s
- work queue.b
- storage for best path.max
- maximal number of iterations.Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void getBest(Path path)
path
- a starting path.public void getBestRec(Path path, int depth)
path
- a starting path.depth
- length of this path.public long getIterations()
public long getMaxIterations()
public long setMaxIterations(long m)
m
- new maxIter.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |