Record Class Scopes
java.lang.Object
java.lang.Record
org.clafer.frontend.Scopes
- Record Components:
clafers- the scope of every clafer, by UID, sorted, the enumerations and their literals includedintLow- the smallest integer,--minintor -128intHigh- the largest integer,--maxintor 127stringLength- the length of the longest string literal, with its quotes, at least 16decimalDigits- the number of fractional digits of decimals, 0 if the model has none and no--decimal-digits
public record Scopes(Map<String,Long> clafers, long intLow, long intHigh, int stringLength, long decimalDigits)
extends Record
The scopes that chocosolver solves an explicit model with, as the compiler
writes them to the explicit model's scope file (
clafer -m clafer
--meta-data, model.des.cfr-scope).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclafers()Returns the value of theclafersrecord component.longReturns the value of thedecimalDigitsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longintHigh()Returns the value of theintHighrecord component.longintLow()Returns the value of theintLowrecord component.intReturns the value of thestringLengthrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Scopes
public Scopes(Map<String, Long> clafers, long intLow, long intHigh, int stringLength, long decimalDigits) Creates an instance of aScopesrecord class.- Parameters:
clafers- the value for theclafersrecord componentintLow- the value for theintLowrecord componentintHigh- the value for theintHighrecord componentstringLength- the value for thestringLengthrecord componentdecimalDigits- the value for thedecimalDigitsrecord component
-
-
Method Details
-
scopeFile
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
clafers
-
intLow
-
intHigh
-
stringLength
Returns the value of thestringLengthrecord component.- Returns:
- the value of the
stringLengthrecord component
-
decimalDigits
Returns the value of thedecimalDigitsrecord component.- Returns:
- the value of the
decimalDigitsrecord component
-