public class AlgorithmRun
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected SearchAlgorithm |
_algorithm
the algorithm to run
|
protected AlgorithmStrategy |
_algorithmStrategy
the strategy which generated this run
|
protected int |
_count
the number of evaluations remaining to be run
|
protected int |
_initialCount
the number of evaluations requested to run
|
protected AlgorithmSchedule |
_schedule
the schedule which schedules this run
|
Constructor and Description |
---|
AlgorithmRun(SearchAlgorithm algorithm,
AlgorithmStrategy strategy,
int count)
Creates a new instance of AlgorithmRun.
|
Modifier and Type | Method and Description |
---|---|
Trial |
evaluateTrialPoint(TrialPoint trialPoint)
Evaluate the given trial point.
|
SearchAlgorithm |
getAlgorithm()
The next algorithm to be run.
|
AlgorithmStrategy |
getAlgorithmStrategy()
Get the algorithm strategy that generated this algorithm
run.
|
int |
getCount()
Get the number of runs to perform.
|
int |
getEvaluationsCompleted()
Convenience method to get the number of evaluations completed.
|
int |
getInitialCount()
Get the initial number of evaluations to run.
|
boolean |
hasNext()
Signal if there is another algorithm run.
|
void |
performRun(AlgorithmSchedule schedule)
Perform the run.
|
protected SearchAlgorithm _algorithm
protected AlgorithmStrategy _algorithmStrategy
protected AlgorithmSchedule _schedule
protected int _count
protected final int _initialCount
public AlgorithmRun(SearchAlgorithm algorithm, AlgorithmStrategy strategy, int count)
algorithm
- The algorithm.strategy
- The algorithm strategycount
- The number of runs to perform.
the generated this algorithm run.public SearchAlgorithm getAlgorithm()
public AlgorithmStrategy getAlgorithmStrategy()
public int getCount()
public int getInitialCount()
public int getEvaluationsCompleted()
public boolean hasNext()
public void performRun(AlgorithmSchedule schedule)
schedule
- the schedule requesting the runpublic Trial evaluateTrialPoint(TrialPoint trialPoint)
trialPoint
- the trial point to evaluate