org.activemath.tutor.coursegen.learnerModel
Class DefaultAMLearnerModel

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.DefaultAMLearnerModel
All Implemented Interfaces:
Comparable

public class DefaultAMLearnerModel
extends AbstractLearnerModel

This class implements the AbstractLearnerModel using the default Activemath learner model.


Field Summary
protected static Category log
           
protected static TutorLMBridge xlm
           
 
Fields inherited from class org.activemath.webapp.user.UserGroup
allowedBookIds, allowedGroupingIds, allowedSurveys, availableTests, controlGroup, exerciseStrategy, exerciseStrategyDefault, field, hidden, id, learnerModel, name, parent, parentId, skin, testCompulsoryMap, testTimeouts, tutorIds
 
Method Summary
static DefaultAMLearnerModel getInstance()
           
 double queryLearnerPropertyBoolean(String learnerId, String property, String itemId)
          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 itemId)
          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
 

Field Detail

log

protected static Category log

xlm

protected static TutorLMBridge xlm
Method Detail

getInstance

public static DefaultAMLearnerModel getInstance()

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

queryLearnerPropertyBoolean

public double queryLearnerPropertyBoolean(String learnerId,
                                          String property,
                                          String itemId)
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

queryLearnerPropertyNumber

public double queryLearnerPropertyNumber(String learnerId,
                                         String property,
                                         String itemId)
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