public class EvaluationThread
extends java.lang.Thread
Constructor and Description |
---|
EvaluationThread(OptionModelController optionModelController,
EvaluationProcess evaluationProcess)
Instantiates a new evaluation thread and starts the default evaluation strategy.
|
EvaluationThread(OptionModelController optionModelController,
EvaluationProcess evaluationProcess,
java.lang.String strategyClass)
Instantiates a new evaluation thread by using the specified strategy class.
|
Modifier and Type | Method and Description |
---|---|
long |
getExecutionTime()
Returns the current (if still running) or the final execution time (in milliseconds) of this thread.
|
boolean |
isRunning()
Checks if the Evaluation is running.
|
void |
run() |
void |
stopEvaluation()
Stops the evaluation process.
|
activeCount, checkAccess, clone, 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
public EvaluationThread(OptionModelController optionModelController, EvaluationProcess evaluationProcess)
optionModelController
- the current OptionModelController
evaluationProcess
- the current EvaluationProcess
public EvaluationThread(OptionModelController optionModelController, EvaluationProcess evaluationProcess, java.lang.String strategyClass)
optionModelController
- the option model controllerevaluationProcess
- the evaluation processstrategyClass
- the class reference of evaluation strategypublic void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public boolean isRunning()
public void stopEvaluation()
public long getExecutionTime()