]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.layer0/graph/Layer0Values.pgraph
c36cf60e56cffc6faf7d53cc1e7c10d2d0a3bd40
[simantics/platform.git] / bundles / org.simantics.layer0 / graph / Layer0Values.pgraph
1 L0 = <http://www.simantics.org/Layer0-1.1>
2
3 L0.Value <T L0.Entity
4     
5 L0.ExternalValue <T L0.Value
6
7 L0.ConvertsToValueWith <R L0.HasProperty : L0.FunctionalRelation
8     <-- L0.Value
9     --> L0.Entity    
10
11 L0.HasValueType <R L0.HasProperty : L0.FunctionalRelation
12     <-- L0.Value
13     --> L0.String
14     
15 L0.RequiresValueType <R L0.HasProperty : L0.FunctionalRelation
16     <-- L0.Relation
17     --> L0.String
18
19 L0.HasDefaultLiteralType <R L0.DependsOn : L0.FunctionalRelation
20     <-- L0.Relation
21     --> L0.Type
22     
23 L0.HasSubliteralPredicate <R L0.DependsOn
24
25 L0.RVIContext <T L0.Entity
26
27 L0.SCLValue <T L0.Value : L0.SCLValueType
28     @L0.tag L0.Abstract
29     >-- L0.SCLValue.expression --> L0.String <R L0.HasProperty : L0.TotalFunction
30     >-- L0.SCLValue.environment --> L0.SCLValue.Environment <R L0.IsRelatedTo : L0.TotalFunction
31     @L0.assert L0.ConvertsToValueWith L0.Functions.computeExpression
32
33 L0.SCLValueType <T L0.Entity
34     >-- L0.SCLValueType.validator ==> "Variable -> <ReadGraph> String" <R L0.HasProperty
35
36 L0.scl : L0.Template
37     @template %subject %property %expression %valueType
38         %subject
39             %property _ : L0.SCLValue
40               L0.SCLValue.expression %expression
41               L0.HasValueType %valueType
42
43 L0.SCLValue.Environment <T L0.Entity
44     >-- L0.SCLValue.Environment.moduleName --> L0.String <R L0.HasProperty : L0.TotalFunction
45     >-- L0.SCLValue.Environment.namespace --> L0.String <R L0.HasProperty : L0.TotalFunction
46     >-- L0.SCLValue.Environment.uses --> L0.SCLValue.Environment <R L0.IsRelatedTo
47     @L0.assert L0.SCLValue.Environment.namespace ""
48     
49 L0.Property <T L0.Value
50     @L0.tag L0.Abstract
51     @L0.tag L0.Deprecated
52     @L0.assert L0.ConvertsToValueWith L0.Functions.composedPropertyValue