Interface EventProducerId
- All Known Implementing Classes:
PhaseEventProducerId,SolveEventProducerId
@NullMarked
public interface EventProducerId
Identifies the producer of a
BestSolutionChangedEvent.-
Method Summary
Modifier and TypeMethodDescriptionstatic EventProducerIdconstructionHeuristic(int phaseIndex) static EventProducerIdcustomPhase(int phaseIndex) static EventProducerIdexhaustiveSearch(int phaseIndex) static EventProducerIdlocalSearch(int phaseIndex) static EventProducerIdnoChange(int phaseIndex) Deprecated, for removal: This API element is subject to removal in a future version.static EventProducerIdpartitionedSearch(int phaseIndex) If present, the index of the phase that produced the event in theSolverConfig.getPhaseConfigList().static EventProducerIdAn unique string identifying what produced the event, either of the form "Event" where "Event" is a string describing the event that cause the update (like "Solving started") or "Phase (index)", where "Phase" is a string identifying the type of phase (like "Construction Heuristics") and index is the index of the phase in theSolverConfig.getPhaseConfigList().A (non-unique) string describing what produced the event.static EventProducerIdstatic EventProducerIdunknown()
-
Method Details
-
producerId
String producerId()An unique string identifying what produced the event, either of the form "Event" where "Event" is a string describing the event that cause the update (like "Solving started") or "Phase (index)", where "Phase" is a string identifying the type of phase (like "Construction Heuristics") and index is the index of the phase in theSolverConfig.getPhaseConfigList().- Returns:
- An unique string identifying what produced the event.
-
simpleProducerName
String simpleProducerName()A (non-unique) string describing what produced the event. Events from different phases of the same type (for example, when multiple Construction Heuristics are configured) will return the same value.- Returns:
- A (non-unique) string describing what produced the event.
-
phaseIndex
OptionalInt phaseIndex()If present, the index of the phase that produced the event in theSolverConfig.getPhaseConfigList(). Is absent when the producer does not correspond to a phase, for instance, an event triggered afterProblemChangewere processed.- Returns:
- The index of the corresponding phase in
SolverConfig.getPhaseConfigList(), orOptionalInt.empty()if there is no corresponding phase.
-
unknown
-
solvingStarted
-
problemChange
-
noChange
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated on account ofNoChangePhasehaving no use. -
constructionHeuristic
-
localSearch
-
exhaustiveSearch
-
partitionedSearch
-
customPhase
-
NoChangePhasehaving no use.