Record Class PossiblyInitializingPhase.TerminationStatus
java.lang.Object
java.lang.Record
ai.timefold.solver.core.impl.phase.PossiblyInitializingPhase.TerminationStatus
- Record Components:
terminated- If the phase terminated.early- If the phase terminated early without completing all steps. If true, this signifies a solution that is not fully initialized.stepCount- The number of steps completed.
- Enclosing interface:
- PossiblyInitializingPhase<Solution_>
public static record PossiblyInitializingPhase.TerminationStatus(boolean terminated, boolean early, int stepCount)
extends Record
The status with which the phase terminated.
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
ConstructorsConstructorDescriptionTerminationStatus(boolean terminated, boolean early, int stepCount) Creates an instance of aTerminationStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanearly()Returns the value of theearlyrecord component.early(int stepCount) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.regular(int stepCount) intReturns the value of thestepCountrecord component.booleanReturns the value of theterminatedrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
NOT_TERMINATED
-
-
Constructor Details
-
TerminationStatus
public TerminationStatus(boolean terminated, boolean early, int stepCount) Creates an instance of aTerminationStatusrecord class.- Parameters:
terminated- the value for theterminatedrecord componentearly- the value for theearlyrecord componentstepCount- the value for thestepCountrecord component
-
-
Method Details
-
regular
-
early
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
terminated
public boolean terminated()Returns the value of theterminatedrecord component.- Returns:
- the value of the
terminatedrecord component
-
early
public boolean early()Returns the value of theearlyrecord component.- Returns:
- the value of the
earlyrecord component
-
stepCount
public int stepCount()Returns the value of thestepCountrecord component.- Returns:
- the value of the
stepCountrecord component
-