Record Class MultiAgentObserver.ObservationSummary
java.lang.Object
java.lang.Record
com.tnsai.coordination.observability.MultiAgentObserver.ObservationSummary
- Record Components:
groupId- observed group IDtotalEvents- total number of events observedeventCounts- event count per typeuniqueAgents- number of unique agents observedobservationDuration- how long observation has been runningstartedAt- when observation started
- Enclosing class:
MultiAgentObserver
public static record MultiAgentObserver.ObservationSummary(String groupId, int totalEvents, Map<com.tnsai.agents.groups.GroupEvent.Type,Integer> eventCounts, int uniqueAgents, Duration observationDuration, Instant startedAt)
extends Record
Summary statistics for an observation session.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theeventCountsrecord component.groupId()Returns the value of thegroupIdrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theobservationDurationrecord component.Returns the value of thestartedAtrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalEventsrecord component.intReturns the value of theuniqueAgentsrecord component.
-
Constructor Details
-
ObservationSummary
public ObservationSummary(String groupId, int totalEvents, Map<com.tnsai.agents.groups.GroupEvent.Type, Integer> eventCounts, int uniqueAgents, Duration observationDuration, Instant startedAt) Creates an instance of aObservationSummaryrecord class.- Parameters:
groupId- the value for thegroupIdrecord componenttotalEvents- the value for thetotalEventsrecord componenteventCounts- the value for theeventCountsrecord componentuniqueAgents- the value for theuniqueAgentsrecord componentobservationDuration- the value for theobservationDurationrecord componentstartedAt- the value for thestartedAtrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
groupId
Returns the value of thegroupIdrecord component.- Returns:
- the value of the
groupIdrecord component
-
totalEvents
public int totalEvents()Returns the value of thetotalEventsrecord component.- Returns:
- the value of the
totalEventsrecord component
-
eventCounts
Returns the value of theeventCountsrecord component.- Returns:
- the value of the
eventCountsrecord component
-
uniqueAgents
public int uniqueAgents()Returns the value of theuniqueAgentsrecord component.- Returns:
- the value of the
uniqueAgentsrecord component
-
observationDuration
Returns the value of theobservationDurationrecord component.- Returns:
- the value of the
observationDurationrecord component
-
startedAt
Returns the value of thestartedAtrecord component.- Returns:
- the value of the
startedAtrecord component
-