|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
algo.DistRunTSP
class DistRunTSP
Thread to communicate with distributed processes.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
private DistBestStore |
best
|
private SocketChannel |
comm
|
private Deque |
globalStack
|
private long |
iter
|
private long |
localWork
|
private static Logger |
logger
|
private long |
maxIter
|
private long |
pushes
|
private long |
requests
|
private java.util.ArrayList |
stack
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
DistRunTSP(Deque s,
DistBestStore b,
long max,
SocketChannel comm)
|
Method Summary | |
---|---|
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 DistBestStore best
private Deque globalStack
private long maxIter
private long iter
private long localWork
private long pushes
private long requests
private java.util.ArrayList stack
private SocketChannel comm
private static Logger logger
Constructor Detail |
---|
public DistRunTSP(Deque s, DistBestStore b, long max, SocketChannel comm)
s
- work queue.b
- current best path.max
- maximal number of iterations.comm
- a channel to the remote process.Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public long getIterations()
public long getMaxIterations()
public long setMaxIterations(long m)
m
- new maximal number of iterations.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |