|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.abstractcontent.UserModelAdapter
public class UserModelAdapter
| Constructor Summary | |
|---|---|
UserModelAdapter(AbstractStudentModel model)
|
|
| 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. |
void |
disableEyeTracker(String user)
|
boolean |
doesUserExist(String user)
checks if there is a student model for the student with login name user. |
void |
elementHasBeenSeen(String userID,
String mBaseID,
String session,
Date startTime,
Date endTime)
|
void |
enableEyeTracker(String user)
|
void |
endExercise(String userID,
String problemID,
Date time,
double successProportion,
String sessionID)
|
void |
endPageBrowsed(String userID,
List mBaseIDs,
Date time,
String sessionId,
String page)
|
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 AbstractUserModel.getKnowledge(java.lang.String, java.lang.String). |
org.jdom.Document |
getNextBestAdvice(String user,
String advice_id)
|
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)
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 |
requestNextBestAdvice(String user,
String type)
|
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 |
startExercise(String userID,
String problemID,
Date time,
String proxyURL,
String sessionID)
|
void |
startPageBrowsed(String userID,
List list,
Date time,
String sessionId,
String page)
|
void |
suggestionFollowed(String user,
int suggestion_type)
|
void |
suggestionIgnored(String user,
int suggestion_type)
|
void |
update(String userId,
String itemId,
Map newAssessment,
String historyId)
Temporary: Connectivity for the UM-internal update method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserModelAdapter(AbstractStudentModel model)
| Method Detail |
|---|
public List getUserList()
AbstractStudentModel
getUserList in interface AbstractStudentModelgetUserList in interface AbstractUserModelpublic Hashtable getProperties(String userId)
AbstractUserModelHashtable containing all the properties
stored in the um for the user with login userId. (SM)
getProperties in interface AbstractStudentModelgetProperties in interface AbstractUserModeluserId - the login id of the user whose properties to fetch.
Hashtable containing all the user's properties.AbstractUserModel.getProperty(String,String),
AbstractUserModel.setProperty(String,String,String)
public String getProperty(String userId,
String propertyName)
AbstractUserModelString. (SM)
getProperty in interface AbstractStudentModelgetProperty in interface AbstractUserModeluserId - the login name of the user to get the property forpropertyName - the name of the property to get the value of
StringAbstractUserModel.getProperties(String),
AbstractUserModel.setProperty(String, String, String)
public void setProperty(String userId,
String propertyName,
String value)
AbstractUserModeluserId to the
supplied key-value pair. (SM)
setProperty in interface AbstractStudentModelsetProperty in interface AbstractUserModeluserId - the login of the user to set the property forpropertyName - the name of the property to setvalue - the value to assign to the propertyAbstractUserModel.getProperty(String,String),
AbstractUserModel.getProperties(String)
public Hashtable getKnowledge(String userID,
String mBaseID)
AbstractUserModelHashtable 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 AbstractStudentModelgetKnowledge in interface AbstractUserModeluserID - 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 userIDAbstractUserModel.getMultipleKnowledge(String,Vector),
AbstractUserModel.setKnowledge(String,String,Hashtable),
AbstractUserModel.getMastery(String,String),
org.activemath.studentmodel.ModelCentral#getKnowledge(String,String),
org.activemath.studentmodel.KnowledgeAtomImpl
public Hashtable getMultipleKnowledge(String userID,
Vector mBaseIDs)
AbstractUserModelHashtable containing the supplied mBaseIds as keys,
and the corresponding mastery Hashtable as Value as returned
by AbstractUserModel.getKnowledge(java.lang.String, java.lang.String).(SM)
getMultipleKnowledge in interface AbstractStudentModelgetMultipleKnowledge in interface AbstractUserModeluserID - 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).AbstractUserModel.getKnowledge(String,String),
AbstractUserModel.setKnowledge(String,String,Hashtable),
AbstractUserModel.getMastery(String,String),
org.activemath.studentmodel.ModelCentral#getMultipleKnowledge(String,Vector),
org.activemath.studentmodel.KnowledgeAtomImpl
public void setKnowledge(String userID,
String mBaseID,
Hashtable bloomProps)
AbstractUserModeluserID's mastery assessment for the given mBaseID to the
supplied Hashtable. The Hashtable must have the structure like those
returned by AbstractUserModel.getKnowledge(String,String).(SM)
setKnowledge in interface AbstractStudentModelsetKnowledge in interface AbstractUserModeluserID - 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.AbstractUserModel.getKnowledge(String,String),
AbstractUserModel.getMultipleKnowledge(String,Vector),
AbstractUserModel.getMastery(String,String),
org.activemath.studentmodel.ModelCentral#setKnowledge(String,String,Hashtable),
org.activemath.studentmodel.KnowledgeAtomImpl
public double getMastery(String userID,
String mBaseID)
AbstractUserModel
getMastery in interface AbstractStudentModelgetMastery in interface AbstractUserModeluserID - 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.AbstractUserModel.getKnowledge(String,String),
AbstractUserModel.getMultipleKnowledge(String,Vector),
AbstractUserModel.setKnowledge(String,String,Hashtable),
org.activemath.studentmodel.KnowledgeAtomImplpublic void logout(String userID)
AbstractUserModeluser out,
that means save her student model to the hard disk and
remove it from ram.(SM)
logout in interface AbstractStudentModellogout in interface AbstractUserModeluserID - the login name of the student to log out.public void enableEyeTracker(String user)
public void disableEyeTracker(String user)
public boolean alreadySeen(String userId,
String con)
AbstractUserModel
alreadySeen in interface AbstractStudentModelalreadySeen in interface AbstractUserModeluserId - the login name of the student to checkcon - the MBase ID of the item to check
org.activemath.studentmodel.ModelCentral#getTimesSeen(String,String)
public void startExercise(String userID,
String problemID,
Date time,
String proxyURL,
String sessionID)
public void endExercise(String userID,
String problemID,
Date time,
double successProportion,
String sessionID)
public void startPageBrowsed(String userID,
List list,
Date time,
String sessionId,
String page)
public void endPageBrowsed(String userID,
List mBaseIDs,
Date time,
String sessionId,
String page)
public void elementHasBeenSeen(String userID,
String mBaseID,
String session,
Date startTime,
Date endTime)
public Date getLastTimeSeen(String userID,
String mBaseID)
AbstractUserModelDate of the last time the given Item has been
seen by the student.(SM)
getLastTimeSeen in interface AbstractStudentModelgetLastTimeSeen in interface AbstractUserModeluserID - 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.AbstractUserModel.alreadySeen(String,String)
public void createNewUser(Hashtable hashtable)
throws ModelExistsException
AbstractUserModelHashtable.
It has to be in the form specified by the student model component.(SM)
createNewUser in interface AbstractStudentModelcreateNewUser in interface AbstractUserModelhashtable - 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)public boolean doesUserExist(String user)
AbstractUserModeluser.(SM)
doesUserExist in interface AbstractStudentModeldoesUserExist in interface AbstractUserModeluser - the username to check
true if such a student model already existsorg.activemath.studentmodel.ModelCentral#doesUserExist
public Hashtable getJustificatingSteps(String user,
String concept)
AbstractUserModelHashtable containing the history elements responsible
for the mastery assessment of the given concept, keyed by their id.(SM)
getJustificatingSteps in interface AbstractStudentModelgetJustificatingSteps in interface AbstractUserModeluser - the login name of the userconcept - the MBase ID of the Item to get the justification for
public org.jdom.Document getNextBestAdvice(String user,
String advice_id)
public void requestNextBestAdvice(String user,
String type)
public Vector getConceptsKnown(String user)
AbstractUserModelVector containing the MBase IDs of all Items
the user has a mastery assessment for.
getConceptsKnown in interface AbstractStudentModelgetConceptsKnown in interface AbstractUserModeluser - the login of the user
Vector containing the IDs of all the items known to the userorg.activemath.studentmodel.ModelCentral#getConceptsKnown(String),
AbstractUserModel.getKnowledge(String,String),
AbstractUserModel.getMultipleKnowledge(String,Vector),
AbstractUserModel.getMastery(String, String),
AbstractUserModel.setKnowledge(String,String,Hashtable)
public void suggestionFollowed(String user,
int suggestion_type)
public void suggestionIgnored(String user,
int suggestion_type)
public void addBook(String user,
org.jdom.Document book)
AbstractUserModel
addBook in interface AbstractStudentModeladdBook in interface AbstractUserModeluser - the user to attach the book tobook - the book as a Document.
public void removeBook(String user,
String bookId)
AbstractUserModel
removeBook in interface AbstractStudentModelremoveBook in interface AbstractUserModeluser - the user to remove the book frombookId - the id of the book to removepublic Map getBooks(String user)
AbstractUserModeluser
- Specified by:
getBooks in interface AbstractStudentModel- Specified by:
getBooks in interface AbstractUserModel
- 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.
public void update(String userId,
String itemId,
Map newAssessment,
String historyId)
AbstractUserModel
update in interface AbstractStudentModelupdate in interface AbstractUserModeluserId - 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
public int addToHistory(String string,
String[] itemIds,
String page,
String type,
long start,
int duration,
double success,
String session)
AbstractUserModel
addToHistory in interface AbstractStudentModeladdToHistory in interface AbstractUserModelpublic boolean removeUser(String userId)
AbstractUserModel
removeUser in interface AbstractStudentModelremoveUser in interface AbstractUserModeluserId - The id of the user to remove
public void incrementTimesSeen(String userId,
String itemId)
AbstractUserModel
incrementTimesSeen in interface AbstractStudentModelincrementTimesSeen in interface AbstractUserModeluserId - 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 | |||||||||