Record Class IterationMetric

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

public record IterationMetric(int iteration, long evaluations, double bestFitness, double meanFitness, double stdFitness, String metricsJson, String diagnosticsJson, String createdAt) extends Record
Iteration metric row used by reports and web charts.
  • Constructor Summary

    Constructors
    Constructor
    Description
    IterationMetric(int iteration, long evaluations, double bestFitness, double meanFitness, double stdFitness, String metricsJson, String diagnosticsJson, String createdAt)
    Creates an instance of a IterationMetric record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns the value of the bestFitness record component.
    Returns the value of the createdAt record component.
    Returns the value of the diagnosticsJson record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    long
    Returns the value of the evaluations record component.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the iteration record component.
    double
    Returns the value of the meanFitness record component.
    Returns the value of the metricsJson record component.
    double
    Returns the value of the stdFitness 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

    • IterationMetric

      public IterationMetric(int iteration, long evaluations, double bestFitness, double meanFitness, double stdFitness, String metricsJson, String diagnosticsJson, String createdAt)
      Creates an instance of a IterationMetric record class.
      Parameters:
      iteration - the value for the iteration record component
      evaluations - the value for the evaluations record component
      bestFitness - the value for the bestFitness record component
      meanFitness - the value for the meanFitness record component
      stdFitness - the value for the stdFitness record component
      metricsJson - the value for the metricsJson record component
      diagnosticsJson - the value for the diagnosticsJson record component
      createdAt - the value for the createdAt 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.
    • iteration

      public int iteration()
      Returns the value of the iteration record component.
      Returns:
      the value of the iteration record component
    • evaluations

      public long evaluations()
      Returns the value of the evaluations record component.
      Returns:
      the value of the evaluations record component
    • bestFitness

      public double bestFitness()
      Returns the value of the bestFitness record component.
      Returns:
      the value of the bestFitness record component
    • meanFitness

      public double meanFitness()
      Returns the value of the meanFitness record component.
      Returns:
      the value of the meanFitness record component
    • stdFitness

      public double stdFitness()
      Returns the value of the stdFitness record component.
      Returns:
      the value of the stdFitness record component
    • metricsJson

      public String metricsJson()
      Returns the value of the metricsJson record component.
      Returns:
      the value of the metricsJson record component
    • diagnosticsJson

      public String diagnosticsJson()
      Returns the value of the diagnosticsJson record component.
      Returns:
      the value of the diagnosticsJson record component
    • createdAt

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