|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.webapp.user.UserGroup
org.activemath.tutor.coursegen.learnerModel.AbstractLearnerModel
org.activemath.tutor.coursegen.learnerModel.TempLearnerModel
public class TempLearnerModel
This class implementes a simple learnermodel that simulates a temporary learnermodel for storing the information of learner. Its information is only useful for queries from the course generator. This class can be used for systems that do not have a learnermodel but still want to use the course generator.
| Field Summary | |
|---|---|
static String |
JOINT_CONNECTOR
|
protected static Category |
log
|
| 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 | |
|---|---|
String |
addLearner(Map learnerKnowledge)
Add information about a learner to this learnermodel. |
CompetencyLevel |
getCompetencyLevel(String userId,
String contentId)
Currently returns CompetencyLevel.SIMPLE_CONCEPTUAL as default. |
CompetencyLevel |
getCompetencyLevel(String userId,
String contentId,
Competency competency)
Currently returns CompetencyLevel.SIMPLE_CONCEPTUAL as default. |
String |
getField(String learnerId)
Currently returns a default domain of the learner. |
static TempLearnerModel |
getInstance()
|
int |
getKnowledgeValue(String userId,
String contentId)
Calls the methode getMastery(userId, contentId) |
int[] |
getKnowledgeValues(String userId,
List listOfContentIds)
Get all the knowledge values of the given list of identiers. |
String |
getLearningContextAsString(String learnerId)
Returns the learning context of the learner. |
int |
getMastery(String learnerId,
String contentId)
Returns the mastery of the learner regarding the given content. |
String |
getName()
|
boolean |
hasAlreadySeen(String learnerId,
String contentId)
Returns whether the learner has already seen the given content. |
boolean |
isValidKnowledgeMap(Map knowledgeMap)
Verify the given Map. |
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). |
protected Map |
removeLearner(String learnerId)
Removes the knowledge Map of a learner. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static Category log
public static final String JOINT_CONNECTOR
| Method Detail |
|---|
public static TempLearnerModel getInstance()
public String addLearner(Map learnerKnowledge)
learnerKnowledge -
WrongLearnerKnowledgeMapExceptionprotected Map removeLearner(String learnerId)
learnerId -
public String queryLearnerPropertyString(String learnerId,
String property,
String arg1)
AbstractLearnerModel
queryLearnerPropertyString in class AbstractLearnerModelarg1 - (this argument is some extension that can attribute a specific purpose of
query, like the contentId)
public List queryLearnerPropertyList(String learnerId,
String property,
String arg1)
AbstractLearnerModel
queryLearnerPropertyList in class AbstractLearnerModelarg1 - (this argument is some extension that can attribute a specific purpose of
query, like the contentId)
public double queryLearnerPropertyNumber(String learnerId,
String property,
String arg1)
AbstractLearnerModel
queryLearnerPropertyNumber in class AbstractLearnerModel
public double queryLearnerPropertyBoolean(String learnerId,
String property,
String arg1)
AbstractLearnerModel
queryLearnerPropertyBoolean in class AbstractLearnerModelpublic String getLearningContextAsString(String learnerId)
learnerId -
public String getField(String learnerId)
learnerId -
public int getMastery(String learnerId,
String contentId)
learnerId -
public boolean hasAlreadySeen(String learnerId,
String contentId)
learnerId - contentId -
public boolean isValidKnowledgeMap(Map knowledgeMap)
knowledgeMap -
public CompetencyLevel getCompetencyLevel(String userId,
String contentId,
Competency competency)
CompetencyLevel.SIMPLE_CONCEPTUAL as default.
public CompetencyLevel getCompetencyLevel(String userId,
String contentId)
CompetencyLevel.SIMPLE_CONCEPTUAL as default.
public int getKnowledgeValue(String userId,
String contentId)
public int[] getKnowledgeValues(String userId,
List listOfContentIds)
public String getName()
getName in class UserGroup
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||