Record Class AlgorithmComparisonRow

java.lang.Object
java.lang.Record
com.knezevic.edaf.v3.persistence.query.AlgorithmComparisonRow

public record AlgorithmComparisonRow(String algorithm, long totalRuns, long completedRuns, long successfulRuns, double successRate, Double meanBest, Double medianBest, Double stdBest, Double ert, Double sp1) extends Record
Per-algorithm aggregate row for same-problem comparisons.
  • Constructor Summary

    Constructors
    Constructor
    Description
    AlgorithmComparisonRow(String algorithm, long totalRuns, long completedRuns, long successfulRuns, double successRate, Double meanBest, Double medianBest, Double stdBest, Double ert, Double sp1)
    Creates an instance of a AlgorithmComparisonRow record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the algorithm record component.
    long
    Returns the value of the completedRuns record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    ert()
    Returns the value of the ert record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the meanBest record component.
    Returns the value of the medianBest record component.
    sp1()
    Returns the value of the sp1 record component.
    Returns the value of the stdBest record component.
    long
    Returns the value of the successfulRuns record component.
    double
    Returns the value of the successRate record component.
    final String
    Returns a string representation of this record class.
    long
    Returns the value of the totalRuns record component.

    Methods inherited from class java.lang.Object

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

    • AlgorithmComparisonRow

      public AlgorithmComparisonRow(String algorithm, long totalRuns, long completedRuns, long successfulRuns, double successRate, Double meanBest, Double medianBest, Double stdBest, Double ert, Double sp1)
      Creates an instance of a AlgorithmComparisonRow record class.
      Parameters:
      algorithm - the value for the algorithm record component
      totalRuns - the value for the totalRuns record component
      completedRuns - the value for the completedRuns record component
      successfulRuns - the value for the successfulRuns record component
      successRate - the value for the successRate record component
      meanBest - the value for the meanBest record component
      medianBest - the value for the medianBest record component
      stdBest - the value for the stdBest record component
      ert - the value for the ert record component
      sp1 - the value for the sp1 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.
    • algorithm

      public String algorithm()
      Returns the value of the algorithm record component.
      Returns:
      the value of the algorithm record component
    • totalRuns

      public long totalRuns()
      Returns the value of the totalRuns record component.
      Returns:
      the value of the totalRuns record component
    • completedRuns

      public long completedRuns()
      Returns the value of the completedRuns record component.
      Returns:
      the value of the completedRuns record component
    • successfulRuns

      public long successfulRuns()
      Returns the value of the successfulRuns record component.
      Returns:
      the value of the successfulRuns record component
    • successRate

      public double successRate()
      Returns the value of the successRate record component.
      Returns:
      the value of the successRate record component
    • meanBest

      public Double meanBest()
      Returns the value of the meanBest record component.
      Returns:
      the value of the meanBest record component
    • medianBest

      public Double medianBest()
      Returns the value of the medianBest record component.
      Returns:
      the value of the medianBest record component
    • stdBest

      public Double stdBest()
      Returns the value of the stdBest record component.
      Returns:
      the value of the stdBest record component
    • ert

      public Double ert()
      Returns the value of the ert record component.
      Returns:
      the value of the ert record component
    • sp1

      public Double sp1()
      Returns the value of the sp1 record component.
      Returns:
      the value of the sp1 record component