From 6bb9773796ad3c633c8e26a13934399c77d89836 Mon Sep 17 00:00:00 2001 From: lehtonen Date: Sun, 23 Jan 2011 13:29:16 +0000 Subject: [PATCH] Added first version of the event ontology and the viewer UI. * Event plug-ins can be found in the simantics-incubator repository at /event/trunk. * Ripped experiment run handling out of ExperimentManager to simplify it and leave run handling up to IModel implementations. Fixed too early experiment activation problems in Apros - now experiment activation callback is invoked only when activation is completely done. * All experiment runs are marked as event producers in the model during experiment activation. This will bring their data into the event view. * Added a very simple AprosEventWriter that produces events into experiment run instances by listening to Apros through AprosListener. This needs much more work. TODO: * Add a selection processor for the selection view of the event view. Make it contribute tab by adapting the input into a ComparableTabContributor. * Make event producers and events adaptable to property tab contributors. refs #2136 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@19458 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../src/org/simantics/sysdyn/manager/SysdynModel.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynModel.java b/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynModel.java index c1abc57e..e549810f 100644 --- a/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynModel.java +++ b/org.simantics.sysdyn/src/org/simantics/sysdyn/manager/SysdynModel.java @@ -44,6 +44,7 @@ import org.simantics.simulation.experiment.ExperimentState; import org.simantics.simulation.experiment.IExperiment; import org.simantics.simulation.model.IModel; import org.simantics.simulation.ontology.SimulationResource; +import org.simantics.simulation.project.ExperimentRuns; import org.simantics.simulation.project.IExperimentActivationListener; import org.simantics.structural.stubs.StructuralResource2; import org.simantics.sysdyn.Activator; @@ -409,6 +410,7 @@ public class SysdynModel implements IMappingListener, IModel { SysdynExperiment exp = new SysdynExperiment(experiment, configurationResource); try { exp.init(g); + ExperimentRuns.createRun(session, experiment, exp, listener, null); if(listener != null) listener.onExperimentActivated(exp); return exp; -- 2.47.1