]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.diagram.ontology/graph/DiagramSymbolContributions.pgraph
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.diagram.ontology / graph / DiagramSymbolContributions.pgraph
1 L0 = <http://www.simantics.org/Layer0-1.1>\r
2 DIA = <http://www.simantics.org/Diagram-2.2>\r
3 \r
4 DIA.SymbolContribution <T L0.Entity\r
5     L0.HasDescription """Adds symbols to symbol library"""\r
6     @L0.tag L0.Abstract\r
7 \r
8 DIA.HasSymbolContribution <R L0.IsRelatedTo\r
9     L0.HasDescription """Adds symbol contribution to Diagram"""\r
10     //<-- DIA.Diagram\r
11     --> DIA.SymbolContribution\r
12 \r
13 DIA.IndexRootSymbolContribution <T DIA.SymbolContribution\r
14     L0.HasDescription """Symbol contribution that searches for libraries from current index root"""\r
15 \r
16 DIA.BasicSymbolContribution <T DIA.SymbolContribution\r
17     L0.HasDescription """Symbol contribution that consists of specific libraries"""\r
18     @L0.property DIA.BasicSymbolContributionHasSymbolLibrary\r
19 \r
20 DIA.BasicSymbolContributionHasSymbolLibrary <R L0.IsRelatedTo\r
21     <-- DIA.BasicSymbolContribution\r
22     --> L0.Library\r
23     --> DIA.SymbolReferenceLibrary\r
24 \r
25 DIA.SymbolReferenceLibrary <T L0.Entity\r
26     L0.HasDescription """An entitylibrary type for gathering symbols, i.e. DIA.ElementClass instances."""\r
27     @L0.property DIA.HasSymbol\r
28     //TODO [L0.ConsistsOf all SymbolReferenceLibrary]\r
29     //TODO [L0.DependsOn all L0.Type]\r
30 \r
31 DIA.HasSymbol <R L0.IsRelatedTo\r
32     L0.InverseOf DIA.HasSymbol.Inverse <R L0.IsWeaklyRelatedTo\r
33     <-- DIA.SymbolReferenceLibrary\r
34     --> DIA.ElementClass\r
35 \r
36 // For symbol library / symbol filter definition.\r
37 DIA.SymbolContributionFilter <T L0.Entity\r
38     L0.HasDescription """A symbol contribution filter is used to check whether a symbol or a symbol contribution should be contributed.\r
39 It must be adaptable to class org.simantics.diagram.symbolcontribution.SymbolContributionFilter."""\r
40 DIA.HasSymbolContributionFilter --> DIA.SymbolContributionFilter <R L0.IsRelatedTo\r
41     L0.HasDescription """Binds a symbol contribution filter to a symbol or a symbol contribution."""\r
42     L0.InverseOf DIA.SymbolContributionFilterOf <R L0.IsRelatedTo\r
43 \r
44 DIA.DenyFilter : DIA.SymbolContributionFilter\r
45 DIA.SCLFilter <T DIA.SymbolContributionFilter\r
46     --> DIA.SCLFilter.filter ==> "Resource -> Resource -> Maybe Resource -> <ReadGraph> Boolean" <R L0.HasProperty : L0.TotalFunction\r
47