Record Class CocoTrialMetric

java.lang.Object
java.lang.Record
com.knezevic.edaf.v3.persistence.query.coco.CocoTrialMetric

public record CocoTrialMetric(long id, String campaignId, String optimizerId, String runId, int functionId, int instanceId, int dimension, int repetition, long budgetEvaluations, Long evaluations, Double bestFitness, Long runtimeMillis, String status, boolean reachedTarget, Long evaluationsToTarget, double targetValue, String createdAt) extends Record
Trial-level metric row for one campaign run.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CocoTrialMetric(long id, String campaignId, String optimizerId, String runId, int functionId, int instanceId, int dimension, int repetition, long budgetEvaluations, Long evaluations, Double bestFitness, Long runtimeMillis, String status, boolean reachedTarget, Long evaluationsToTarget, double targetValue, String createdAt)
    Creates an instance of a CocoTrialMetric record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the bestFitness record component.
    long
    Returns the value of the budgetEvaluations record component.
    Returns the value of the campaignId record component.
    Returns the value of the createdAt record component.
    int
    Returns the value of the dimension record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the evaluations record component.
    Returns the value of the evaluationsToTarget record component.
    int
    Returns the value of the functionId record component.
    final int
    Returns a hash code value for this object.
    long
    id()
    Returns the value of the id record component.
    int
    Returns the value of the instanceId record component.
    Returns the value of the optimizerId record component.
    boolean
    Returns the value of the reachedTarget record component.
    int
    Returns the value of the repetition record component.
    Returns the value of the runId record component.
    Returns the value of the runtimeMillis record component.
    Returns the value of the status record component.
    double
    Returns the value of the targetValue 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

    • CocoTrialMetric

      public CocoTrialMetric(long id, String campaignId, String optimizerId, String runId, int functionId, int instanceId, int dimension, int repetition, long budgetEvaluations, Long evaluations, Double bestFitness, Long runtimeMillis, String status, boolean reachedTarget, Long evaluationsToTarget, double targetValue, String createdAt)
      Creates an instance of a CocoTrialMetric record class.
      Parameters:
      id - the value for the id record component
      campaignId - the value for the campaignId record component
      optimizerId - the value for the optimizerId record component
      runId - the value for the runId record component
      functionId - the value for the functionId record component
      instanceId - the value for the instanceId record component
      dimension - the value for the dimension record component
      repetition - the value for the repetition record component
      budgetEvaluations - the value for the budgetEvaluations record component
      evaluations - the value for the evaluations record component
      bestFitness - the value for the bestFitness record component
      runtimeMillis - the value for the runtimeMillis record component
      status - the value for the status record component
      reachedTarget - the value for the reachedTarget record component
      evaluationsToTarget - the value for the evaluationsToTarget record component
      targetValue - the value for the targetValue 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.
    • id

      public long id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • campaignId

      public String campaignId()
      Returns the value of the campaignId record component.
      Returns:
      the value of the campaignId record component
    • optimizerId

      public String optimizerId()
      Returns the value of the optimizerId record component.
      Returns:
      the value of the optimizerId record component
    • runId

      public String runId()
      Returns the value of the runId record component.
      Returns:
      the value of the runId record component
    • functionId

      public int functionId()
      Returns the value of the functionId record component.
      Returns:
      the value of the functionId record component
    • instanceId

      public int instanceId()
      Returns the value of the instanceId record component.
      Returns:
      the value of the instanceId record component
    • dimension

      public int dimension()
      Returns the value of the dimension record component.
      Returns:
      the value of the dimension record component
    • repetition

      public int repetition()
      Returns the value of the repetition record component.
      Returns:
      the value of the repetition record component
    • budgetEvaluations

      public long budgetEvaluations()
      Returns the value of the budgetEvaluations record component.
      Returns:
      the value of the budgetEvaluations 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
    • runtimeMillis

      public Long runtimeMillis()
      Returns the value of the runtimeMillis record component.
      Returns:
      the value of the runtimeMillis record component
    • status

      public String status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • reachedTarget

      public boolean reachedTarget()
      Returns the value of the reachedTarget record component.
      Returns:
      the value of the reachedTarget record component
    • evaluationsToTarget

      public Long evaluationsToTarget()
      Returns the value of the evaluationsToTarget record component.
      Returns:
      the value of the evaluationsToTarget record component
    • targetValue

      public double targetValue()
      Returns the value of the targetValue record component.
      Returns:
      the value of the targetValue record component
    • createdAt

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