|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.studentmodel2.AffectiveModelManager
public class AffectiveModelManager
Manages affective models for each user.
| Field Summary | |
|---|---|
protected static Category |
log
|
| Method Summary | |
|---|---|
void |
clear()
Clear all models, reset the complete affective model |
void |
createNewAffectiveModel(String userId)
|
void |
destroyAffectiveModel(String userId)
Removes an existing affective model of a user |
AffectiveModel |
getAffectiveModel(String userId)
|
static AffectiveModelManager |
getInstance()
|
void |
handleResult(ExerciseResult r)
Updates the affective model based on an exercise result (does nothing if the affective model is disabled) |
boolean |
hasModel(String userId)
|
boolean |
isEnabled()
|
void |
setAffectiveModel(String userId,
AffectiveModel am)
Stores an affective model for the specified user. |
void |
setEnabled(boolean enabled)
Whether to enable or disable the affective model |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Category log
| Method Detail |
|---|
public static AffectiveModelManager getInstance()
public boolean hasModel(String userId)
userId -
public AffectiveModel getAffectiveModel(String userId)
userId -
public void createNewAffectiveModel(String userId)
public void setAffectiveModel(String userId,
AffectiveModel am)
userId - am - isEnabled()public void destroyAffectiveModel(String userId)
userId - public void clear()
public void setEnabled(boolean enabled)
enabled - public boolean isEnabled()
setEnabled(boolean)public void handleResult(ExerciseResult r)
r - isEnabled()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||