1 package org.simantics.interop.mapping;
\r
3 import java.awt.geom.Point2D;
\r
4 import java.util.Collection;
\r
5 import java.util.Map;
\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
14 public class MappingHints {
\r
16 // type of symbol to be created.
\r
17 public static final Key KEY_GENERATE_TYPE = new KeyOf(Resource.class);
\r
19 // Module Resolver (symbol type and terminals)
\r
20 public static final Key KEY_RESOLVER = new KeyOf(ModuleResolver.class);
\r
22 // generated symbol.
\r
23 //public static final Key KEY_GENERATED_SYMBOL = new KeyOf(Symbol.class);
\r
25 public static final Key KEY_GENERATION_RULES = new KeyOf(MapList.class); // Generation Rules <Integer,GenerationRule>
\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
32 public static final Key KEY_CONNECTION_TERMINAL = new KeyOf(Resource.class); // Connection terminal (in Apros symbol)
\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
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
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