Package com.tnsai.context.decision
Record Class DecisionTraceStore.DecisionTraceStatistics
java.lang.Object
java.lang.Record
com.tnsai.context.decision.DecisionTraceStore.DecisionTraceStatistics
- Enclosing interface:
DecisionTraceStore
public static record DecisionTraceStore.DecisionTraceStatistics(int totalTraces, int uniqueAgents, int successfulDecisions, int failedDecisions, Instant oldestTrace, Instant newestTrace, Map<String,Integer> tracesByAction, Map<DecisionOutcome.OutcomeStatus,Integer> tracesByOutcome)
extends Record
Statistics about the decision trace store.
-
Constructor Summary
ConstructorsConstructorDescriptionDecisionTraceStatistics(int totalTraces, int uniqueAgents, int successfulDecisions, int failedDecisions, Instant oldestTrace, Instant newestTrace, Map<String, Integer> tracesByAction, Map<DecisionOutcome.OutcomeStatus, Integer> tracesByOutcome) Creates an instance of aDecisionTraceStatisticsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefailedDecisionsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thenewestTracerecord component.Returns the value of theoldestTracerecord component.intReturns the value of thesuccessfulDecisionsrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalTracesrecord component.Returns the value of thetracesByActionrecord component.Returns the value of thetracesByOutcomerecord component.intReturns the value of theuniqueAgentsrecord component.
-
Constructor Details
-
DecisionTraceStatistics
public DecisionTraceStatistics(int totalTraces, int uniqueAgents, int successfulDecisions, int failedDecisions, Instant oldestTrace, Instant newestTrace, Map<String, Integer> tracesByAction, Map<DecisionOutcome.OutcomeStatus, Integer> tracesByOutcome) Creates an instance of aDecisionTraceStatisticsrecord class.- Parameters:
totalTraces- the value for thetotalTracesrecord componentuniqueAgents- the value for theuniqueAgentsrecord componentsuccessfulDecisions- the value for thesuccessfulDecisionsrecord componentfailedDecisions- the value for thefailedDecisionsrecord componentoldestTrace- the value for theoldestTracerecord componentnewestTrace- the value for thenewestTracerecord componenttracesByAction- the value for thetracesByActionrecord componenttracesByOutcome- the value for thetracesByOutcomerecord 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 '=='. -
totalTraces
public int totalTraces()Returns the value of thetotalTracesrecord component.- Returns:
- the value of the
totalTracesrecord component
-
uniqueAgents
public int uniqueAgents()Returns the value of theuniqueAgentsrecord component.- Returns:
- the value of the
uniqueAgentsrecord component
-
successfulDecisions
public int successfulDecisions()Returns the value of thesuccessfulDecisionsrecord component.- Returns:
- the value of the
successfulDecisionsrecord component
-
failedDecisions
public int failedDecisions()Returns the value of thefailedDecisionsrecord component.- Returns:
- the value of the
failedDecisionsrecord component
-
oldestTrace
Returns the value of theoldestTracerecord component.- Returns:
- the value of the
oldestTracerecord component
-
newestTrace
Returns the value of thenewestTracerecord component.- Returns:
- the value of the
newestTracerecord component
-
tracesByAction
Returns the value of thetracesByActionrecord component.- Returns:
- the value of the
tracesByActionrecord component
-
tracesByOutcome
Returns the value of thetracesByOutcomerecord component.- Returns:
- the value of the
tracesByOutcomerecord component
-