Package de.schmizzolin.yogi
Class Exercise
java.lang.Object
de.schmizzolin.yogi.Exercise
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanallDone()null if answer is correct; otherwise the correct answerstatic Exercisestatic Exercisecreate(int id, Book book, String title, String selectionParam, int round, int ofs, String okParam, String wrongParam) static ExercisevoidvoidlogComment(UserFiles userFiles, String comment) voidintquestion()inttoParam()
-
Field Details
-
id
public final int id -
book
-
title
-
round
public int round -
ofs
public int ofs -
ok
-
wrong
-
-
Constructor Details
-
Exercise
-
-
Method Details
-
forParam
-
create
-
create
-
logTitle
- Throws:
IOException
-
logComment
- Throws:
IOException
-
logAnswer
public void logAnswer(UserFiles userFiles, String question, String answer, String correct) throws IOException - Throws:
IOException
-
roundSize
public int roundSize() -
number
-
question
-
answer
null if answer is correct; otherwise the correct answer -
lookup
-
toParam
-
allDone
public boolean allDone()
-