Interface AlgorithmEvent

All Known Implementing Classes:
AcceptanceDecision, InsertionEvaluated, IterationCompleted, IterationStarted, JobInserted, JobRemoved, JobUnassigned, RecreateCompleted, RecreateStarted, RuinCompleted, RuinStarted, StrategyExecuted, StrategySelected

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

    Modifier and Type
    Method
    Description
    int
    Get the iteration number this event occurred in.
    long
    Get the timestamp when this event occurred (milliseconds since epoch).
  • 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).