org.activemath.exercises.generators
Class OmegaTutorGenerator
java.lang.Object
org.activemath.exercises.openmath.OpenMath
org.activemath.exercises.InteractionGenerator
org.activemath.exercises.generators.OmegaTutorGenerator
public class OmegaTutorGenerator
- extends InteractionGenerator
OmegaTutor generator, adapted from the cas console generator
- Version:
| Fields inherited from class org.activemath.exercises.InteractionGenerator |
activemathNamespace, dublinCoreNamespace, exercise, exerciseId, lang, localUserModel, localUserModelActive, masterGenerator, om, omdocNamespace, openmathNamespace, parameters, presentationStrategy, serializer, session, theoryId |
| Methods inherited from class org.activemath.exercises.InteractionGenerator |
abort, getExerciseDocument, getFeedback, getName, getParameters, getPresentationStrategy, getSession, getTheoryId, hasAnswerMap, isStrategy, setExerciseDocument, setExerciseId, setIsStrategy, setLang, setMasterGenerator, setName, setParameters, setPresentationStrategy, setSession, setTheoryId |
| Methods inherited from class org.activemath.exercises.openmath.OpenMath |
applyBinding, getOmobjContents, oma, oma, oma, oma, oma, ombind, ombind, ombind, ombind, ombind, ombvar, ombvar, ombvar, ombvar, ome, ome, ome, ome, omf, omf, omi, omi, omobj, oms, omstr, omv, output, setOmNamespace, substituteVariables, tidyForOpenMath1, toDouble, toInt |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
initialNode
protected org.jdom.Element initialNode
knownInteractions
protected Map knownInteractions
lastResult
protected List lastResult
omegatutorsays
protected String omegatutorsays
OmegaTutorGenerator
public OmegaTutorGenerator()
OmegaTutorGenerator
public OmegaTutorGenerator(LocalUserModel localUserModel)
getParameterValues
public void getParameterValues()
getExerciseNumber
public int getExerciseNumber()
getExerciseFilename
public String getExerciseFilename()
getExerciseId
public String getExerciseId()
- Overrides:
getExerciseId in class InteractionGenerator
printelement
public static String printelement(org.jdom.Element elem)
printelement_helper
public static String printelement_helper(org.jdom.Element elem,
String tab)
getInteraction
public org.jdom.Element getInteraction()
- Produce the initial node, where the exercise really starts.
- Overrides:
getInteraction in class InteractionGenerator
- Returns:
- JDOM element. Can be null only if the exercise item doesn't
have a root element.
getInteraction
public org.jdom.Element getInteraction(String id)
- Produce an interaction element from the given ID attribute.
- Overrides:
getInteraction in class InteractionGenerator
- Parameters:
id - value of the "id" attribute of the desired element.
- Returns:
- element found, or null.
getAnswerEvaluator
public Evaluator getAnswerEvaluator()
- Description copied from class:
InteractionGenerator
- Provide an answer evaluator, if this generator requires a custom
one. Normally it would be enough with the default evaluator.
- Overrides:
getAnswerEvaluator in class InteractionGenerator
- Returns:
- Evaluator object.