public interface IOptimizationRunner
Modifier and Type | Method and Description |
---|---|
void |
addListeners(StatusListener... listeners) |
java.lang.Double |
bestScore()
Best score found so far
|
int |
bestScoreCandidateIndex()
Index of the best scoring candidate, or -1 if no candidate has scored yet
|
java.lang.Long |
bestScoreTime()
Time that the best score was found at, or 0 if no jobs have completed successfully
|
void |
execute() |
java.util.List<CandidateInfo> |
getCandidateStatus() |
OptimizationConfiguration |
getConfiguration() |
java.util.List<ResultReference> |
getResults() |
int |
numCandidatesCompleted() |
int |
numCandidatesFailed() |
int |
numCandidatesQueued()
Number of candidates running or queued
|
int |
numCandidatesTotal()
Total number of candidates: created (scheduled), completed and failed
|
void |
removeAllListeners() |
void |
removeListeners(StatusListener... listeners) |
void |
shutdown(boolean awaitCompletion) |
void execute()
int numCandidatesTotal()
int numCandidatesCompleted()
int numCandidatesFailed()
int numCandidatesQueued()
java.lang.Double bestScore()
java.lang.Long bestScoreTime()
int bestScoreCandidateIndex()
java.util.List<ResultReference> getResults()
OptimizationConfiguration getConfiguration()
void addListeners(StatusListener... listeners)
void removeListeners(StatusListener... listeners)
void removeAllListeners()
java.util.List<CandidateInfo> getCandidateStatus()
void shutdown(boolean awaitCompletion)
awaitCompletion
- If true: await completion of currently scheduled tasks. If false: shutdown immediately,
cancelling any currently executing tasks