Record Class DisjunctEvaluationConfig
java.lang.Object
java.lang.Record
com.knezevic.edaf.v3.problems.discrete.disjunct.DisjunctEvaluationConfig
public record DisjunctEvaluationConfig(DisjunctEvaluationMode mode, long maxExactSubsets, long sampleSize, long samplingSeed)
extends Record
Evaluation policy for objective computation during optimization.
-
Constructor Summary
ConstructorsConstructorDescriptionDisjunctEvaluationConfig(DisjunctEvaluationMode mode, long maxExactSubsets, long sampleSize, long samplingSeed) Creates an instance of aDisjunctEvaluationConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic DisjunctEvaluationConfigdefaults()Default policy: exact up to 1000 subsets, sampled above with 512 sampled subsets.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of themaxExactSubsetsrecord component.mode()Returns the value of themoderecord component.resolve(long totalSubsets) Resolves concrete mode from total subset count.longReturns the value of thesampleSizerecord component.longReturns the value of thesamplingSeedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DisjunctEvaluationConfig
public DisjunctEvaluationConfig(DisjunctEvaluationMode mode, long maxExactSubsets, long sampleSize, long samplingSeed) Creates an instance of aDisjunctEvaluationConfigrecord class.- Parameters:
mode- the value for themoderecord componentmaxExactSubsets- the value for themaxExactSubsetsrecord componentsampleSize- the value for thesampleSizerecord componentsamplingSeed- the value for thesamplingSeedrecord component
-
-
Method Details
-
defaults
Default policy: exact up to 1000 subsets, sampled above with 512 sampled subsets. -
resolve
Resolves concrete mode from total subset count. -
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. -
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
maxExactSubsets
public long maxExactSubsets()Returns the value of themaxExactSubsetsrecord component.- Returns:
- the value of the
maxExactSubsetsrecord component
-
sampleSize
public long sampleSize()Returns the value of thesampleSizerecord component.- Returns:
- the value of the
sampleSizerecord component
-
samplingSeed
public long samplingSeed()Returns the value of thesamplingSeedrecord component.- Returns:
- the value of the
samplingSeedrecord component
-