Record Class Criterion

java.lang.Object
java.lang.Record
io.nosqlbench.scenarios.simframe.capture.Criterion
Record Components:
name - name of the factor
evaltype - 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 for EvalType.remix
supplier - A value supplier, required for EvalType.direct and EvalType.deltaT
weight - 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 Details

    • Criterion

      public Criterion(String name, EvalType evaltype, ToDoubleFunction<BasisValues> remix, DoubleSupplier supplier, double weight, Runnable frameStartCallback)
      Creates an instance of a Criterion record class.
      Parameters:
      name - the value for the name record component
      evaltype - the value for the evaltype record component
      remix - the value for the remix record component
      supplier - the value for the supplier record component
      weight - the value for the weight record component
      frameStartCallback - the value for the frameStartCallback record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • evaltype

      public EvalType evaltype()
      Returns the value of the evaltype record component.
      Returns:
      the value of the evaltype record component
    • remix

      public ToDoubleFunction<BasisValues> remix()
      Returns the value of the remix record component.
      Returns:
      the value of the remix record component
    • supplier

      public DoubleSupplier supplier()
      Returns the value of the supplier record component.
      Returns:
      the value of the supplier record component
    • weight

      public double weight()
      Returns the value of the weight record component.
      Returns:
      the value of the weight record component
    • frameStartCallback

      public Runnable frameStartCallback()
      Returns the value of the frameStartCallback record component.
      Returns:
      the value of the frameStartCallback record component