Class TestStatistics
java.lang.Object
org.deltava.beans.testing.TestStatistics
- All Implemented Interfaces:
Serializable
,PassStatistics
A bean to store Examination / Check Ride / Question statistics.
- Since:
- 9.1
- Version:
- 9.1
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the number of test passes or correct answers.int
getTotal()
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.
-
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 interfacePassStatistics
- 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 interfacePassStatistics
- 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
-