org.activemath.studentmodel2
Class PersistenceHelper

java.lang.Object
  extended by org.activemath.studentmodel2.PersistenceHelper

public class PersistenceHelper
extends Object

XStream based persistence for SLM


Nested Class Summary
 class PersistenceHelper.CognitiveProcessConverter
          We need this class to convert cognitive process constants correctly
 
Field Summary
protected static Category log
           
protected static String PERSISTENCE_VERSION
           
 
Constructor Summary
protected PersistenceHelper()
           
 
Method Summary
static PersistenceHelper getInstance()
           
 AssessmentModel loadModel(String userId)
          Load a model (including evidences and affective model).
 StudentSimulator loadSimulation(String simulationId)
           
 void storeSimulation(StudentSimulator sim)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PERSISTENCE_VERSION

protected static final String PERSISTENCE_VERSION
See Also:
Constant Field Values

log

protected static Category log
Constructor Detail

PersistenceHelper

protected PersistenceHelper()
Method Detail

getInstance

public static PersistenceHelper getInstance()

loadSimulation

public StudentSimulator loadSimulation(String simulationId)

storeSimulation

public void storeSimulation(StudentSimulator sim)

loadModel

public AssessmentModel loadModel(String userId)
Load a model (including evidences and affective model).

Returns:
Model, or null if none found.