Record Class RunCompletedEvent
java.lang.Object
java.lang.Record
com.knezevic.edaf.v3.core.events.RunCompletedEvent
- All Implemented Interfaces:
RunEvent
public record RunCompletedEvent(String runId, Instant timestamp, int iterations, long evaluations, long runtimeMillis, double bestFitness, String bestSummary, String bestGenotype, Map<String,String> artifacts)
extends Record
implements RunEvent
Event emitted when a run terminates.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theartifactsrecord component.doubleReturns the value of thebestFitnessrecord component.Returns the value of thebestGenotyperecord component.Returns the value of thebestSummaryrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theevaluationsrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theiterationsrecord component.runId()Returns the value of therunIdrecord component.longReturns the value of theruntimeMillisrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.type()Event type for structured logging.
-
Constructor Details
-
RunCompletedEvent
public RunCompletedEvent(String runId, Instant timestamp, int iterations, long evaluations, long runtimeMillis, double bestFitness, String bestSummary, String bestGenotype, Map<String, String> artifacts) Creates an instance of aRunCompletedEventrecord class.- Parameters:
runId- the value for therunIdrecord componenttimestamp- the value for thetimestamprecord componentiterations- the value for theiterationsrecord componentevaluations- the value for theevaluationsrecord componentruntimeMillis- the value for theruntimeMillisrecord componentbestFitness- the value for thebestFitnessrecord componentbestSummary- the value for thebestSummaryrecord componentbestGenotype- the value for thebestGenotyperecord componentartifacts- the value for theartifactsrecord component
-
-
Method Details
-
type
-
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. -
runId
-
timestamp
-
iterations
public int iterations()Returns the value of theiterationsrecord component.- Returns:
- the value of the
iterationsrecord component
-
evaluations
public long evaluations()Returns the value of theevaluationsrecord component.- Returns:
- the value of the
evaluationsrecord component
-
runtimeMillis
public long runtimeMillis()Returns the value of theruntimeMillisrecord component.- Returns:
- the value of the
runtimeMillisrecord component
-
bestFitness
public double bestFitness()Returns the value of thebestFitnessrecord component.- Returns:
- the value of the
bestFitnessrecord component
-
bestSummary
Returns the value of thebestSummaryrecord component.- Returns:
- the value of the
bestSummaryrecord component
-
bestGenotype
Returns the value of thebestGenotyperecord component.- Returns:
- the value of the
bestGenotyperecord component
-
artifacts
-