|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.nav.fleet.graph.TopologyNodeId
com.kuka.nav.fleet.graph.TopologyNode
public final class TopologyNode
Topology graph node implementation.
| Method Summary | |
|---|---|
String |
getCustomUserData()
Returns the CustomUserData value as a String if exist. |
int |
getMapId()
Returns the id of the map this node is located on. |
com.kuka.nav.Position |
getPosition()
Gets the position of the node. |
PropertyHolder |
getProperties()
Gets the properties of the node. |
com.kuka.nav.provider.util.ObjectMap<String> |
getTags()
Gets the tags of the node. |
TopologyNode |
inGraph(int graphId)
Creates a new topology node identifier based on this one and "connecting" it (logically) to the graph with given id. |
TopologyNode |
inGraph(String graphName)
Creates a new topology node identifier based on this one and "connecting" it (logically) to the graph with given name. |
protected void |
resetOwner()
Removes the current owner. |
void |
setName(String name)
Sets the name of the node. |
protected void |
setOwner(TopologyGraph graph)
Sets the graph containing this node. |
static TopologyNode |
withId(int id)
Creates a new topology node with given ID. |
static TopologyNode |
withName(String name)
Creates a new topology graph node with given name. |
| Methods inherited from class com.kuka.nav.fleet.graph.TopologyNodeId |
|---|
getGraphId, getGraphName, getId, getName, hasGraphName, hasName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static TopologyNode withId(int id)
Note that the object created with this static factory method is only an identifier and does not reflect the state of the corresponding element in the data source, i.e. most of the getters will fail.
A TopologyNode returned by this method can be used to parameterize a
GraphMotion#GraphMotion(TopologyGraph, TopologyNode).
id - the node ID
GraphMotion#GraphMotion(TopologyGraph, TopologyNode)public static TopologyNode withName(String name)
Note that the object created with this static factory method is only an identifier and does not reflect the state of the corresponding element in the data source, i.e. most of the getters will fail.
A TopologyNode returned by this method can be used to parameterize a
GraphMotion#GraphMotion(TopologyGraph, TopologyNode).
name - the name
GraphMotion#GraphMotion(TopologyGraph, TopologyNode)public PropertyHolder getProperties()
TopologyNodeId
getProperties in class TopologyNodeIdpublic com.kuka.nav.provider.util.ObjectMap<String> getTags()
TopologyNodeId
getTags in class TopologyNodeIdpublic int getMapId()
public void setName(String name)
TopologyNodeId
setName in class TopologyNodeIdname - the namepublic com.kuka.nav.Position getPosition()
public String getCustomUserData()
public TopologyNode inGraph(int graphId)
TopologyNodeId
inGraph in class TopologyNodeIdgraphId - the graph ID
public TopologyNode inGraph(String graphName)
TopologyNodeId
inGraph in class TopologyNodeIdgraphName - the graph name
protected void setOwner(TopologyGraph graph)
graph - the graph containing this nodeprotected void resetOwner()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||