|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.activemath.exercises.Interpreter
Interpreter for exercises.
| Nested Class Summary | |
static class |
Interpreter.UserInputHistoryEntry
|
| Constructor Summary | |
Interpreter()
|
|
| Method Summary | |
double |
getEvaluationResult()
Deprecated. get the value from the Learner Model. |
String |
getExercisetype()
|
List |
getLastStepFeedbackContent()
Get the feedback produced for the last step. |
List |
getLastStepMetadata()
Get the metadata record list for the last step. |
List |
getLastStepUserInput()
Get the user input for the last step. |
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,
Element output)
Run the exercise, and output the result to a JDOM object. |
void |
selectExercise(Document exercise)
Set the exercise description. |
void |
selectExercise(String exerciseId)
Load the exercise description. |
void |
selectExercise(String exerciseId,
String strategy)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Interpreter()
| Method Detail |
public void run(ListIterator userInputIterator,
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 getLastStepMetadata()
public List getLastStepFeedbackContent()
public boolean hasSpecialAction(String name)
name - Name of the user request to check.
public String getExercisetype()
public double getEvaluationResult()
public void selectExercise(String exerciseId)
throws IOException
exerciseId - identifier for the exercise.
IOException - can happen in case of direct loading.
public void selectExercise(String exerciseId,
String strategy)
throws IOException
IOExceptionpublic void selectExercise(Document exercise)
exercise - exercise document.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||