|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.webapp.tutor.cgWebService.ServiceController.CourseGeneratorService
public class CourseGeneratorService
This class provide the necessary interface for the CourseGeneratorWebService and
performs validation and transactions.
| Field Summary | |
|---|---|
static String |
CONNECTOR
The CONNECTOR will be used to combine the identifiers of learnermodel and the learner. |
| Method Summary | |
|---|---|
OJDocument |
generateCourse(String task,
List contentIDs,
Map learnerKnowledge)
Call the course generator and returns the resulting course as an OJDocument. |
OJDocument |
generateCourse(String task,
String learnerModelURL,
String userID,
List contentIDs)
Calls the course generator and returns the resulting course as an OJDocument. |
String |
getDocumentManifestStream(OJDocument doc)
Parse the given OJDocument and return a manifest in SCORM. |
String |
getDocumentString(OJDocument doc)
Tries to parse the OJDocument and return a string of its content. |
static CourseGeneratorService |
getInstance()
|
String |
getTaskDefinitionDTDFile()
Calls the TaskUtil to get URI of the DTD file for
the XML file defining the task. |
String |
getTaskDefinitionXMLFile()
Calls the TaskUtil to get the URI of the task definitions. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CONNECTOR
LearnerModelUtil.
Thus, we need to define a CONNECTOR, which can be understood in this class, which handle
the request for generating the course and combine identifiers of the learnermodel and the learner.
The CONNECTOR which
must be also understood by the LearnerModelUtil for spliting the combined learnerId.
| Method Detail |
|---|
public static CourseGeneratorService getInstance()
public OJDocument generateCourse(String task,
String learnerModelURL,
String userID,
List contentIDs)
throws Exception
task - learnerModelURL - userID - contentIDs -
Exception
public OJDocument generateCourse(String task,
List contentIDs,
Map learnerKnowledge)
throws Exception
task - contentIDs - learnerKnowledge - a HashMap which contains contentId->mastery[1..4] pairs.
Exceptionpublic String getTaskDefinitionXMLFile()
TaskUtil to get the URI of the task definitions.
public String getTaskDefinitionDTDFile()
TaskUtil to get URI of the DTD file for
the XML file defining the task.
public String getDocumentString(OJDocument doc)
doc -
public String getDocumentManifestStream(OJDocument doc)
doc -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||