Record Class Criterion
java.lang.Object
java.lang.Record
io.nosqlbench.scenarios.simframe.capture.Criterion
- Record Components:
name- name of the factorevaltype- Whether to compute the basis value as a deltaV/deltaT, a raw value, or a functional remix of the other values.remix- A remix function, required forEvalType.remixsupplier- A value supplier, required forEvalType.directandEvalType.deltaTweight- A weight which affects how the basis value is applied as a factor to composite value. Set this to NaN to nullify effects.frameStartCallback- A runnable which can be used to do preparatory work at the start of sampling a simulation frame
public record Criterion(String name, EvalType evaltype, ToDoubleFunction<BasisValues> remix, DoubleSupplier supplier, double weight, Runnable frameStartCallback)
extends Record
A criterion is a single component factor of a value for a black-box testing samples.
-
Constructor Summary
ConstructorsConstructorDescriptionCriterion(String name, EvalType evaltype, ToDoubleFunction<BasisValues> remix, DoubleSupplier supplier, double weight, Runnable frameStartCallback) Creates an instance of aCriterionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.evaltype()Returns the value of theevaltyperecord component.Returns the value of theframeStartCallbackrecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.remix()Returns the value of theremixrecord component.supplier()Returns the value of thesupplierrecord component.final StringtoString()Returns a string representation of this record class.doubleweight()Returns the value of theweightrecord component.
-
Constructor Details
-
Criterion
public Criterion(String name, EvalType evaltype, ToDoubleFunction<BasisValues> remix, DoubleSupplier supplier, double weight, Runnable frameStartCallback) Creates an instance of aCriterionrecord class.- Parameters:
name- the value for thenamerecord componentevaltype- the value for theevaltyperecord componentremix- the value for theremixrecord componentsupplier- the value for thesupplierrecord componentweight- the value for theweightrecord componentframeStartCallback- the value for theframeStartCallbackrecord 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
-
evaltype
-
remix
-
supplier
-
weight
-
frameStartCallback
Returns the value of theframeStartCallbackrecord component.- Returns:
- the value of the
frameStartCallbackrecord component
-