Record Class AdaptiveActionEvent
java.lang.Object
java.lang.Record
com.knezevic.edaf.v3.core.events.AdaptiveActionEvent
-
Constructor Summary
ConstructorsConstructorDescriptionAdaptiveActionEvent(String runId, Instant timestamp, int iteration, AdaptiveActionRecord action) Creates an instance of aAdaptiveActionEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theiterationrecord 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
-
AdaptiveActionEvent
public AdaptiveActionEvent(String runId, Instant timestamp, int iteration, AdaptiveActionRecord action) Creates an instance of aAdaptiveActionEventrecord class.- Parameters:
runId- the value for therunIdrecord componenttimestamp- the value for thetimestamprecord componentiteration- the value for theiterationrecord componentaction- the value for theactionrecord 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
-
iteration
public int iteration()Returns the value of theiterationrecord component.- Returns:
- the value of the
iterationrecord component
-
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-