|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread edu.stanford.rsl.jpop.BlockThread
public class BlockThread
Class to run the block evaluation in an independent 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 | |
---|---|
BlockThread()
|
Method Summary | |
---|---|
int |
getBlock()
|
OptimizableFunction |
getFunction()
|
java.util.concurrent.CountDownLatch |
getLatch()
|
FunctionOptimizer.OptimizationMode |
getMode()
|
java.lang.Object |
getResult()
|
double[] |
getX()
|
void |
run()
|
void |
setBlock(int block)
|
void |
setFunction(OptimizableFunction function)
|
void |
setLatch(java.util.concurrent.CountDownLatch latch)
|
void |
setMode(FunctionOptimizer.OptimizationMode mode)
|
void |
setX(double[] x)
|
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 |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BlockThread()
Method Detail |
---|
public FunctionOptimizer.OptimizationMode getMode()
public void setMode(FunctionOptimizer.OptimizationMode mode)
mode
- the mode to setpublic double[] getX()
public void setX(double[] x)
x
- the x to setpublic int getBlock()
public void setBlock(int block)
block
- the block to setpublic OptimizableFunction getFunction()
public void setFunction(OptimizableFunction function)
function
- the function to setpublic java.lang.Object getResult()
public void setLatch(java.util.concurrent.CountDownLatch latch)
latch
- the latch to setpublic java.util.concurrent.CountDownLatch getLatch()
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 |