Package xal.extension.solver
Interface AlgorithmScheduleListener
- All Known Implementing Classes:
AlgorithmMarket,AlgorithmPool,DirectedStep,InitialAlgorithm,RandomSearch,RandomShrinkSearch,ScoreBoard,SearchAlgorithm,SimplexSearchAlgorithm
public interface AlgorithmScheduleListener
The interface implemented by listeners of algorithm schedule events.
- Author:
- ky6, t6p
-
Method Summary
Modifier and TypeMethodDescriptionvoidalgorithmRunExecuted(AlgorithmSchedule schedule, SearchAlgorithm algorithm, ScoreBoard scoreBoard) Handle an event where a new algorithm run stack has completed.voidalgorithmRunWillExecute(AlgorithmSchedule schedule, SearchAlgorithm algorithm, ScoreBoard scoreBoard) Handle an event where a new algorithm run stack will start.voidtrialScored(AlgorithmSchedule algorithmSchedule, Trial trial) Handle an event where a trial has been scored.voidtrialVetoed(AlgorithmSchedule algorithmSchedule, Trial trial) Handle an event where a trial has been vetoed.
-
Method Details
-
trialScored
Handle an event where a trial has been scored.- Parameters:
algorithmSchedule- The algorithm schedule that holds the trial scored.trial- The trial that was scored.
-
trialVetoed
Handle an event where a trial has been vetoed.- Parameters:
algorithmSchedule- The algorithm schedule that holds the trial vetoed.trial- The trial that was vetoed.
-
algorithmRunWillExecute
void algorithmRunWillExecute(AlgorithmSchedule schedule, SearchAlgorithm algorithm, ScoreBoard scoreBoard) Handle an event where a new algorithm run stack will start.- Parameters:
schedule- the schedule posting the eventalgorithm- the algorithm which will executescoreBoard- the scoreboard
-
algorithmRunExecuted
void algorithmRunExecuted(AlgorithmSchedule schedule, SearchAlgorithm algorithm, ScoreBoard scoreBoard) Handle an event where a new algorithm run stack has completed.- Parameters:
schedule- the schedule posting the eventalgorithm- the algorithm that has executedscoreBoard- the scoreboard
-