]> gerrit.simantics Code Review - simantics/platform.git/blob - 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
1 L0 = <http://www.simantics.org/Layer0-1.1>\r
2 L0X = <http://www.simantics.org/Layer0X-1.1>\r
3 \r
4 SIMU = <http://www.simantics.org/Simulation-1.1> : L0.Ontology\r
5     @L0.new\r
6     L0.HasResourceClass "org.simantics.simulation.ontology.SimulationResource"\r
7 \r
8 HIS = SIMU.History\r
9 \r
10 SIMU.Model <T L0.IndexRoot\r
11     @L0.singleProperty SIMU.HasConfiguration\r
12     @L0.singleProperty L0X.HasBaseRealization\r
13     @L0.property SIMU.HasState\r
14     @L0.property L0.ConsistsOf\r
15 SIMU.State <T L0.Entity\r
16     @L0.optionalProperty SIMU.State.History\r
17 SIMU.HasConfiguration <R L0.DependsOn\r
18     L0.InverseOf SIMU.IsConfigurationOf\r
19 SIMU.HasState <R L0.DependsOn\r
20     L0.HasRange SIMU.State\r
21 SIMU.HasInitialState <R L0.DependsOn\r
22 SIMU.Experiment <T L0.Entity\r
23     @L0.optionalProperty SIMU.HasInitialState \r
24 \r
25 SIMU.RunType <T L0.Entity\r
26 \r
27 SIMU.Run <T L0X.Realization <T L0.RVIContext : SIMU.RunType\r
28     >-- SIMU.Run.iExperiment ==> "IExperiment" <R L0.HasProperty : L0.FunctionalRelation\r
29 \r
30 SIMU.State.History <R L0.IsRelatedTo : L0.FunctionalRelation\r
31     L0.InverseOf SIMU.State.History.Inverse <R L0.IsRelatedTo : L0.FunctionalRelation\r
32     L0.HasRange HIS.History\r
33 \r
34 SIMU.IsActive <R L0.IsRelatedTo : L0.Tag\r
35     @L0.symmetric\r
36 \r
37 SIMU.HasActiveExperiment <R L0.HasProperty\r
38 \r
39 SIMU.HasActivationTime <R L0.HasProperty\r
40     L0.HasDescription "Experiment activation time in milliseconds since the Unix time epoch 1.1.1970 0:00:00."\r
41     L0.HasRange L0.Long\r
42 \r
43 \r
44 // Not necessarily the right place\r
45 SIMU.HasDevsComponent <R L0.IsRelatedTo\r
46     L0.HasDescription "Adapter relation for configurations."\r
47 \r
48 // Indicates the state of the experiment.\r
49 SIMU.HasExperimentState <R L0.IsRelatedTo\r
50     L0.HasLabel "Simulation State"\r
51     L0.HasRange SIMU.ExperimentState\r
52 \r
53 SIMU.ExperimentState <T L0.Property\r
54     @L0.tag L0.Enumeration\r
55 \r
56 SIMU.ExperimentState.Initializing : SIMU.ExperimentState\r
57 SIMU.ExperimentState.Running : SIMU.ExperimentState\r
58 SIMU.ExperimentState.Stopped : SIMU.ExperimentState\r
59 SIMU.ExperimentState.Disposed : SIMU.ExperimentState\r
60 \r
61 SIMU.ActiveExperiment : L0.Function\r
62     L0.HasDescription "ReadGraph -> Resource -> Resource"\r