org.activemath.exercises.generators
Class IDEASGenerator

java.lang.Object
  extended by org.activemath.exercises.openmath.OpenMath
      extended by org.activemath.exercises.InteractionGenerator
          extended by org.activemath.exercises.generators.DRGenerator
              extended by org.activemath.exercises.generators.IDEASGenerator

public class IDEASGenerator
extends DRGenerator


Nested Class Summary
 class IDEASGenerator.IDEASDREvaluator
           
 
Nested classes/interfaces inherited from class org.activemath.exercises.generators.DRGenerator
DRGenerator.DREvaluator
 
Field Summary
 
Fields inherited from class org.activemath.exercises.generators.DRGenerator
badFeedbackIds, currentStepId, difficulty, encoding, feedbackGenerator, FINAL_CORRECT_ID, finalResult, FIRST_STEP_ID, goodFeedbackIds, granThreshold, granThresholdExceededFeedbackIds, granThresholdFeedbackIds, hint, hintIds, interactionIds, maxSolutionStepNr, maxUserSolStepNr, numberOfStepsLeft, previousStepId, problemStatement, solution, solutionIds, stepGran, suboptimalFeedbackIds, syntaxErrorFeedbackIds, task, taskIds, userInput
 
Fields inherited from class org.activemath.exercises.InteractionGenerator
activemathNamespace, dublinCoreNamespace, exercise, exerciseId, knownInteractions, lang, localUserModel, localUserModelActive, masterGenerator, om, omdocNamespace, openmathNamespace, parameters, presentationStrategy, serializer, session, theoryId
 
Constructor Summary
IDEASGenerator()
           
IDEASGenerator(LocalUserModel localUserModel)
           
 
Method Summary
protected  org.jdom.Element generateErrorDiagnosisFeedback()
           
protected  org.jdom.Element generateFinalResult()
           
protected  org.jdom.Element generateNextStepHint()
           
protected  org.jdom.Element generateSolution()
           
protected  org.jdom.Element generateTask()
           
protected  org.jdom.Element generateWhatsWrongFeedback()
           
 Evaluator getAnswerEvaluator()
          Provide an answer evaluator, if this generator requires a custom one.
 void initContext()
           
 
Methods inherited from class org.activemath.exercises.generators.DRGenerator
amdel, blank, br, cmp, cmp, cmp, comparison, composite, condition, defaultCondition, diagnosis, diagnosis, feedback, feedbackBad, feedbackBad, feedbackGood, feedbackGood, feedbackNear, feedbackNear, feedbackSuboptimal, fromString, generateRandomId, getDifficulty, getInteraction, getInteraction, hint, hint, hint, hintCondition, initDifficulty, initEncoding, initFirstStepId, initParam, initProblemStatement, initTaskFromParam, interaction, isSpecialRequest, isSyntaxError, makeNextStepHint, makeNextStepHint, makeSolution, makeSolution, makeSpecialCondition, numEq, oma, omdel, omel, relation, semEval, semEval, setContext, setDifficulty, setLang, setTask, solution, solution, solution, solutionCondition, staticContent, staticContent, synEq, task, task, toString, toString, unconditionalTransition, with, with
 
Methods inherited from class org.activemath.exercises.InteractionGenerator
abort, getExerciseDocument, getExerciseId, getFeedback, getName, getParameters, getPresentationStrategy, getSession, getTheoryId, hasAnswerMap, isStrategy, setExerciseDocument, setExerciseId, setIsStrategy, 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
 

Constructor Detail

IDEASGenerator

public IDEASGenerator()

IDEASGenerator

public IDEASGenerator(LocalUserModel localUserModel)
Parameters:
localUserModel -
Method Detail

initContext

public void initContext()

generateTask

protected org.jdom.Element generateTask()
Overrides:
generateTask in class DRGenerator

generateFinalResult

protected org.jdom.Element generateFinalResult()
Overrides:
generateFinalResult in class DRGenerator

generateNextStepHint

protected org.jdom.Element generateNextStepHint()
Overrides:
generateNextStepHint in class DRGenerator

generateWhatsWrongFeedback

protected org.jdom.Element generateWhatsWrongFeedback()

generateErrorDiagnosisFeedback

protected org.jdom.Element generateErrorDiagnosisFeedback()
Overrides:
generateErrorDiagnosisFeedback in class DRGenerator

generateSolution

protected org.jdom.Element generateSolution()
Overrides:
generateSolution in class DRGenerator

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 DRGenerator
Returns:
Evaluator object.