|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AbstractStudentModel
This interface has to be implemented by any class that is claiming to be a student model for activemath.
| 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 userId)
log out the given user |
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 |
|---|
Hashtable getProperties(String userId)
Hashtable containing all the properties
stored in the um for the user with login userId. (SM)
userId - 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)
userId - 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)
userId - 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)
userID - 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)
userID - 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)
userID - 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)
userID - 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.KnowledgeAtomImpl
boolean alreadySeen(String userId,
String con)
userId - 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)
userID - 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)
hashtable - 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)
user - 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)
user - 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.
user - 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)
Document representing a user-generated book to the given user.
user - the user to attach the book tobook - the book as a Document.
void removeBook(String user,
String bookId)
user - the user to remove the book frombookId - the id of the book to removeMap getBooks(String user)
user
- 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)
userId - The id of the user to update the model foritemId - the id of the item to update the mastery assessment ofnewAssessment - the new mastery assessment to sethistoryId - the id of the history item that justifies the update
int addToHistory(String string,
String[] itemIds,
String page,
String type,
long start,
int duration,
double success,
String session)
string - itemIds - page - type - start - duration - success - boolean removeUser(String userId)
userId - The id of the user to remove
void incrementTimesSeen(String userId,
String itemId)
userId - the id of the useritemId - the mbase id of the item.void logout(String userId)
List getUserList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||