org.activemath.tutor.coursegen.learnerModel
Class AbstractLearnerModel

java.lang.Object
  extended by org.activemath.webapp.user.UserGroup
      extended by org.activemath.tutor.coursegen.learnerModel.AbstractLearnerModel
All Implemented Interfaces:
Comparable
Direct Known Subclasses:
DefaultAMLearnerModel, ExternalLearnerModel, TempLearnerModel

public abstract class AbstractLearnerModel
extends UserGroup

This abstract class defines an abstract learnermodel, which can be extended into different kinds of real learnermodels. In this class there are four abstract methods must be implemented in the extended classes.


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
AbstractLearnerModel()
          A default constructor which might be useful to define some common members for all the learnermodels.
 
Method Summary
abstract  double queryLearnerPropertyBoolean(String learnerId, String property, String arg1)
          Get the value of the given learner property (e.g. has-already-seen).
abstract  List queryLearnerPropertyList(String learnerId, String property, String arg1)
          Get the value of the given learner property (e.g. allowed educational levels).
abstract  double queryLearnerPropertyNumber(String learnerId, String property, String arg1)
          Get the value of the given learner property (e.g. competency level, mastery).
abstract  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

AbstractLearnerModel

public AbstractLearnerModel()
A default constructor which might be useful to define some common members for all the learnermodels. Currently it's empty.

Method Detail

queryLearnerPropertyString

public abstract String queryLearnerPropertyString(String learnerId,
                                                  String property,
                                                  String arg1)
Get the value of the given learner property (e.g. educational level and field).

Parameters:
learnerId -
property -
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 abstract List queryLearnerPropertyList(String learnerId,
                                              String property,
                                              String arg1)
Get the value of the given learner property (e.g. allowed educational levels).

Parameters:
learnerId -
property -
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 abstract double queryLearnerPropertyNumber(String learnerId,
                                                  String property,
                                                  String arg1)
Get the value of the given learner property (e.g. competency level, mastery).

Parameters:
learnerId -
property -
arg1 -
Returns:
the learner property as a double value

queryLearnerPropertyBoolean

public abstract double queryLearnerPropertyBoolean(String learnerId,
                                                   String property,
                                                   String arg1)
Get the value of the given learner property (e.g. has-already-seen).

Parameters:
learnerId -
property -
arg1 -
Returns:
the learner property as boolean