Package jadex.micro.quiz.model
Class Quiz
java.lang.Object
jadex.micro.quiz.model.Quiz
The quiz data class.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a question.getName()
int
Get the number of questions.getQuestion
(int no) Get a question per index.long
getStart()
void
void
setQuestions
(List<Question> questions) void
setStart
(long start)
-
Field Details
-
questions
The questions. -
name
The quiz name. -
start
protected long startThe start time.
-
-
Constructor Details
-
Quiz
public Quiz()Create a new quiz. -
Quiz
Create a new quiz. -
Quiz
Create a new quiz.
-
-
Method Details
-
getQuestions
- Returns:
- the questions
-
setQuestions
- Parameters:
questions
- the questions to set
-
getQuestion
Get a question per index. -
getNumberOfQuestions
public int getNumberOfQuestions()Get the number of questions. -
addQuestion
Add a question. -
getName
- Returns:
- the name
-
setName
- Parameters:
name
- the name to set
-
getStart
public long getStart()- Returns:
- the start
-
setStart
public void setStart(long start) - Parameters:
start
- the start to set
-