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
ConstructorsConstructorDescriptionCocoTrialMetric(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 aCocoTrialMetricrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebestFitnessrecord component.longReturns the value of thebudgetEvaluationsrecord component.Returns the value of thecampaignIdrecord component.Returns the value of thecreatedAtrecord component.intReturns the value of thedimensionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theevaluationsrecord component.Returns the value of theevaluationsToTargetrecord component.intReturns the value of thefunctionIdrecord component.final inthashCode()Returns a hash code value for this object.longid()Returns the value of theidrecord component.intReturns the value of theinstanceIdrecord component.Returns the value of theoptimizerIdrecord component.booleanReturns the value of thereachedTargetrecord component.intReturns the value of therepetitionrecord component.runId()Returns the value of therunIdrecord component.Returns the value of theruntimeMillisrecord component.status()Returns the value of thestatusrecord component.doubleReturns the value of thetargetValuerecord component.final StringtoString()Returns a string representation of this record class.
-
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 aCocoTrialMetricrecord class.- Parameters:
id- the value for theidrecord componentcampaignId- the value for thecampaignIdrecord componentoptimizerId- the value for theoptimizerIdrecord componentrunId- the value for therunIdrecord componentfunctionId- the value for thefunctionIdrecord componentinstanceId- the value for theinstanceIdrecord componentdimension- the value for thedimensionrecord componentrepetition- the value for therepetitionrecord componentbudgetEvaluations- the value for thebudgetEvaluationsrecord componentevaluations- the value for theevaluationsrecord componentbestFitness- the value for thebestFitnessrecord componentruntimeMillis- the value for theruntimeMillisrecord componentstatus- the value for thestatusrecord componentreachedTarget- the value for thereachedTargetrecord componentevaluationsToTarget- the value for theevaluationsToTargetrecord componenttargetValue- the value for thetargetValuerecord componentcreatedAt- the value for thecreatedAtrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
public long id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
campaignId
Returns the value of thecampaignIdrecord component.- Returns:
- the value of the
campaignIdrecord component
-
optimizerId
Returns the value of theoptimizerIdrecord component.- Returns:
- the value of the
optimizerIdrecord component
-
runId
Returns the value of therunIdrecord component.- Returns:
- the value of the
runIdrecord component
-
functionId
public int functionId()Returns the value of thefunctionIdrecord component.- Returns:
- the value of the
functionIdrecord component
-
instanceId
public int instanceId()Returns the value of theinstanceIdrecord component.- Returns:
- the value of the
instanceIdrecord component
-
dimension
public int dimension()Returns the value of thedimensionrecord component.- Returns:
- the value of the
dimensionrecord component
-
repetition
public int repetition()Returns the value of therepetitionrecord component.- Returns:
- the value of the
repetitionrecord component
-
budgetEvaluations
public long budgetEvaluations()Returns the value of thebudgetEvaluationsrecord component.- Returns:
- the value of the
budgetEvaluationsrecord component
-
evaluations
Returns the value of theevaluationsrecord component.- Returns:
- the value of the
evaluationsrecord component
-
bestFitness
Returns the value of thebestFitnessrecord component.- Returns:
- the value of the
bestFitnessrecord component
-
runtimeMillis
Returns the value of theruntimeMillisrecord component.- Returns:
- the value of the
runtimeMillisrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
reachedTarget
public boolean reachedTarget()Returns the value of thereachedTargetrecord component.- Returns:
- the value of the
reachedTargetrecord component
-
evaluationsToTarget
Returns the value of theevaluationsToTargetrecord component.- Returns:
- the value of the
evaluationsToTargetrecord component
-
targetValue
public double targetValue()Returns the value of thetargetValuerecord component.- Returns:
- the value of the
targetValuerecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-