]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.simulation.ontology/graph/Simulation.pgraph
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.simulation.ontology / graph / Simulation.pgraph
diff --git a/bundles/org.simantics.simulation.ontology/graph/Simulation.pgraph b/bundles/org.simantics.simulation.ontology/graph/Simulation.pgraph
new file mode 100644 (file)
index 0000000..97702cf
--- /dev/null
@@ -0,0 +1,62 @@
+L0 = <http://www.simantics.org/Layer0-1.1>\r
+L0X = <http://www.simantics.org/Layer0X-1.1>\r
+\r
+SIMU = <http://www.simantics.org/Simulation-1.1> : L0.Ontology\r
+    @L0.new\r
+    L0.HasResourceClass "org.simantics.simulation.ontology.SimulationResource"\r
+\r
+HIS = SIMU.History\r
+\r
+SIMU.Model <T L0.IndexRoot\r
+    @L0.singleProperty SIMU.HasConfiguration\r
+    @L0.singleProperty L0X.HasBaseRealization\r
+    @L0.property SIMU.HasState\r
+    @L0.property L0.ConsistsOf\r
+SIMU.State <T L0.Entity\r
+    @L0.optionalProperty SIMU.State.History\r
+SIMU.HasConfiguration <R L0.DependsOn\r
+    L0.InverseOf SIMU.IsConfigurationOf\r
+SIMU.HasState <R L0.DependsOn\r
+    L0.HasRange SIMU.State\r
+SIMU.HasInitialState <R L0.DependsOn\r
+SIMU.Experiment <T L0.Entity\r
+    @L0.optionalProperty SIMU.HasInitialState \r
+\r
+SIMU.RunType <T L0.Entity\r
+\r
+SIMU.Run <T L0X.Realization <T L0.RVIContext : SIMU.RunType\r
+    >-- SIMU.Run.iExperiment ==> "IExperiment" <R L0.HasProperty : L0.FunctionalRelation\r
+\r
+SIMU.State.History <R L0.IsRelatedTo : L0.FunctionalRelation\r
+    L0.InverseOf SIMU.State.History.Inverse <R L0.IsRelatedTo : L0.FunctionalRelation\r
+    L0.HasRange HIS.History\r
+\r
+SIMU.IsActive <R L0.IsRelatedTo : L0.Tag\r
+    @L0.symmetric\r
+\r
+SIMU.HasActiveExperiment <R L0.HasProperty\r
+\r
+SIMU.HasActivationTime <R L0.HasProperty\r
+    L0.HasDescription "Experiment activation time in milliseconds since the Unix time epoch 1.1.1970 0:00:00."\r
+    L0.HasRange L0.Long\r
+\r
+\r
+// Not necessarily the right place\r
+SIMU.HasDevsComponent <R L0.IsRelatedTo\r
+    L0.HasDescription "Adapter relation for configurations."\r
+\r
+// Indicates the state of the experiment.\r
+SIMU.HasExperimentState <R L0.IsRelatedTo\r
+    L0.HasLabel "Simulation State"\r
+    L0.HasRange SIMU.ExperimentState\r
+\r
+SIMU.ExperimentState <T L0.Property\r
+    @L0.tag L0.Enumeration\r
+\r
+SIMU.ExperimentState.Initializing : SIMU.ExperimentState\r
+SIMU.ExperimentState.Running : SIMU.ExperimentState\r
+SIMU.ExperimentState.Stopped : SIMU.ExperimentState\r
+SIMU.ExperimentState.Disposed : SIMU.ExperimentState\r
+\r
+SIMU.ActiveExperiment : L0.Function\r
+    L0.HasDescription "ReadGraph -> Resource -> Resource"\r