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

    Constructors
    Constructor
    Description
    KnowledgeStats(int totalCount, int solutionCount, int patternCount, int decisionCount, int learningCount, int antipatternCount, int sessionCount, double averageConfidence)
    Creates an instance of a KnowledgeStats record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the antipatternCount record component.
    double
    Returns the value of the averageConfidence record component.
    int
    Returns the value of the decisionCount record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the learningCount record component.
    int
    Returns the value of the patternCount record component.
    int
    Returns the value of the sessionCount record component.
    int
    Returns the value of the solutionCount record component.
    final String
    Returns a string representation of this record class.
    int
    Returns the value of the totalCount record component.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • 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 a KnowledgeStats record class.
      Parameters:
      totalCount - the value for the totalCount record component
      solutionCount - the value for the solutionCount record component
      patternCount - the value for the patternCount record component
      decisionCount - the value for the decisionCount record component
      learningCount - the value for the learningCount record component
      antipatternCount - the value for the antipatternCount record component
      sessionCount - the value for the sessionCount record component
      averageConfidence - the value for the averageConfidence 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. All components in this record class 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.
    • totalCount

      public int totalCount()
      Returns the value of the totalCount record component.
      Returns:
      the value of the totalCount record component
    • solutionCount

      public int solutionCount()
      Returns the value of the solutionCount record component.
      Returns:
      the value of the solutionCount record component
    • patternCount

      public int patternCount()
      Returns the value of the patternCount record component.
      Returns:
      the value of the patternCount record component
    • decisionCount

      public int decisionCount()
      Returns the value of the decisionCount record component.
      Returns:
      the value of the decisionCount record component
    • learningCount

      public int learningCount()
      Returns the value of the learningCount record component.
      Returns:
      the value of the learningCount record component
    • antipatternCount

      public int antipatternCount()
      Returns the value of the antipatternCount record component.
      Returns:
      the value of the antipatternCount record component
    • sessionCount

      public int sessionCount()
      Returns the value of the sessionCount record component.
      Returns:
      the value of the sessionCount record component
    • averageConfidence

      public double averageConfidence()
      Returns the value of the averageConfidence record component.
      Returns:
      the value of the averageConfidence record component