Class Statistics
java.lang.Object
core.Statistics
Implementation of the Statistics feature.
-
Constructor Summary
Constructors -
Method Summary
-
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
-