Record Class CocoAggregateMetric
java.lang.Object
java.lang.Record
com.knezevic.edaf.v3.persistence.query.coco.CocoAggregateMetric
public record CocoAggregateMetric(long id, String campaignId, String optimizerId, int dimension, double targetValue, Double meanEvaluationsToTarget, double successRate, Double medianBestFitness, String comparedReferenceOptimizer, Double referenceErt, Double edafErt, Double ertRatio, String createdAt)
extends Record
Aggregate metric row persisted per optimizer/dimension.
-
Constructor Summary
ConstructorsConstructorDescriptionCocoAggregateMetric(long id, String campaignId, String optimizerId, int dimension, double targetValue, Double meanEvaluationsToTarget, double successRate, Double medianBestFitness, String comparedReferenceOptimizer, Double referenceErt, Double edafErt, Double ertRatio, String createdAt) Creates an instance of aCocoAggregateMetricrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecampaignIdrecord component.Returns the value of thecomparedReferenceOptimizerrecord component.Returns the value of thecreatedAtrecord component.intReturns the value of thedimensionrecord component.edafErt()Returns the value of theedafErtrecord component.final booleanIndicates whether some other object is "equal to" this one.ertRatio()Returns the value of theertRatiorecord component.final inthashCode()Returns a hash code value for this object.longid()Returns the value of theidrecord component.Returns the value of themeanEvaluationsToTargetrecord component.Returns the value of themedianBestFitnessrecord component.Returns the value of theoptimizerIdrecord component.Returns the value of thereferenceErtrecord component.doubleReturns the value of thesuccessRaterecord component.doubleReturns the value of thetargetValuerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CocoAggregateMetric
public CocoAggregateMetric(long id, String campaignId, String optimizerId, int dimension, double targetValue, Double meanEvaluationsToTarget, double successRate, Double medianBestFitness, String comparedReferenceOptimizer, Double referenceErt, Double edafErt, Double ertRatio, String createdAt) Creates an instance of aCocoAggregateMetricrecord class.- Parameters:
id- the value for theidrecord componentcampaignId- the value for thecampaignIdrecord componentoptimizerId- the value for theoptimizerIdrecord componentdimension- the value for thedimensionrecord componenttargetValue- the value for thetargetValuerecord componentmeanEvaluationsToTarget- the value for themeanEvaluationsToTargetrecord componentsuccessRate- the value for thesuccessRaterecord componentmedianBestFitness- the value for themedianBestFitnessrecord componentcomparedReferenceOptimizer- the value for thecomparedReferenceOptimizerrecord componentreferenceErt- the value for thereferenceErtrecord componentedafErt- the value for theedafErtrecord componentertRatio- the value for theertRatiorecord 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
-
dimension
public int dimension()Returns the value of thedimensionrecord component.- Returns:
- the value of the
dimensionrecord component
-
targetValue
public double targetValue()Returns the value of thetargetValuerecord component.- Returns:
- the value of the
targetValuerecord component
-
meanEvaluationsToTarget
Returns the value of themeanEvaluationsToTargetrecord component.- Returns:
- the value of the
meanEvaluationsToTargetrecord component
-
successRate
public double successRate()Returns the value of thesuccessRaterecord component.- Returns:
- the value of the
successRaterecord component
-
medianBestFitness
Returns the value of themedianBestFitnessrecord component.- Returns:
- the value of the
medianBestFitnessrecord component
-
comparedReferenceOptimizer
Returns the value of thecomparedReferenceOptimizerrecord component.- Returns:
- the value of the
comparedReferenceOptimizerrecord component
-
referenceErt
Returns the value of thereferenceErtrecord component.- Returns:
- the value of the
referenceErtrecord component
-
edafErt
Returns the value of theedafErtrecord component.- Returns:
- the value of the
edafErtrecord component
-
ertRatio
Returns the value of theertRatiorecord component.- Returns:
- the value of the
ertRatiorecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-