Record Class GenericParamModel
java.lang.Object
java.lang.Record
io.nosqlbench.scenarios.simframe.planning.GenericParamModel
public record GenericParamModel(String name, double lowerBound, double initialGuess, double upperBound, DoubleConsumer effector)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionGenericParamModel(String name, double lowerBound, double initialGuess, double upperBound, DoubleConsumer effector) Creates an instance of aGenericParamModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptioneffector()Returns the value of theeffectorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of theinitialGuessrecord component.doubleReturns the value of thelowerBoundrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.doubleReturns the value of theupperBoundrecord component.
-
Constructor Details
-
GenericParamModel
public GenericParamModel(String name, double lowerBound, double initialGuess, double upperBound, DoubleConsumer effector) Creates an instance of aGenericParamModelrecord class.- Parameters:
name- the value for thenamerecord componentlowerBound- the value for thelowerBoundrecord componentinitialGuess- the value for theinitialGuessrecord componentupperBound- the value for theupperBoundrecord componenteffector- the value for theeffectorrecord component
-
-
Method Details
-
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. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
lowerBound
public double lowerBound()Returns the value of thelowerBoundrecord component.- Returns:
- the value of the
lowerBoundrecord component
-
initialGuess
public double initialGuess()Returns the value of theinitialGuessrecord component.- Returns:
- the value of the
initialGuessrecord component
-
upperBound
public double upperBound()Returns the value of theupperBoundrecord component.- Returns:
- the value of the
upperBoundrecord component
-
effector
Returns the value of theeffectorrecord component.- Returns:
- the value of the
effectorrecord component
-