Enum Class SolveEventProducerId
- All Implemented Interfaces:
EventProducerId,Serializable,Comparable<SolveEventProducerId>,Constable
@NullMarked
public enum SolveEventProducerId
extends Enum<SolveEventProducerId>
implements EventProducerId
EventProducerId for when a BestSolutionChangedEvent is not
caused by a phase.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOne or more problem changes occured that change the best solution.The solver was started with an initialized solution.Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionIf present, the index of the phase that produced the event in theSolverConfig.getPhaseConfigList().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().A (non-unique) string describing what produced the event.static SolveEventProducerIdReturns the enum constant of this class with the specified name.static SolveEventProducerId[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Deprecated, for removal: This API element is subject to removal in a future version.Only used when Users manually construct instances ofBestSolutionChangedEvent.The cause is unknown. This is theEventProducerIdused when one of the deprecatedBestSolutionChangedEventconstructors are used. -
SOLVING_STARTED
The solver was started with an initialized solution. -
PROBLEM_CHANGE
One or more problem changes occured that change the best solution.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
producerId
Description copied from interface: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().- Specified by:
producerIdin interfaceEventProducerId- Returns:
- An unique string identifying what produced the event.
-
simpleProducerName
Description copied from interface:EventProducerIdA (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.- Specified by:
simpleProducerNamein interfaceEventProducerId- Returns:
- A (non-unique) string describing what produced the event.
-
phaseIndex
Description copied from interface:EventProducerIdIf 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.- Specified by:
phaseIndexin interfaceEventProducerId- Returns:
- The index of the corresponding phase in
SolverConfig.getPhaseConfigList(), orOptionalInt.empty()if there is no corresponding phase.
-
BestSolutionChangedEvent.