The SUMO toolbox
2018a
|
Public Member Functions | |
DefaultSampleQueueManager (Config config) | |
EvaluationUnit | requestNewSample () |
Get a point from the input queue. More... | |
void | submitNewSamples (SamplePoint[] points) |
Prepare the passed sample points for evaluation and add them to the queue. More... | |
void | submitNewSample (SamplePoint point) |
Add & process one new sample. More... | |
int | pendingSamples () |
Return the number of samples that are currently waiting to be evaluated. More... | |
int | evaluatedSamples () |
Return the number of samples that have been evaluated already. More... | |
double | averageEvaluationTime () |
Get the average time it takes to evaluate one single sample. More... | |
void | submitEvaluatedSample (EvaluationUnit unit) |
Signal that a set of samples have been evaluated Valid termination states include: EVALUATED: The point was evaluated correctly. More... | |
SamplePoint | requestEvaluatedSample () |
Get a newly evaluated sample. More... | |
void | cleanup () |
Protected Member Functions | |
abstract EvaluationUnit | getFromInputQueue () |
abstract void | addToInputQueue (EvaluationUnit unit) |
Add a new evaluation unit to the input queue. More... | |
void | flagAsPending (EvaluationUnit unit) |
|
inline |
|
abstractprotectedinherited |
Add a new evaluation unit to the input queue.
|
inlineinherited |
Get the average time it takes to evaluate one single sample.
|
inlineinherited |
|
inlineinherited |
Return the number of samples that have been evaluated already.
|
inlineprotectedinherited |
|
abstractprotected |
|
inlineinherited |
Return the number of samples that are currently waiting to be evaluated.
|
inlineinherited |
Get a newly evaluated sample.
Returns null if the queue is empty.
|
inline |
Get a point from the input queue.
|
inlineinherited |
Signal that a set of samples have been evaluated Valid termination states include: EVALUATED: The point was evaluated correctly.
AGAIN: The point wasn't evaluated, but might succeed a next time (for cluster failover, reintroduce in new samples queue). FAILED: The point can't be evaluated.
|
inlineinherited |
Add & process one new sample.
point | The sample to be submitted. |
|
inlineinherited |
Prepare the passed sample points for evaluation and add them to the queue.