org.activemath.tutor.coursegen
Class CourseGenerator

java.lang.Object
  extended by org.activemath.tutor.coursegen.CourseGenerator

public class CourseGenerator
extends Object

ActiveMath's course generator. TODO: we don't need this class anymore, if it doesn't manage any tutorialInteractionMap.


Field Summary
protected static Category log
           
 
Method Summary
 OJDocument achieveTask(String userID, Task task)
          Call the course generator to generate a course that achieves the given task for the given user
 OJDocument achieveTask(String userID, Task task, Map initialWorldState)
           
 OJDocument achieveTask(String userId, Task task, Map initialWorldState, String sessionId, String clientName)
           
static CourseGenerator getInstance()
           
 String startTask(String userId, Task task, Map initialWorldState, String sessionId, String clientName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static Category log
Method Detail

getInstance

public static CourseGenerator getInstance()

achieveTask

public OJDocument achieveTask(String userID,
                              Task task)
Call the course generator to generate a course that achieves the given task for the given user

Parameters:
userID - - the user
task - - the task to be achieved.
Returns:
Returns the course structure that achieves the task (null, if no course can achieve the task).

achieveTask

public OJDocument achieveTask(String userID,
                              Task task,
                              Map initialWorldState)

startTask

public String startTask(String userId,
                        Task task,
                        Map initialWorldState,
                        String sessionId,
                        String clientName)

achieveTask

public OJDocument achieveTask(String userId,
                              Task task,
                              Map initialWorldState,
                              String sessionId,
                              String clientName)