Record Class RunStoppedEvent
java.lang.Object
java.lang.Record
com.knezevic.edaf.v3.core.events.RunStoppedEvent
- All Implemented Interfaces:
RunEvent
public record RunStoppedEvent(String runId, Instant timestamp, String algorithm, String model, String problem, long masterSeed, int iterations, long evaluations, long runtimeMillis, double bestFitness, String bestSummary, String bestGenotype, Map<String,String> artifacts, String reason, String resumedFrom)
extends Record
implements RunEvent
Event emitted when a run is stopped cooperatively by user/API request.
-
Constructor Summary
ConstructorsConstructorDescriptionRunStoppedEvent(String runId, Instant timestamp, String algorithm, String model, String problem, long masterSeed, int iterations, long evaluations, long runtimeMillis, double bestFitness, String bestSummary, String bestGenotype, Map<String, String> artifacts, String reason, String resumedFrom) Creates an instance of aRunStoppedEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealgorithmrecord component.Returns 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.longReturns the value of themasterSeedrecord component.model()Returns the value of themodelrecord component.problem()Returns the value of theproblemrecord component.reason()Returns the value of thereasonrecord component.Returns the value of theresumedFromrecord 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
-
RunStoppedEvent
public RunStoppedEvent(String runId, Instant timestamp, String algorithm, String model, String problem, long masterSeed, int iterations, long evaluations, long runtimeMillis, double bestFitness, String bestSummary, String bestGenotype, Map<String, String> artifacts, String reason, String resumedFrom) Creates an instance of aRunStoppedEventrecord class.- Parameters:
runId- the value for therunIdrecord componenttimestamp- the value for thetimestamprecord componentalgorithm- the value for thealgorithmrecord componentmodel- the value for themodelrecord componentproblem- the value for theproblemrecord componentmasterSeed- the value for themasterSeedrecord 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 componentreason- the value for thereasonrecord componentresumedFrom- the value for theresumedFromrecord 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
-
algorithm
Returns the value of thealgorithmrecord component.- Returns:
- the value of the
algorithmrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
problem
Returns the value of theproblemrecord component.- Returns:
- the value of the
problemrecord component
-
masterSeed
public long masterSeed()Returns the value of themasterSeedrecord component.- Returns:
- the value of the
masterSeedrecord component
-
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
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
resumedFrom
Returns the value of theresumedFromrecord component.- Returns:
- the value of the
resumedFromrecord component
-