org.activemath.exercises
Class InteractionManager.UserInputHistoryEntry

java.lang.Object
  extended by org.activemath.exercises.InteractionManager.UserInputHistoryEntry
Enclosing class:
InteractionManager

public static class InteractionManager.UserInputHistoryEntry
extends Object


Field Summary
 List<org.jdom.Element> omobjList
           
 
Constructor Summary
InteractionManager.UserInputHistoryEntry()
           
 
Method Summary
 String getAchievement()
          Obtain the achievement for this answer.
 String getUserRequest()
          If the user's answer is actually a request (hint, solution, etc.), return the request name.
 void setAchievement(String achievement)
          Attach the achievement for this answer.
 void setAnswer(List<org.jdom.Element> answerElements)
          Set the user answer for this entry in the input history.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

omobjList

public List<org.jdom.Element> omobjList
Constructor Detail

InteractionManager.UserInputHistoryEntry

public InteractionManager.UserInputHistoryEntry()
Method Detail

setAnswer

public void setAnswer(List<org.jdom.Element> answerElements)
Set the user answer for this entry in the input history.

Parameters:
answerElements - list of OpenMath objects, one for each interactive element in the step.

setAchievement

public void setAchievement(String achievement)
Attach the achievement for this answer.

Parameters:
achievement - value as string

getAchievement

public String getAchievement()
Obtain the achievement for this answer.

Returns:
achievement value as string

getUserRequest

public String getUserRequest()
If the user's answer is actually a request (hint, solution, etc.), return the request name. Otherwise return null.

Returns:
name of the requested action, or null if it's a normal answer