Record Class MultiAgentObserver.ObservationSummary

java.lang.Object
java.lang.Record
com.tnsai.coordination.observability.MultiAgentObserver.ObservationSummary
Record Components:
groupId - observed group ID
totalEvents - total number of events observed
eventCounts - event count per type
uniqueAgents - number of unique agents observed
observationDuration - how long observation has been running
startedAt - 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 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 a ObservationSummary record class.
      Parameters:
      groupId - the value for the groupId record component
      totalEvents - the value for the totalEvents record component
      eventCounts - the value for the eventCounts record component
      uniqueAgents - the value for the uniqueAgents record component
      observationDuration - the value for the observationDuration record component
      startedAt - the value for the startedAt record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • groupId

      public String groupId()
      Returns the value of the groupId record component.
      Returns:
      the value of the groupId record component
    • totalEvents

      public int totalEvents()
      Returns the value of the totalEvents record component.
      Returns:
      the value of the totalEvents record component
    • eventCounts

      public Map<com.tnsai.agents.groups.GroupEvent.Type,Integer> eventCounts()
      Returns the value of the eventCounts record component.
      Returns:
      the value of the eventCounts record component
    • uniqueAgents

      public int uniqueAgents()
      Returns the value of the uniqueAgents record component.
      Returns:
      the value of the uniqueAgents record component
    • observationDuration

      public Duration observationDuration()
      Returns the value of the observationDuration record component.
      Returns:
      the value of the observationDuration record component
    • startedAt

      public Instant startedAt()
      Returns the value of the startedAt record component.
      Returns:
      the value of the startedAt record component