Added question navigation
Use AssessmentGenerator.goToNextQuestion() to go to the next assessment queued in the list.
This commit is contained in:
parent
1b8cc34bf8
commit
1ccc033759
1 changed files with 11 additions and 3 deletions
|
@ -74,7 +74,7 @@ public class AssessmentGenerator {
|
|||
Random rand = new Random();
|
||||
DictionaryEntry selectedCorrectAnswer;
|
||||
selectedCorrectAnswer = practiceList.get(rand.nextInt(practiceList.size()-1));
|
||||
TranslationQuestion generatedQuestion = new TranslationQuestion(selectedCorrectAnswer);
|
||||
Question generatedQuestion = new TranslationQuestion(selectedCorrectAnswer);
|
||||
return generatedQuestion;
|
||||
|
||||
}
|
||||
|
@ -133,9 +133,17 @@ public class AssessmentGenerator {
|
|||
* the parameter.
|
||||
* @return
|
||||
*/
|
||||
public static Question generateTranslationTest(LinkedList<DictionaryEntry> a){
|
||||
return null;
|
||||
public static Question generateTranslationTest(LinkedList<DictionaryEntry> practiceList){
|
||||
Random rand = new Random();
|
||||
DictionaryEntry selectedCorrectAnswer;
|
||||
selectedCorrectAnswer = practiceList.get(rand.nextInt(practiceList.size()-1));
|
||||
Question generatedQuestion = new TranslationQuestion(selectedCorrectAnswer);
|
||||
return generatedQuestion;
|
||||
}
|
||||
|
||||
|
||||
public static void goToNextQuestion(){
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Reference in a new issue