|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.nav.fleet.graph.TopologyHelper
public final class TopologyHelper
Helper class for topology graph elements.
| Field Summary | |
|---|---|
static String |
GRAPH_ID
The graph ID property identifier. |
static String |
GRAPH_NAME
The graph name property identifier. |
static String |
ID
The element ID property identifier. |
static String |
MAP_ID
The map ID property identifier. |
static String |
NAME
The element name property identifier. |
static String |
TMP_NODE_EDGES
The temporary node identifier. |
| Method Summary | |
|---|---|
static int |
getGraphId(com.kuka.nav.provider.util.ObjectMap<String> object)
Gets the graph ID entry from an element property map. |
static String |
getGraphName(com.kuka.nav.provider.util.ObjectMap<String> object)
Gets the graph name entry from an element property map or null. |
static int |
getId(com.kuka.nav.provider.util.ObjectMap<String> object)
Gets the ID entry from an element property map. |
static int |
getMapId(com.kuka.nav.provider.util.ObjectMap<String> object)
Gets the map ID entry from an element property map. |
static String |
getName(com.kuka.nav.provider.util.ObjectMap<String> object)
Gets the topology element name entry from an element property map or null. |
static boolean |
hasGraphName(com.kuka.nav.provider.util.ObjectMap<String> object)
Checks if the topology element has a graph name property set. |
static boolean |
hasId(com.kuka.nav.provider.util.ObjectMap<String> object)
Checks if an element property map has an ID entry. |
static boolean |
hasMapId(com.kuka.nav.provider.util.ObjectMap<String> object)
Checks if an element property map has a map id entry. |
static boolean |
hasName(com.kuka.nav.provider.util.ObjectMap<String> object)
Checks if the topology element has a name property set. |
static boolean |
isTmpNode(com.kuka.nav.provider.util.ObjectMap<String> object)
Checks if a node is marked as temporary. |
static void |
setGraphId(com.kuka.nav.provider.util.ObjectMap<String> object,
int graphId)
Sets the graph ID entry in an element property map. |
static void |
setGraphName(com.kuka.nav.provider.util.ObjectMap<String> object,
String graphName)
Sets the graph name entry in an element property map. |
static void |
setId(com.kuka.nav.provider.util.ObjectMap<String> object,
int id)
Sets the element ID entry in an element property map. |
static void |
setMapId(com.kuka.nav.provider.util.ObjectMap<String> object,
int mapId)
Sets the map ID entry in an element property map. |
static void |
setName(com.kuka.nav.provider.util.ObjectMap<String> object,
String name)
Sets the topology element name entry in an element property map. |
static void |
setTmpNode(com.kuka.nav.provider.util.ObjectMap<String> object,
Set<TopologyEdge> edges)
Labels a topology node as temporary. |
static Set<TopologyEdge> |
tryGetEdgesForTmpNode(com.kuka.nav.provider.util.ObjectMap<String> object)
If the corresponding node is a temporary node the edge between whose source and target the temporary node is located is returned. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ID
public static final String MAP_ID
public static final String GRAPH_ID
public static final String GRAPH_NAME
public static final String NAME
public static final String TMP_NODE_EDGES
| Method Detail |
|---|
public static boolean hasId(com.kuka.nav.provider.util.ObjectMap<String> object)
object - the element property map
public static int getId(com.kuka.nav.provider.util.ObjectMap<String> object)
object - the element property map
public static void setId(com.kuka.nav.provider.util.ObjectMap<String> object,
int id)
object - the element property mapid - the element IDpublic static boolean hasMapId(com.kuka.nav.provider.util.ObjectMap<String> object)
object - the element property map
null.public static int getMapId(com.kuka.nav.provider.util.ObjectMap<String> object)
object - the element property map
public static void setMapId(com.kuka.nav.provider.util.ObjectMap<String> object,
int mapId)
object - the element property mapmapId - the map IDpublic static boolean hasName(com.kuka.nav.provider.util.ObjectMap<String> object)
object - the element property map
public static String getName(com.kuka.nav.provider.util.ObjectMap<String> object)
object - the element property map
public static void setName(com.kuka.nav.provider.util.ObjectMap<String> object,
String name)
object - the element property mapname - the namepublic static int getGraphId(com.kuka.nav.provider.util.ObjectMap<String> object)
object - the element property map
public static void setGraphId(com.kuka.nav.provider.util.ObjectMap<String> object,
int graphId)
object - the element property mapgraphId - the graph IDpublic static boolean hasGraphName(com.kuka.nav.provider.util.ObjectMap<String> object)
object - the element property map
public static String getGraphName(com.kuka.nav.provider.util.ObjectMap<String> object)
object - the element property map
public static void setGraphName(com.kuka.nav.provider.util.ObjectMap<String> object,
String graphName)
object - the element property mapgraphName - the graph namepublic static boolean isTmpNode(com.kuka.nav.provider.util.ObjectMap<String> object)
object - the element property map
public static void setTmpNode(com.kuka.nav.provider.util.ObjectMap<String> object,
Set<TopologyEdge> edges)
object - the element property mapedges - the edge to be setpublic static Set<TopologyEdge> tryGetEdgesForTmpNode(com.kuka.nav.provider.util.ObjectMap<String> object)
null is returned.
object - the element property map
null as described above.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||