|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AbstractUserModel
Mostly everything you read below is deprecated. See AbstractStudentModel
This interface is to be implemented by anything that claims to be a student model for ActiveMath.
However, be aware that the interface in fact represents more than just a bare student model. The methods
notifying the student model of actions the student performed have to evaluate these actions first. The output of these evaluating
processes can then be fed to then student model itself. Methods that have to pass through the evaluation process are:
startPageBrowsedendPageBrowsedstartExerciseendExerciseModelCentral that contains the bare student modelEvaluatorCentral that is responsible for evaluating requestsNextBestCentral that watches the student and generates suggestions
| Method Summary | |
|---|---|
void |
addBook(String user,
org.jdom.Document book)
Attaches a Document representing a user-generated book to the given user. |
int |
addToHistory(String string,
String[] itemIds,
String page,
String type,
long start,
int duration,
double success,
String session)
Temporary method needed for the connection to the history in the userModel server. |
boolean |
alreadySeen(String userId,
String con)
tells wether the user has already seen the given item. |
void |
createNewUser(Hashtable hashtable)
creates a new user from the given Hashtable. |
boolean |
doesUserExist(String user)
checks if there is a student model for the student with login name user. |
Map |
getBooks(String user)
Fetches a Map of all books attached to the given user |
Vector |
getConceptsKnown(String user)
gets a Vector containing the MBase IDs of all Items
the user has a mastery assessment for. |
Hashtable |
getJustificatingSteps(String user,
String concept)
gets a Hashtable containing the history elements responsible
for the mastery assessment of the given concept, keyed by their id. |
Hashtable |
getKnowledge(String userID,
String mBaseID)
fetches a Hashtable from the studentmodel containing the students
mastery values for the supplied concept. |
Date |
getLastTimeSeen(String userID,
String mBaseID)
gets the Date of the last time the given Item has been
seen by the student. |
double |
getMastery(String userID,
String mBaseID)
gets the student's mastery value for the given item. |
Hashtable |
getMultipleKnowledge(String userID,
Vector mBaseIDs)
gets a Hashtable containing the supplied mBaseIds as keys,
and the corresponding mastery Hashtable as Value as returned
by getKnowledge(java.lang.String, java.lang.String). |
Hashtable |
getProperties(String userId)
gets the Hashtable containing all the properties
stored in the um for the user with login userId. |
String |
getProperty(String userId,
String propertyName)
gets the value of the requested property for the supplied user as a String. |
List |
getUserList()
returns the list of all existing user ids |
void |
incrementTimesSeen(String userId,
String itemId)
Increments the number of Times an element has been seen |
void |
logout(String user)
logs the student with login name user out,
that means save her student model to the hard disk and
remove it from ram. |
void |
removeBook(String user,
String bookId)
Removed the given user-generated book from the user. |
boolean |
removeUser(String userId)
Deletes the given user from the userModel server |
void |
setKnowledge(String userID,
String mBaseID,
Hashtable bloomProps)
sets user userID's mastery assessment for the given mBaseID to the
supplied Hashtable. |
void |
setProperty(String userId,
String propertyName,
String value)
sets the property for the user userId to the
supplied key-value pair. |
void |
update(String userId,
String itemId,
Map newAssessment,
String historyId)
Temporary: Connectivity for the UM-internal update method. |
| Method Detail |
|---|
List getUserList()
AbstractStudentModel
getUserList in interface AbstractStudentModelHashtable getProperties(String userId)
Hashtable containing all the properties
stored in the um for the user with login userId. (SM)
getProperties in interface AbstractStudentModeluserId - the login id of the user whose properties to fetch.
Hashtable containing all the user's properties.getProperty(String,String),
setProperty(String,String,String)
String getProperty(String userId,
String propertyName)
String. (SM)
getProperty in interface AbstractStudentModeluserId - the login name of the user to get the property forpropertyName - the name of the property to get the value of
StringgetProperties(String),
setProperty(String, String, String)
void setProperty(String userId,
String propertyName,
String value)
userId to the
supplied key-value pair. (SM)
setProperty in interface AbstractStudentModeluserId - the login of the user to set the property forpropertyName - the name of the property to setvalue - the value to assign to the propertygetProperty(String,String),
getProperties(String)
Hashtable getKnowledge(String userID,
String mBaseID)
Hashtable from the studentmodel containing the students
mastery values for the supplied concept.
For information about our implementation, see org.activemath.studentmodel.StudentModelFacade#getKnowledge(String,String).(SM)
getKnowledge in interface AbstractStudentModeluserID - the login of the user to get the mastery assessment formBaseID - the MBase ID of the concept to get the mastery assessment for.
Hashtable containing the mastery assessment for the given userIDgetMultipleKnowledge(String,Vector),
setKnowledge(String,String,Hashtable),
getMastery(String,String),
org.activemath.studentmodel.ModelCentral#getKnowledge(String,String),
org.activemath.studentmodel.KnowledgeAtomImpl
Hashtable getMultipleKnowledge(String userID,
Vector mBaseIDs)
Hashtable containing the supplied mBaseIds as keys,
and the corresponding mastery Hashtable as Value as returned
by getKnowledge(java.lang.String, java.lang.String).(SM)
getMultipleKnowledge in interface AbstractStudentModeluserID - the login of the user to get the assessments formBaseIDs - a Vector containing MBaseIDs to fetch the user's mastery assessment for.
Hashtable containing the mastery assessments
for the supplied mBaseIDs (which are strings).getKnowledge(String,String),
setKnowledge(String,String,Hashtable),
getMastery(String,String),
org.activemath.studentmodel.ModelCentral#getMultipleKnowledge(String,Vector),
org.activemath.studentmodel.KnowledgeAtomImpl
void setKnowledge(String userID,
String mBaseID,
Hashtable bloomProps)
userID's mastery assessment for the given mBaseID to the
supplied Hashtable. The Hashtable must have the structure like those
returned by getKnowledge(String,String).(SM)
setKnowledge in interface AbstractStudentModeluserID - the login of the user to set the mastery assessment formBaseID - the MBase Id of the item to set the mastery assessment forbloomProps - the Hashtable containing the mastery assessment that is to be set.getKnowledge(String,String),
getMultipleKnowledge(String,Vector),
getMastery(String,String),
org.activemath.studentmodel.ModelCentral#setKnowledge(String,String,Hashtable),
org.activemath.studentmodel.KnowledgeAtomImpl
double getMastery(String userID,
String mBaseID)
getMastery in interface AbstractStudentModeluserID - the login name of the user to get the mean value formBaseID - the id of the item to get the mastery for.
double representing the student's mastery for the given item.getKnowledge(String,String),
getMultipleKnowledge(String,Vector),
setKnowledge(String,String,Hashtable),
org.activemath.studentmodel.KnowledgeAtomImplvoid logout(String user)
user out,
that means save her student model to the hard disk and
remove it from ram.(SM)
logout in interface AbstractStudentModeluser - the login name of the student to log out.
boolean alreadySeen(String userId,
String con)
alreadySeen in interface AbstractStudentModeluserId - the login name of the student to checkcon - the MBase ID of the item to check
org.activemath.studentmodel.ModelCentral#getTimesSeen(String,String)
Date getLastTimeSeen(String userID,
String mBaseID)
Date of the last time the given Item has been
seen by the student.(SM)
getLastTimeSeen in interface AbstractStudentModeluserID - the login name of the studentmBaseID - the MBase ID of the Item.
Date of the last time the item has been seen by the student.alreadySeen(String,String)
void createNewUser(Hashtable hashtable)
throws ModelExistsException
Hashtable.
It has to be in the form specified by the student model component.(SM)
createNewUser in interface AbstractStudentModelhashtable - the Hashtable containing the information needed to create the model
ModelExistsException - if the requested name(contained in the Hashtable) is already in useorg.activemath.studentmodel.ModelCentral#createNewUser(Hashtable)boolean doesUserExist(String user)
user.(SM)
doesUserExist in interface AbstractStudentModeluser - the username to check
true if such a student model already existsorg.activemath.studentmodel.ModelCentral#doesUserExist
Hashtable getJustificatingSteps(String user,
String concept)
Hashtable containing the history elements responsible
for the mastery assessment of the given concept, keyed by their id.(SM)
getJustificatingSteps in interface AbstractStudentModeluser - the login name of the userconcept - the MBase ID of the Item to get the justification forVector getConceptsKnown(String user)
Vector containing the MBase IDs of all Items
the user has a mastery assessment for.
getConceptsKnown in interface AbstractStudentModeluser - the login of the user
Vector containing the IDs of all the items known to the userorg.activemath.studentmodel.ModelCentral#getConceptsKnown(String),
getKnowledge(String,String),
getMultipleKnowledge(String,Vector),
getMastery(String, String),
setKnowledge(String,String,Hashtable)
void addBook(String user,
org.jdom.Document book)
addBook in interface AbstractStudentModeluser - the user to attach the book tobook - the book as a Document.
void removeBook(String user,
String bookId)
removeBook in interface AbstractStudentModeluser - the user to remove the book frombookId - the id of the book to removeMap getBooks(String user)
user
- Specified by:
getBooks in interface AbstractStudentModel
- Parameters:
user - the user id to get the books for.
- Returns:
- a Map containing the given user's books, keys are the ids, values are the content as String.
void update(String userId,
String itemId,
Map newAssessment,
String historyId)
update in interface AbstractStudentModeluserId - itemId - newAssessment - historyId -
int addToHistory(String string,
String[] itemIds,
String page,
String type,
long start,
int duration,
double success,
String session)
addToHistory in interface AbstractStudentModelstring - itemIds - page - type - start - duration - success - boolean removeUser(String userId)
removeUser in interface AbstractStudentModeluserId - The id of the user to remove
void incrementTimesSeen(String userId,
String itemId)
incrementTimesSeen in interface AbstractStudentModeluserId - the id of the useritemId - the mbase id of the item.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||