|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.exercises.InteractionManager
public class InteractionManager
Interaction manager for exercises: http://www.w3.org/TR/mmi-framework/#s2
| Nested Class Summary | |
|---|---|
static class |
InteractionManager.UserInputHistoryEntry
|
| Field Summary | |
|---|---|
protected boolean |
debugCMP
|
protected boolean |
debugInteractions
|
protected static Logger |
log
|
protected static org.jdom.Namespace |
omdocNamespace
|
protected static org.jdom.Namespace |
openmathNamespace
|
| Constructor Summary | |
|---|---|
InteractionManager(User user)
|
|
| Method Summary | |
|---|---|
double |
getEvaluationResult()
Deprecated. get the value from the Learner Model. |
List<String> |
getExercisetypes()
|
List |
getLastStepFeedbackContent()
Get the feedback produced for the last step. |
List<org.jdom.Element> |
getLastStepMetadata()
Get the metadata record list for the last step. |
List |
getLastStepUserInput()
Get the user input for the last step. |
PresentationStrategy |
getPresentationStrategy()
|
AppSession |
getSession()
|
String |
getStrategy()
|
boolean |
hasOnlySpecialActions()
Tell whether the answer map contains only special actions, not answers to the problem statement. |
boolean |
hasSpecialAction(String name)
Tell whether the answer map contains a specific action requested by the user, such as a hint. |
boolean |
isExerciseFinished()
Tell whether the exercise is finished or not. |
void |
run(ListIterator userInputIterator,
org.jdom.Element output)
Run the exercise, and output the result to a JDOM object. |
void |
selectExercise(org.jdom.Document exercise)
Set the exercise description. |
void |
selectExercise(String exerciseId,
String lang)
Load the exercise description. |
void |
selectExercise(String exerciseId,
String strategy,
String lang)
|
void |
setLogFile(File logfile)
setting the logfile in which the result of the exercise will be output |
void |
setSession(AppSession session)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Logger log
protected static final org.jdom.Namespace openmathNamespace
protected static final org.jdom.Namespace omdocNamespace
protected boolean debugInteractions
protected boolean debugCMP
| Constructor Detail |
|---|
public InteractionManager(User user)
| Method Detail |
|---|
public String getStrategy()
public void setLogFile(File logfile)
logfile -
public void run(ListIterator userInputIterator,
org.jdom.Element output)
userInputIterator - iterator for the list of strings with user
answers.output - container element for execution result (OMDoc fragment).public boolean isExerciseFinished()
public List getLastStepUserInput()
public List<org.jdom.Element> getLastStepMetadata()
public List getLastStepFeedbackContent()
public boolean hasSpecialAction(String name)
name - Name of the user request to check.
public boolean hasOnlySpecialActions()
public List<String> getExercisetypes()
public double getEvaluationResult()
public void selectExercise(String exerciseId,
String lang)
throws IOException
exerciseId - identifier for the exercise.
IOException - can happen in case of direct loading.
public void selectExercise(String exerciseId,
String strategy,
String lang)
throws IOException
IOExceptionpublic void selectExercise(org.jdom.Document exercise)
exercise - exercise document.public PresentationStrategy getPresentationStrategy()
public AppSession getSession()
public void setSession(AppSession session)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||