Module org.maxicp
Package org.maxicp.search.blackbox
Record Class BlackBoxSearch.ExhaustivePhaseOptions
java.lang.Object
java.lang.Record
org.maxicp.search.blackbox.BlackBoxSearch.ExhaustivePhaseOptions
- Enclosing class:
BlackBoxSearch
public static record BlackBoxSearch.ExhaustivePhaseOptions(double randomSwapProbability, long randomSeed)
extends Record
Configuration for exhaustive DFS/FDS phase.
-
Constructor Summary
ConstructorsConstructorDescriptionExhaustivePhaseOptions(double randomSwapProbability, long randomSeed) Creates an instance of aExhaustivePhaseOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondefaults()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 therandomSeedrecord component.doubleReturns the value of therandomSwapProbabilityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExhaustivePhaseOptions
public ExhaustivePhaseOptions(double randomSwapProbability, long randomSeed) Creates an instance of aExhaustivePhaseOptionsrecord class.- Parameters:
randomSwapProbability- the value for therandomSwapProbabilityrecord componentrandomSeed- the value for therandomSeedrecord component
-
-
Method Details
-
defaults
-
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. All components in this record class are compared with '=='. -
randomSwapProbability
public double randomSwapProbability()Returns the value of therandomSwapProbabilityrecord component.- Returns:
- the value of the
randomSwapProbabilityrecord component
-
randomSeed
public long randomSeed()Returns the value of therandomSeedrecord component.- Returns:
- the value of the
randomSeedrecord component
-