Record Class RunStartedEvent
java.lang.Object
java.lang.Record
com.knezevic.edaf.v3.core.events.RunStartedEvent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealgorithmrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of themasterSeedrecord component.model()Returns the value of themodelrecord component.problem()Returns the value of theproblemrecord component.runId()Returns the value of therunIdrecord 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
-
RunStartedEvent
public RunStartedEvent(String runId, Instant timestamp, String algorithm, String model, String problem, long masterSeed) Creates an instance of aRunStartedEventrecord 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 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
-