package org.simantics.interop.mapping; import java.awt.geom.Point2D; import java.util.Collection; import java.util.Map; import org.simantics.db.Resource; import org.simantics.interop.mapping.data.GraphNode; import org.simantics.utils.datastructures.MapList; import org.simantics.utils.datastructures.hints.IHintContext.Key; import org.simantics.utils.datastructures.hints.IHintContext.KeyOf; public class MappingHints { // type of symbol to be created. public static final Key KEY_GENERATE_TYPE = new KeyOf(Resource.class); // Module Resolver (symbol type and terminals) public static final Key KEY_RESOLVER = new KeyOf(ModuleResolver.class); // generated symbol. //public static final Key KEY_GENERATED_SYMBOL = new KeyOf(Symbol.class); public static final Key KEY_GENERATION_RULES = new KeyOf(MapList.class); // Generation Rules //public static final Key KEY_DIAGRAM = new KeyOf(Diagram.class); // Diagram where node's symbol(s) are generated. public static final Key KEY_PATH_DIAGRAM = new KeyOf(Map.class); // Diagram where node's symbol(s) by path are generated. public static final Key KEY_PARENT_NODE = new KeyOf(GraphNode.class); // Parent Node (device) used with automation symbols. public static final Key KEY_CHILD_NODE = new KeyOf(Collection.class); // Child Node (device). > public static final Key KEY_CONNECTION_TERMINAL = new KeyOf(Resource.class); // Connection terminal (in Apros symbol) public static final Key KEY_CONNECTION_TYPE = new KeyOf(String.class); // Connection Type public static final Key KEY_CONNECTION_LABEL = new KeyOf(String.class); public static final Key KEY_CONNECTION_NOT = new KeyOf(Boolean.class); // Is inverse (Binary signal) public static final Key KEY_FLAG_POSITION = new KeyOf(Point2D.class); public static final Key KEY_FLAG_NAME = new KeyOf(String.class); public static final Key KEY_SPLIT_NAME = new KeyOf(String.class); public static final Key KEY_SPLIT_COUNT = new KeyOf(Integer.class); public static final Key KEY_SPLIT_PERCENTAGE = new KeyOf(Double.class); }