1 package org.simantics.document.server.state;
3 import org.simantics.db.ReadGraph;
4 import org.simantics.db.exception.DatabaseException;
5 import org.simantics.simulator.toolkit.StandardRealm;
6 import org.simantics.simulator.toolkit.db.StandardVariableSessionManager;
8 public class StateSessionManager extends StandardVariableSessionManager<StateNode, StateNodeManagerSupport> {
10 private static StateSessionManager INSTANCE;
12 public static StateSessionManager getInstance() {
13 if(INSTANCE == null) {
14 INSTANCE = new StateSessionManager();
20 protected StateNodeManagerSupport createEngine(ReadGraph graph, String id) throws DatabaseException {
21 return new StateNodeManagerSupport();
25 protected StandardRealm<StateNode, StateNodeManagerSupport> createRealm(StateNodeManagerSupport engine, String id) {
26 return new StateRealm(engine, id);