]> gerrit.simantics Code Review - simantics/interop.git/blob - org.simantics.interop.mapping/src/org/simantics/interop/mapping/MappingHints.java
refs #3483
[simantics/interop.git] / org.simantics.interop.mapping / src / org / simantics / interop / mapping / MappingHints.java
1 package org.simantics.interop.mapping;\r
2 \r
3 import java.awt.geom.Point2D;\r
4 import java.util.Collection;\r
5 import java.util.Map;\r
6 \r
7 import org.simantics.db.Resource;\r
8 import org.simantics.interop.mapping.data.GraphNode;\r
9 import org.simantics.utils.datastructures.MapList;\r
10 import org.simantics.utils.datastructures.hints.IHintContext.Key;\r
11 import org.simantics.utils.datastructures.hints.IHintContext.KeyOf;\r
12 \r
13 \r
14 public class MappingHints {\r
15 \r
16         // type of symbol to be created.\r
17         public static final Key KEY_GENERATE_TYPE = new KeyOf(Resource.class); \r
18         \r
19         // Module Resolver (symbol  type and terminals)\r
20         public static final Key KEY_RESOLVER = new KeyOf(ModuleResolver.class); \r
21         \r
22         // generated symbol.\r
23         //public static final Key KEY_GENERATED_SYMBOL = new KeyOf(Symbol.class); \r
24         \r
25         public static final Key KEY_GENERATION_RULES = new KeyOf(MapList.class); // Generation Rules <Integer,GenerationRule>\r
26         \r
27         //public static final Key KEY_DIAGRAM = new KeyOf(Diagram.class);             // Diagram where node's symbol(s) are generated.\r
28         public static final Key KEY_PATH_DIAGRAM = new KeyOf(Map.class);             // Diagram where node's symbol(s) by path are generated. <String,Diagram>\r
29         public static final Key KEY_PARENT_NODE = new KeyOf(GraphNode.class); // Parent Node (device) used with automation symbols. <Identifiable>\r
30         public static final Key KEY_CHILD_NODE = new KeyOf(Collection.class); // Child Node (device). <GraphNode<Identifiable>>\r
31         \r
32         public static final Key KEY_CONNECTION_TERMINAL = new KeyOf(Resource.class); // Connection terminal (in Apros symbol) \r
33         \r
34         public static final Key KEY_CONNECTION_TYPE = new KeyOf(String.class); // Connection Type\r
35         public static final Key KEY_CONNECTION_LABEL = new KeyOf(String.class);\r
36         public static final Key KEY_CONNECTION_NOT = new KeyOf(Boolean.class); // Is inverse (Binary signal)\r
37         \r
38         \r
39         public static final Key KEY_FLAG_POSITION = new KeyOf(Point2D.class);\r
40         public static final Key KEY_FLAG_NAME = new KeyOf(String.class);\r
41         \r
42         \r
43         public static final Key KEY_SPLIT_NAME = new KeyOf(String.class);\r
44         public static final Key KEY_SPLIT_COUNT = new KeyOf(Integer.class);\r
45         public static final Key KEY_SPLIT_PERCENTAGE = new KeyOf(Double.class);\r
46         \r
47         \r
48 }\r