Package jadex.micro.quiz.model
Class Question
java.lang.Object
jadex.micro.quiz.model.Question
The question data class.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the answers.Get the question.int
Get the solution.void
setAnswers
(List<String> answers) Set the answers.void
setQuestion
(String question) Set the question.void
setSolution
(int solution) Set the solution.
-
Field Details
-
question
The question. -
answers
The answers. -
solution
protected int solutionThe solution.
-
-
Constructor Details
-
Question
public Question()Create a new question. -
Question
Create a new question event.
-
-
Method Details
-
getQuestion
Get the question.- Returns:
- The question.
-
setQuestion
Set the question.- Parameters:
question
- The question to set.
-
getAnswers
Get the answers.- Returns:
- The answers.
-
setAnswers
Set the answers.- Parameters:
answers
- The answers to set
-
getSolution
public int getSolution()Get the solution.- Returns:
- The solution
-
setSolution
public void setSolution(int solution) Set the solution.- Parameters:
solution
- The solution to set
-