|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.statistics.StatisticsManager
public class StatisticsManager
This class holds a list of all ExerciseStatistics - for each exercise one. It listens on events and forwards them to the specific ExerciseStatistics, which updates itself then.
| Field Summary | |
|---|---|
protected static Logger |
log
|
| Method Summary | |
|---|---|
void |
clear()
Clears all statistics |
void |
clear(String exerciseId)
Removes statistics for an exercise |
ExerciseStatistics |
getExerciseStatistics(String exerciseId)
|
static StatisticsManager |
getInstance()
|
UserFeedbackManager |
getUserFeedbackManager()
Get the UserFeedbackManager associated with this StatisticsManager |
boolean |
isEnabled()
|
void |
onActivemathEvent(ActivemathEvent event)
Handle an Activemath event. |
void |
setEnabled(boolean enabled)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final transient Logger log
| Method Detail |
|---|
public static StatisticsManager getInstance()
public boolean isEnabled()
setEnabled(boolean)public void setEnabled(boolean enabled)
enabled - Enable or disable the statistics modulepublic void onActivemathEvent(ActivemathEvent event)
ActivemathEventListenerThis method must return as quickly as possible and must not block the calling thread for long.
onActivemathEvent in interface ActivemathEventListenerevent - the event to respond topublic ExerciseStatistics getExerciseStatistics(String exerciseId)
exerciseId - The id of the exercise whose statistics is to be returned
public void clear()
public void clear(String exerciseId)
exerciseId - public UserFeedbackManager getUserFeedbackManager()
UserFeedbackManager associated with this StatisticsManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||