public class SingleAlgorithmStrategy extends AlgorithmStrategy
Modifier and Type | Field and Description |
---|---|
protected SearchAlgorithm |
_algorithm
the single algorithm to schedule
|
_efficiency
Constructor and Description |
---|
SingleAlgorithmStrategy(AlgorithmPool pool,
SearchAlgorithm algorithm)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLabel()
Return the label for the algorithm strategy.
|
SearchAlgorithm |
getSearchAlgorithm()
Get the search algorithm.
|
protected AlgorithmRunStack |
proposeRuns()
The default method for generating an algorithm run stack.
|
algorithmAdded, algorithmAvailable, algorithmRemoved, algorithmUnavailable, execute, foundNewOptimalSolution, getEfficiency, getNearestIntegerInRange, getRunCount, strategyExecuted, strategyWillExecute, toString, trialScored, trialVetoed
protected final SearchAlgorithm _algorithm
public SingleAlgorithmStrategy(AlgorithmPool pool, SearchAlgorithm algorithm)
pool
- the pool of algorithmsalgorithm
- the algorithm to schedulepublic java.lang.String getLabel()
getLabel
in class AlgorithmStrategy
public SearchAlgorithm getSearchAlgorithm()
protected AlgorithmRunStack proposeRuns()
proposeRuns
in class AlgorithmStrategy