Record Class FindmaxFrameParams

java.lang.Object
java.lang.Record
io.nosqlbench.scenarios.simframe.optimizers.planners.findmax.FindmaxFrameParams

public record FindmaxFrameParams(double rate_shelf, double rate_delta, long sample_time_ms, long settling_time_ms, String description) extends Record
These parameters are calculated by the planner based on previous simulation frame history.
  • Constructor Summary

    Constructors
    Constructor
    Description
    FindmaxFrameParams(double rate_shelf, double rate_delta, long sample_time_ms, long settling_time_ms, String description)
    Creates an instance of a FindmaxFrameParams record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
     
    Returns the value of the description record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    double
    Returns the value of the rate_delta record component.
    double
    Returns the value of the rate_shelf record component.
    long
    Returns the value of the sample_time_ms record component.
    long
    Returns the value of the settling_time_ms record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • FindmaxFrameParams

      public FindmaxFrameParams(double rate_shelf, double rate_delta, long sample_time_ms, long settling_time_ms, String description)
      Creates an instance of a FindmaxFrameParams record class.
      Parameters:
      rate_shelf - the value for the rate_shelf record component
      rate_delta - the value for the rate_delta record component
      sample_time_ms - the value for the sample_time_ms record component
      settling_time_ms - the value for the settling_time_ms record component
      description - the value for the description record component
  • Method Details

    • computed_rate

      public double computed_rate()
    • 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.
    • rate_shelf

      public double rate_shelf()
      Returns the value of the rate_shelf record component.
      Returns:
      the value of the rate_shelf record component
    • rate_delta

      public double rate_delta()
      Returns the value of the rate_delta record component.
      Returns:
      the value of the rate_delta record component
    • sample_time_ms

      public long sample_time_ms()
      Returns the value of the sample_time_ms record component.
      Returns:
      the value of the sample_time_ms record component
    • settling_time_ms

      public long settling_time_ms()
      Returns the value of the settling_time_ms record component.
      Returns:
      the value of the settling_time_ms record component
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component