Interface AlgorithmEvent
- All Known Implementing Classes:
AcceptanceDecision,InsertionEvaluated,IterationCompleted,IterationStarted,JobInserted,JobRemoved,JobUnassigned,RecreateCompleted,RecreateStarted,RuinCompleted,RuinStarted,StrategyExecuted,StrategySelected
public sealed interface AlgorithmEvent
permits IterationStarted, StrategySelected, StrategyExecuted, IterationCompleted, RuinStarted, JobRemoved, RuinCompleted, RecreateStarted, InsertionEvaluated, JobInserted, JobUnassigned, RecreateCompleted, AcceptanceDecision
Base interface for all algorithm events.
This sealed interface defines all possible events that can occur during algorithm execution, providing full transparency into the search process.
Events are organized into categories:
- Iteration lifecycle: IterationStarted, IterationCompleted
- Strategy selection: StrategySelected, StrategyExecuted
- Ruin phase: RuinStarted, JobRemoved, RuinCompleted
- Recreate phase: RecreateStarted, InsertionEvaluated, JobInserted, JobUnassigned, RecreateCompleted
- Acceptance: AcceptanceDecision
-
Method Summary
-
Method Details
-
iteration
int iteration()Get the iteration number this event occurred in. Returns -1 for events that occur outside of iterations (e.g., algorithm start/end). -
timestamp
long timestamp()Get the timestamp when this event occurred (milliseconds since epoch).
-