Class TestStatistics

java.lang.Object
org.deltava.beans.testing.TestStatistics
All Implemented Interfaces:
Serializable, PassStatistics

public class TestStatistics extends Object implements PassStatistics, Serializable
A bean to store Examination / Check Ride / Question statistics.
Since:
9.1
Version:
9.1
Author:
Luke
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the number of test passes or correct answers.
    int
    Returns the total number of invocations.
    void
    setPassCount(int s)
    Updates the number of times this exam has been passed or the question has been correctly answered.
    void
    setTotal(int t)
    Updates the total number of times this examination / question has been presented.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TestStatistics

      public TestStatistics()
  • Method Details

    • getTotal

      public int getTotal()
      Description copied from interface: PassStatistics
      Returns the total number of invocations.
      Specified by:
      getTotal in interface PassStatistics
      Returns:
      the number of invocations
    • getPassCount

      public int getPassCount()
      Description copied from interface: PassStatistics
      Returns the number of test passes or correct answers.
      Specified by:
      getPassCount in interface PassStatistics
      Returns:
      the number of successes
    • setTotal

      public void setTotal(int t)
      Updates the total number of times this examination / question has been presented.
      Parameters:
      t - the total count
    • setPassCount

      public void setPassCount(int s)
      Updates the number of times this exam has been passed or the question has been correctly answered.
      Parameters:
      s - the number of successful invocations / correct answers