Package com.tnsai.session.extraction
Record Class KnowledgeStore.KnowledgeStats
java.lang.Object
java.lang.Record
com.tnsai.session.extraction.KnowledgeStore.KnowledgeStats
- Enclosing interface:
KnowledgeStore
public static record KnowledgeStore.KnowledgeStats(int totalCount, int solutionCount, int patternCount, int decisionCount, int learningCount, int antipatternCount, int sessionCount, double averageConfidence)
extends Record
Statistics about stored knowledge.
-
Constructor Summary
ConstructorsConstructorDescriptionKnowledgeStats(int totalCount, int solutionCount, int patternCount, int decisionCount, int learningCount, int antipatternCount, int sessionCount, double averageConfidence) Creates an instance of aKnowledgeStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theantipatternCountrecord component.doubleReturns the value of theaverageConfidencerecord component.intReturns the value of thedecisionCountrecord 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 thelearningCountrecord component.intReturns the value of thepatternCountrecord component.intReturns the value of thesessionCountrecord component.intReturns the value of thesolutionCountrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalCountrecord component.
-
Constructor Details
-
KnowledgeStats
public KnowledgeStats(int totalCount, int solutionCount, int patternCount, int decisionCount, int learningCount, int antipatternCount, int sessionCount, double averageConfidence) Creates an instance of aKnowledgeStatsrecord class.- Parameters:
totalCount- the value for thetotalCountrecord componentsolutionCount- the value for thesolutionCountrecord componentpatternCount- the value for thepatternCountrecord componentdecisionCount- the value for thedecisionCountrecord componentlearningCount- the value for thelearningCountrecord componentantipatternCount- the value for theantipatternCountrecord componentsessionCount- the value for thesessionCountrecord componentaverageConfidence- the value for theaverageConfidencerecord 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. All components in this record class are compared with '=='. -
totalCount
public int totalCount()Returns the value of thetotalCountrecord component.- Returns:
- the value of the
totalCountrecord component
-
solutionCount
public int solutionCount()Returns the value of thesolutionCountrecord component.- Returns:
- the value of the
solutionCountrecord component
-
patternCount
public int patternCount()Returns the value of thepatternCountrecord component.- Returns:
- the value of the
patternCountrecord component
-
decisionCount
public int decisionCount()Returns the value of thedecisionCountrecord component.- Returns:
- the value of the
decisionCountrecord component
-
learningCount
public int learningCount()Returns the value of thelearningCountrecord component.- Returns:
- the value of the
learningCountrecord component
-
antipatternCount
public int antipatternCount()Returns the value of theantipatternCountrecord component.- Returns:
- the value of the
antipatternCountrecord component
-
sessionCount
public int sessionCount()Returns the value of thesessionCountrecord component.- Returns:
- the value of the
sessionCountrecord component
-
averageConfidence
public double averageConfidence()Returns the value of theaverageConfidencerecord component.- Returns:
- the value of the
averageConfidencerecord component
-