|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectalgoanim.interactionsupport.InteractiveElement
algoanim.interactionsupport.InteractiveQuestion
public class InteractiveQuestion
| Field Summary | |
|---|---|
protected java.util.HashMap<java.lang.String,java.lang.String> |
feedback
|
protected int |
pointsPossible
|
protected java.lang.String |
questionGroupID
|
protected java.lang.String |
questionPrompt
|
| Fields inherited from class algoanim.interactionsupport.InteractiveElement |
|---|
id, language |
| Constructor Summary | |
|---|---|
InteractiveQuestion(Language lang,
java.lang.String id)
|
|
| Method Summary | |
|---|---|
int |
getPointsPossible()
returns the number of points possible for this question |
java.lang.String |
getPrompt()
returns the question prompt, i.e., the introductory text that describes the question statement. |
java.lang.String |
getQuestionGroup()
returns the ID of the question group. |
void |
setPointsPossible(int nrPoints)
assigns the number of points possible for a "perfect" answer to this question |
void |
setPrompt(java.lang.String questionText)
assigns the question prompt which describes the problem statement for this question |
void |
setQuestionGroup(java.lang.String groupID)
assigns the question group ID for this question. |
| Methods inherited from class algoanim.interactionsupport.InteractiveElement |
|---|
getID, setID |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String questionPrompt
protected java.lang.String questionGroupID
protected int pointsPossible
protected java.util.HashMap<java.lang.String,java.lang.String> feedback
| Constructor Detail |
|---|
public InteractiveQuestion(Language lang,
java.lang.String id)
| Method Detail |
|---|
public int getPointsPossible()
public java.lang.String getPrompt()
public java.lang.String getQuestionGroup()
public void setPointsPossible(int nrPoints)
nrPoints - the maximum number of points possible for
this questionpublic void setPrompt(java.lang.String questionText)
questionText - the text to be used as the question
prompt.public void setQuestionGroup(java.lang.String groupID)
groupID - the question group ID for this question.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||