Package jadex.micro.quiz.model
Class QuizResults
java.lang.Object
jadex.micro.quiz.model.QuizResults
Result representation.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addResult
(int no, boolean correct) Add a result.int
Get the number of correct results.Get the results.void
setResults
(List<QuizResults.Result> results) Set the results.int
size()
Get the size.toString()
Get the string representation.
-
Field Details
-
results
The result list.
-
-
Constructor Details
-
QuizResults
public QuizResults()Create a new results object.
-
-
Method Details
-
getResults
Get the results.- Returns:
- The results:
-
setResults
Set the results.- Parameters:
results
- The results to set.
-
addResult
public void addResult(int no, boolean correct) Add a result.- Parameters:
no
- The number.correct
- Is result ok.
-
size
public int size()Get the size.- Returns:
- The size.
-
countCorrect
public int countCorrect()Get the number of correct results.- Returns:
- The number of correct results.
-
toString
Get the string representation.
-