1 L0 = <http://www.simantics.org/Layer0-1.1>
2 STR = <http://www.simantics.org/Structural-1.2>
3 DOC = <http://www.simantics.org/Documentation-1.2>
4 RELATIONS = <http://www.simantics.org/Documentation-1.2/Relations>
5 PROPERTIES = <http://www.simantics.org/Documentation-1.2/Properties>
6 FUNCTIONS = <http://www.simantics.org/Documentation-1.2/Functions>
8 COMPONENTS = DOC.Components : L0.Library
10 attribute = COMPONENTS.attribute : L0.Template
11 @template %subject %relation %default
14 L0.Asserts _ : L0.Assertion
15 L0.HasPredicate %relation
18 connectionPoint = COMPONENTS.connectionPoint : L0.Template
19 @template %subject %relation
23 sclAttribute = COMPONENTS.sclAttribute : L0.Template
24 @template %subject %relation %command
27 L0.Asserts _ : L0.Assertion
28 L0.HasPredicate %relation
29 L0.HasObject _ : DOC.SCLValue
30 L0.HasValueType "String"
31 L0.SCLValue.expression %command
34 DOC.SCL : L0.SCLModule
35 L0.SCLModule.definition _ : L0.String
36 @L0.loadString "scl/Code.scl"
39 @template %subject %property %expression %valueType
41 %property _ : DOC.SCLValue
42 L0.SCLValue.expression %expression
43 L0.HasValueType %valueType
45 DOC.sclValue : L0.Template
46 @template %subject %expression %valueType
47 %subject : DOC.SCLValue
48 L0.SCLValue.expression %expression
49 L0.HasValueType %valueType
51 DOC.SCLValue <T L0.SCLValue
52 @L0.assert L0.ConvertsToValueWith
53 DOC.Functions.sclValue : L0.ExternalValue
55 /* Basic component types */
56 COMPONENTS.Component <T STR.Component
57 >-- COMPONENTS.Component.manualOrdinal --> L0.Integer <R L0.HasProperty
58 @attribute PROPERTIES.input FUNCTIONS.input
59 @attribute PROPERTIES.session FUNCTIONS.session
60 @attribute PROPERTIES.state FUNCTIONS.state
61 @attribute PROPERTIES.icstate FUNCTIONS.icstate
62 @sclAttribute PROPERTIES.commands "commandList self"
64 COMPONENTS.PrimitiveComponent <T COMPONENTS.Component
66 COMPONENTS.ParentlessComponent <T COMPONENTS.PrimitiveComponent /* Component without a parent, e.g. Root, DialogBox */
68 COMPONENTS.Composite <T STR.Composite <T COMPONENTS.Component
70 COMPONENTS.DummyContainer <T COMPONENTS.Component /* Dummy single component container which is not instantiated */
71 @attribute PROPERTIES.exists true
72 @attribute PROPERTIES.pathExists FUNCTIONS.pathExists
75 COMPONENTS.Root <T COMPONENTS.ParentlessComponent
76 @connectionPoint RELATIONS.part1
78 COMPONENTS.Event <T COMPONENTS.ParentlessComponent
79 @connectionPoint RELATIONS.event
81 COMPONENTS.CommandEvent <T COMPONENTS.Event
82 @connectionPoint RELATIONS.data1
83 @sclAttribute PROPERTIES.dataDefinitions "dataDefinitions self"
84 @sclAttribute PROPERTIES.SCLFunction "emptyOnClick ()"
86 DOC.commandEvent : L0.Template
87 @template %instance %expression %valueType
88 %instance : COMPONENTS.CommandEvent
89 PROPERTIES.SCLFunction _ : %valueType
90 L0.HasValueType "EventHandler"
91 L0.SCLValue.expression %expression
93 COMPONENTS.DefVar <T COMPONENTS.ParentlessComponent
94 @connectionPoint RELATIONS.dataDefinition
95 @connectionPoint RELATIONS.dataIn
96 @attribute PROPERTIES.target ""
97 @attribute PROPERTIES.source ""
99 COMPONENTS.DefVars <T COMPONENTS.ParentlessComponent
100 @connectionPoint RELATIONS.dataDefinition
101 @connectionPoint RELATIONS.dataIn
102 @attribute PROPERTIES.targets
104 @attribute PROPERTIES.sources