|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
stella.xml.ParsedTarget.RateThread
private class ParsedTarget.RateThread
A thread that waits for an expression to be fulfilled, then queries its constraints and rates an observation as successful, if everthing is fulfilled. On thread exit, we add the pick to the database.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
Thread.State, Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
private ParameterClustering |
condition
The parameters for evaluating our rating conditions. |
private List<Appointable.Constraint> |
fulfill
The list of constraint that must be fulfilled to rate successful. |
private HistoryAware.Pick |
pick
The pick we should update. |
private ExpressionEvaluator |
waitfor
The expression that must become true for a rating to proceed. |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
private |
ParsedTarget.RateThread(HistoryAware.Pick update,
ParameterClustering set,
ExpressionEvaluator canrate,
List<Appointable.Constraint> rate)
Constructs, but does not start the rating thread. |
| Method Summary | |
|---|---|
private void |
exitAction(TargetDefinition target,
HistoryAware.Pick pick)
Always called at the end of the thread's lifetime. |
void |
run()
Runs the rate thread. |
| Methods inherited from class java.lang.Thread |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private ParameterClustering condition
private ExpressionEvaluator waitfor
private List<Appointable.Constraint> fulfill
private HistoryAware.Pick pick
| Constructor Detail |
|---|
private ParsedTarget.RateThread(HistoryAware.Pick update,
ParameterClustering set,
ExpressionEvaluator canrate,
List<Appointable.Constraint> rate)
| Method Detail |
|---|
public void run()
run in interface Runnablerun in class Thread
private void exitAction(TargetDefinition target,
HistoryAware.Pick pick)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||