|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--AHA.Question
Question is an object class that represents questions and answers in multiple-choice tests.
Constructor Summary | |
Question()
The default (and only) constructor initializes the internal structure of a "Question" object. |
Method Summary | |
void |
addBadAnswer(java.lang.String s)
Add an incorrect answer to the list of incorrect answers. |
void |
addFeedback(java.lang.String s)
Add feedback to the question that was last added (correct or incorrect). |
void |
addGoodAnswer(java.lang.String s)
Add a correct answer to the list of correct answers. |
void |
concatBadAnswer(java.lang.String s)
Add text to the last incorrect answer. |
void |
concatFeedback(java.lang.String s)
Add text to the last feedback. |
void |
concatGoodAnswer(java.lang.String s)
Add text to the last correct answer. |
void |
concatQuestion(java.lang.String s)
Add text to a question. |
int |
getAnswersToShow()
Return the answers to show. |
java.util.Vector |
getBadAnswers()
Return the incorrect answers. |
java.util.Vector |
getBadFeedback()
Return feedback on the incorrect answers. |
java.util.Vector |
getGoodAnswers()
Return the correct answers. |
java.util.Vector |
getGoodFeedback()
Return feedback on the correct answers. |
java.lang.String |
getQuestion()
Return the question. |
int |
getRightToShow()
Return the number of correct answers to show. |
void |
setAnswersToShow(int i)
Set the answers to show. |
void |
setQuestion(java.lang.String s)
Set the question text. |
void |
setRightToShow(int i)
Set the number of correct answers to show. |
void |
setSize(int NbAnswers,
int NbCorrect)
Set the number of answers and the number of correct answers. |
void |
verify()
Verify that the number of actual correct and incorrect answers match the numbers that were set. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Question()
Method Detail |
public java.lang.String getQuestion()
public void setQuestion(java.lang.String s)
public void concatQuestion(java.lang.String s)
public int getRightToShow()
public void setRightToShow(int i)
public int getAnswersToShow()
public void setAnswersToShow(int i)
public java.util.Vector getBadAnswers()
public void addBadAnswer(java.lang.String s)
public void concatBadAnswer(java.lang.String s)
public java.util.Vector getGoodAnswers()
public void addGoodAnswer(java.lang.String s)
public void concatGoodAnswer(java.lang.String s)
public java.util.Vector getGoodFeedback()
public java.util.Vector getBadFeedback()
public void addFeedback(java.lang.String s)
public void concatFeedback(java.lang.String s)
public void setSize(int NbAnswers, int NbCorrect)
public void verify() throws AhaException
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |