]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.modeling.ontology/graph/Switching.pgraph
Adding FileSystem and FileSystems to Files SCL-API
[simantics/platform.git] / bundles / org.simantics.modeling.ontology / graph / Switching.pgraph
1 L0 = <http://www.simantics.org/Layer0-1.1>
2 STR = <http://www.simantics.org/Structural-1.2>
3 MOD = <http://www.simantics.org/Modeling-1.2>
4
5 MOD.ComponentSwitchGroup <T L0.Entity
6     // L0.HasLabel
7     >-- MOD.ComponentSwitchGroup.alternative --> MOD.ComponentSwitchAlternative <R L0.IsComposedOf
8
9 MOD.ComponentSwitchAlternative <T L0.Entity
10     // L0.HasLabel
11     >-- MOD.ComponentSwitchAlternative.componentType --> STR.ComponentType <R L0.IsRelatedTo : L0.TotalFunction
12         L0.InverseOf MOD.BelongsToComponentSwitchGroup <R L0.IsRelatedTo
13
14 MOD.ComponentSwitchAlternative.withLabel : L0.Template 
15     @template %group %label %componentType
16         %group
17             MOD.ComponentSwitchGroup.alternative _ : MOD.ComponentSwitchAlternative
18                 L0.HasLabel %label
19                 MOD.ComponentSwitchAlternative.componentType %componentType
20