Package org.ddolib.examples.layered.smic
Record Class SMICDominanceKey
java.lang.Object
java.lang.Record
org.ddolib.examples.layered.smic.SMICDominanceKey
- Record Components:
remainingJobs- aBitSetrepresenting the set of jobs that still need to be processed
A record that represents a dominance key for grouping states in the Single Machine with
Inventory Constraint (SMIC) problem.
This key is used to group comparable states that share the same set of remaining jobs. States with the same dominance key can be compared to determine dominance relations, which allows efficient pruning of suboptimal search nodes.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSMICDominanceKey(BitSet remainingJobs) Creates an instance of aSMICDominanceKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theremainingJobsrecord component.toString()Returns a string representation of this dominance key.
-
Constructor Details
-
SMICDominanceKey
Creates an instance of aSMICDominanceKeyrecord class.- Parameters:
remainingJobs- the value for theremainingJobsrecord component
-
-
Method Details
-
toString
Returns a string representation of this dominance key. -
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 withObjects::equals(Object,Object). -
remainingJobs
Returns the value of theremainingJobsrecord component.- Returns:
- the value of the
remainingJobsrecord component
-