org.activemath.learner.history
Class LearnerHistoryProvider

java.lang.Object
  extended by org.activemath.learner.history.LearnerHistoryProvider

public class LearnerHistoryProvider
extends Object

The LearnerHistoryProvider provides configurable access to the different history implementations available (NoOpHistory, LeAMHistory as of August 11, 2006).


Field Summary
static String AM
           
protected static Logger log
           
static String NOP
           
 
Method Summary
 LearnerHistory getDefaultHistory()
          returns the default LearnerHistory.
static LearnerHistoryProvider getInstance()
          returns the singleton instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static Logger log

AM

public static final String AM
See Also:
Constant Field Values

NOP

public static final String NOP
See Also:
Constant Field Values
Method Detail

getInstance

public static final LearnerHistoryProvider getInstance()
returns the singleton instance

Returns:
the singleton instance.

getDefaultHistory

public LearnerHistory getDefaultHistory()
returns the default LearnerHistory. If the default history can not be found, returns the NoOp Learner history. If that cannot be found, returns null.

Returns:
The default history, if found. Otherwise, the Noop history is returned, if it exists. If not, null is returned.