Class Statistics

java.lang.Object
core.Statistics

public class Statistics extends Object
Implementation of the Statistics feature.
  • Constructor Details

    • Statistics

      public Statistics()
      Standard constructor.
  • Method Details

    • addCount

      public void addCount(boolean res)
      Adds a new data point to the statistic.
      Parameters:
      res - true if result was correct, otherwise false.
    • getRightCount

      public int getRightCount()
      Returns the number of tasks answered right.
    • getWrongCount

      public int getWrongCount()
      Returns the number of tasks answered wrong.
    • reset

      public void reset()
      Resets the Statistic to 0;
    • toString

      public String toString()
      Returns a string representation of this object.
      Overrides:
      toString in class Object