edu.stanford.rsl.jpop
Class BlockThread
- java.lang.Object
-
- java.lang.Thread
-
- edu.stanford.rsl.jpop.BlockThread
-
- All Implemented Interfaces:
- java.lang.Runnable
public class BlockThread extends java.lang.ThreadClass to run the block evaluation in an independent Thread.
-
-
Constructor Summary
Constructors Constructor and Description BlockThread()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetBlock()OptimizableFunctiongetFunction()java.util.concurrent.CountDownLatchgetLatch()FunctionOptimizer.OptimizationModegetMode()java.lang.ObjectgetResult()double[]getX()voidrun()voidsetBlock(int block)voidsetFunction(OptimizableFunction function)voidsetLatch(java.util.concurrent.CountDownLatch latch)voidsetMode(FunctionOptimizer.OptimizationMode mode)voidsetX(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
-
-
-
-
Method Detail
-
getMode
public FunctionOptimizer.OptimizationMode getMode()
- Returns:
- the mode
-
setMode
public void setMode(FunctionOptimizer.OptimizationMode mode)
- Parameters:
mode- the mode to set
-
getX
public double[] getX()
- Returns:
- the x
-
setX
public void setX(double[] x)
- Parameters:
x- the x to set
-
getBlock
public int getBlock()
- Returns:
- the block
-
setBlock
public void setBlock(int block)
- Parameters:
block- the block to set
-
getFunction
public OptimizableFunction getFunction()
- Returns:
- the function
-
setFunction
public void setFunction(OptimizableFunction function)
- Parameters:
function- the function to set
-
getResult
public java.lang.Object getResult()
- Returns:
- the result
-
setLatch
public void setLatch(java.util.concurrent.CountDownLatch latch)
- Parameters:
latch- the latch to set
-
getLatch
public java.util.concurrent.CountDownLatch getLatch()
- Returns:
- the latch
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable- Overrides:
runin classjava.lang.Thread
-
-
DMelt 3.0 © DataMelt by jWork.ORG