|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.tutor.TutorialInteraction
public class TutorialInteraction
Class for tutorial interactions.
Each tutorial interaction solves a single task. It has the following attributes:
| Field Summary | |
|---|---|
protected OJDocument |
courseStructure
Course structure achieving the tutorial task |
protected static int |
idCounter
Counter for ID generation |
protected Map |
initialWorldState
|
protected Task |
task
Tasks achieved by the tutorial interaction |
protected String |
tutorialInteractionId
The identifier of the tutorial interaction |
protected String |
userId
The user the tutorial interaction is for |
protected boolean |
wasInvoked
True after trying to achieve a task (even in case of failure) |
| Constructor Summary | |
|---|---|
TutorialInteraction(String userId,
Task task)
Create a new tutorial interaction. |
|
TutorialInteraction(String userId,
Task task,
Map initialWorldState)
|
|
TutorialInteraction(String userId,
Task task,
Map initialWorldState,
String sessionId,
String client)
|
|
| Method Summary | |
|---|---|
protected static String |
generateID()
|
OJDocument |
getCourseStructure()
|
static String |
getDocumentString(OJDocument omdoc)
print out the DOM Object as XML string |
int |
getProgress()
Query the current progressing status. |
Task |
getTask()
|
String |
getTutorialInteractionId()
|
String |
getUserId()
|
void |
startThread()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String userId
protected String tutorialInteractionId
protected OJDocument courseStructure
protected Task task
protected boolean wasInvoked
protected static int idCounter
protected Map initialWorldState
| Constructor Detail |
|---|
public TutorialInteraction(String userId,
Task task)
public TutorialInteraction(String userId,
Task task,
Map initialWorldState)
public TutorialInteraction(String userId,
Task task,
Map initialWorldState,
String sessionId,
String client)
| Method Detail |
|---|
protected static String generateID()
public void startThread()
public int getProgress()
public OJDocument getCourseStructure()
public Task getTask()
public String getTutorialInteractionId()
public String getUserId()
public String toString()
toString in class Objectpublic static String getDocumentString(OJDocument omdoc)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||