org.activemath.tutor.coursegen.learnerModel
Class ExternalLearnerModel

java.lang.Object
  extended by org.activemath.webapp.user.UserGroup
      extended by org.activemath.tutor.coursegen.learnerModel.AbstractLearnerModel
          extended by org.activemath.tutor.coursegen.learnerModel.ExternalLearnerModel
All Implemented Interfaces:
Comparable

public class ExternalLearnerModel
extends AbstractLearnerModel

In the future, this class will implement a web service adapter for plugging in external learnermodels.


Field Summary
 
Fields inherited from class org.activemath.webapp.user.UserGroup
allowedBookIds, allowedGroupingIds, allowedSurveys, availableTests, controlGroup, exerciseStrategy, exerciseStrategyDefault, field, hidden, id, learnerModel, log, name, parent, parentId, skin, testCompulsoryMap, testTimeouts, tutorIds
 
Constructor Summary
ExternalLearnerModel(String bingdingURL)
           
 
Method Summary
 double queryLearnerPropertyBoolean(String learnerId, String property, String arg1)
          Get the value of the given learner property (e.g. has-already-seen).
 List queryLearnerPropertyList(String learnerId, String property, String arg1)
          Get the value of the given learner property (e.g. allowed educational levels).
 double queryLearnerPropertyNumber(String learnerId, String property, String arg1)
          Get the value of the given learner property (e.g. competency level, mastery).
 String queryLearnerPropertyString(String learnerId, String property, String arg1)
          Get the value of the given learner property (e.g. educational level and field).
 
Methods inherited from class org.activemath.webapp.user.UserGroup
addTutor, buildAllowedBookIds, buildAllowedGroupingIds, compareTo, filterBooks, filterGroupings, getAllowedBookIds, getAllowedGroupingIds, getAllowedGroupings, getAllowedRecBooks, getAllowedSurveyNames, getAllowedSurveys, getAvailableTests, getAvailableTestsIds, getCompulsoryTests, getExerciseStrategy, getField, getGroupSpecificAndInheritedGroupingIds, getGroupSpecificAndInheritedRecBookIds, getGroupSpecificAndInheritedSurveys, getGroupSpecificGroupingIds, getGroupSpecificRecBookIds, getGroupSpecificSurveys, getId, getInheritedGroupingIds, getInheritedRecBookIds, getInheritedSurveys, getLearnerModel, getName, getParent, getParentId, getParentIds, getProperty, getRecBooks, getSkin, getTargetCompetencies, getTestCompulsoryMap, getTestTimeout, getTestTimeouts, getTutors, getTutorsCSV, getUserIds, isActive, isAllowedGrouping, isAllowedSurvey, isAllowedTutor, isCompulsoryTest, isControlGroup, isDefaultGroup, isHidden, removeTutor, setAllowedBookIds, setAllowedGroupingIds, setAllowedSurveys, setControlGroup, setExerciseStrategy, setField, setHidden, setId, setIsCompulsoryTest, setLearnerModel, setName, setParentId, setSkin, setTestCompulsoryMap, setTestTimeout, setTestTimeouts, setTutors, setTutorsCSV, splitString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExternalLearnerModel

public ExternalLearnerModel(String bingdingURL)
                     throws Exception
Throws:
Exception
Method Detail

queryLearnerPropertyString

public String queryLearnerPropertyString(String learnerId,
                                         String property,
                                         String arg1)
Description copied from class: AbstractLearnerModel
Get the value of the given learner property (e.g. educational level and field).

Specified by:
queryLearnerPropertyString in class AbstractLearnerModel
arg1 - (this argument is some extension that can attribute a specific purpose of query, like the contentId)
Returns:
the learner property as String

queryLearnerPropertyList

public List queryLearnerPropertyList(String learnerId,
                                     String property,
                                     String arg1)
Description copied from class: AbstractLearnerModel
Get the value of the given learner property (e.g. allowed educational levels).

Specified by:
queryLearnerPropertyList in class AbstractLearnerModel
arg1 - (this argument is some extension that can attribute a specific purpose of query, like the contentId)
Returns:
the learner property as a List

queryLearnerPropertyNumber

public double queryLearnerPropertyNumber(String learnerId,
                                         String property,
                                         String arg1)
Description copied from class: AbstractLearnerModel
Get the value of the given learner property (e.g. competency level, mastery).

Specified by:
queryLearnerPropertyNumber in class AbstractLearnerModel
Returns:
the learner property as a double value

queryLearnerPropertyBoolean

public double queryLearnerPropertyBoolean(String learnerId,
                                          String property,
                                          String arg1)
Description copied from class: AbstractLearnerModel
Get the value of the given learner property (e.g. has-already-seen).

Specified by:
queryLearnerPropertyBoolean in class AbstractLearnerModel
Returns:
the learner property as boolean