* Initialize this experiment\r
* @param g ReadGraph\r
*/\r
- public void init(ReadGraph g) {\r
+ public void init(ReadGraph g) throws DatabaseException {\r
try {\r
this.experimentName = NameUtils.getSafeName(g, experiment);\r
} catch (DatabaseException e) {\r
state = ExperimentState.STOPPED;\r
for(IExperimentListener listener : listeners.getListeners())\r
listener.stateChanged(state);\r
-\r
- session.asyncRequest(new ReadRequest() {\r
-\r
- @Override\r
- public void run(ReadGraph graph) throws DatabaseException {\r
- final Resource configuration = graph.getPossibleObject(model, SimulationResource.getInstance(graph).HasConfiguration);\r
- sysdynModel = SysdynModelManager.getInstance(session).getModel(graph, configuration);\r
- toggleActivation(graph, true);\r
- }\r
- });\r
+ \r
+ final Resource configuration = g.getPossibleObject(model, SimulationResource.getInstance(g).HasConfiguration);\r
+ sysdynModel = SysdynModelManager.getInstance(session).getModel(g, configuration);\r
+ toggleActivation(g, true);\r
\r
setSysdynExperimentState(ExperimentState.INITIALIZING);\r
}\r