Package ch.so.agi.mcp.constraint
Record Class ConstraintModelSynthesizer.CountShape
java.lang.Object
java.lang.Record
ch.so.agi.mcp.constraint.ConstraintModelSynthesizer.CountShape
- Enclosing class:
ConstraintModelSynthesizer
public static record ConstraintModelSynthesizer.CountShape(String path, int branchStep, int emptyStep, boolean sharedTargets, Map<Integer,String> mixedTypes)
extends Record
A bounded topology obligation; absent indices leave the normal cardinality solver unchanged.
-
Constructor Summary
ConstructorsConstructorDescriptionCountShape(String path, int branchStep, int emptyStep, boolean sharedTargets, Map<Integer, String> mixedTypes) Creates an instance of aCountShaperecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebranchSteprecord component.intReturns the value of theemptySteprecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themixedTypesrecord component.ordinary()path()Returns the value of thepathrecord component.booleanReturns the value of thesharedTargetsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CountShape
public CountShape(String path, int branchStep, int emptyStep, boolean sharedTargets, Map<Integer, String> mixedTypes) Creates an instance of aCountShaperecord class.- Parameters:
path- the value for thepathrecord componentbranchStep- the value for thebranchSteprecord componentemptyStep- the value for theemptySteprecord componentsharedTargets- the value for thesharedTargetsrecord componentmixedTypes- the value for themixedTypesrecord component
-
-
Method Details
-
ordinary
-
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 '=='. -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
branchStep
public int branchStep()Returns the value of thebranchSteprecord component.- Returns:
- the value of the
branchSteprecord component
-
emptyStep
public int emptyStep()Returns the value of theemptySteprecord component.- Returns:
- the value of the
emptySteprecord component
-
mixedTypes
Returns the value of themixedTypesrecord component.- Returns:
- the value of the
mixedTypesrecord component
-