Module org.maxicp
Package org.maxicp.search.blackbox
Record Class FragmentSelector.FragmentSelectionFeedback
java.lang.Object
java.lang.Record
org.maxicp.search.blackbox.FragmentSelector.FragmentSelectionFeedback
- Enclosing interface:
FragmentSelector
-
Constructor Summary
ConstructorsConstructorDescriptionFragmentSelectionFeedback(List<Integer> decisionVarIndices, List<Integer> frozenDecisionVarIndices, Set<Integer> changedDecisionVarIndices, boolean restartImproved, boolean restartExhausted, boolean reachedFailureLimit) Creates an instance of aFragmentSelectionFeedbackrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechangedDecisionVarIndicesrecord component.Returns the value of thedecisionVarIndicesrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefrozenDecisionVarIndicesrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thereachedFailureLimitrecord component.booleanReturns the value of therestartExhaustedrecord component.booleanReturns the value of therestartImprovedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FragmentSelectionFeedback
public FragmentSelectionFeedback(List<Integer> decisionVarIndices, List<Integer> frozenDecisionVarIndices, Set<Integer> changedDecisionVarIndices, boolean restartImproved, boolean restartExhausted, boolean reachedFailureLimit) Creates an instance of aFragmentSelectionFeedbackrecord class.- Parameters:
decisionVarIndices- the value for thedecisionVarIndicesrecord componentfrozenDecisionVarIndices- the value for thefrozenDecisionVarIndicesrecord componentchangedDecisionVarIndices- the value for thechangedDecisionVarIndicesrecord componentrestartImproved- the value for therestartImprovedrecord componentrestartExhausted- the value for therestartExhaustedrecord componentreachedFailureLimit- the value for thereachedFailureLimitrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
decisionVarIndices
Returns the value of thedecisionVarIndicesrecord component.- Returns:
- the value of the
decisionVarIndicesrecord component
-
frozenDecisionVarIndices
Returns the value of thefrozenDecisionVarIndicesrecord component.- Returns:
- the value of the
frozenDecisionVarIndicesrecord component
-
changedDecisionVarIndices
Returns the value of thechangedDecisionVarIndicesrecord component.- Returns:
- the value of the
changedDecisionVarIndicesrecord component
-
restartImproved
public boolean restartImproved()Returns the value of therestartImprovedrecord component.- Returns:
- the value of the
restartImprovedrecord component
-
restartExhausted
public boolean restartExhausted()Returns the value of therestartExhaustedrecord component.- Returns:
- the value of the
restartExhaustedrecord component
-
reachedFailureLimit
public boolean reachedFailureLimit()Returns the value of thereachedFailureLimitrecord component.- Returns:
- the value of the
reachedFailureLimitrecord component
-