com.kuka.nav.fleet.graph
Class TopologyNodeId

java.lang.Object
  extended by com.kuka.nav.fleet.graph.TopologyNodeId
Direct Known Subclasses:
TopologyNode

public abstract class TopologyNodeId
extends Object

Identifier for a TopologyNode. Contains the node id (or the node name) and potentially the id (or name) of the corresponding graph.


Constructor Summary
protected TopologyNodeId(int nodeId)
           
 
Method Summary
 int getGraphId()
          Gets the graph ID.
 String getGraphName()
          Gets the name of the associated graph.
 int getId()
          Gets the node ID.
 String getName()
          Gets the name of the node.
protected  PropertyHolder getProperties()
          Gets the properties of the node.
protected  com.kuka.nav.provider.util.ObjectMap<String> getTags()
          Gets the tags of the node.
 boolean hasGraphName()
          Checks if the node has a graph name set.
 boolean hasName()
          Checks if the node has a name set.
 TopologyNodeId inGraph(int graphId)
          Creates a new topology node identifier based on this one and "connecting" it (logically) to the graph with given id.
 TopologyNodeId 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 setName(String name)
          Sets the name of the node.
 String toString()
           
static TopologyNodeId withId(int id)
          Creates a new topology node identifier with given ID.
static TopologyNodeId withName(String name)
          Creates a new topology node identifier with given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TopologyNodeId

protected TopologyNodeId(int nodeId)
Method Detail

withId

public static TopologyNodeId withId(int id)
Creates a new topology node identifier with given ID.

Parameters:
id - the node ID
Returns:
the node identifier

withName

public static TopologyNodeId withName(String name)
Creates a new topology node identifier with given name.

Parameters:
name - the node name
Returns:
the node identifier

getId

public int getId()
Gets the node ID.

Returns:
the node ID

hasName

public boolean hasName()
Checks if the node has a name set.

Returns:
true, if successful

getName

public String getName()
Gets the name of the node.

Returns:
the name

getGraphId

public int getGraphId()
Gets the graph ID.

Returns:
the graph ID

hasGraphName

public boolean hasGraphName()
Checks if the node has a graph name set.

Returns:
true, if successful
See Also:
getGraphName()

getGraphName

public String getGraphName()
Gets the name of the associated graph.

Returns:
the name of the graph
See Also:
hasGraphName()

inGraph

public TopologyNodeId inGraph(int graphId)
Creates a new topology node identifier based on this one and "connecting" it (logically) to the graph with given id.

Parameters:
graphId - the graph ID
Returns:
the new node identifier

inGraph

public TopologyNodeId inGraph(String graphName)
Creates a new topology node identifier based on this one and "connecting" it (logically) to the graph with given name.

Parameters:
graphName - the graph name
Returns:
the new node identifier

toString

public String toString()
Overrides:
toString in class Object

getProperties

protected PropertyHolder getProperties()
Gets the properties of the node.

Returns:
the properties

getTags

protected com.kuka.nav.provider.util.ObjectMap<String> getTags()
Gets the tags of the node.

Returns:
the tags

setName

protected void setName(String name)
Sets the name of the node.

Parameters:
name - the name


Copyright © 2019. All rights reserved.