Interface Node
- 
- All Superinterfaces:
- Comparable<Vertex>,- Serializable,- Vertex
 - All Known Implementing Classes:
- NodeImpl
 
 public interface Node extends Vertex Node is a vertex but not all vertices are nodes. Nodes represent locations in the physical network where links intersect, usually representing junctions or intersections- Author:
- markr
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.planit.utils.graph.VertexVertex.Edges, Vertex.EdgeSegments
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectgetExternalId()Collect the external id of the nodelonggetNodeId()Collect the id of the node.booleanhasExternalId()Returns whether the node has an external Id setvoidsetExternalId(Object externalId)Set the external id of the node- 
Methods inherited from interface java.lang.ComparablecompareTo
 - 
Methods inherited from interface org.planit.utils.graph.VertexgetCentrePointGeometry, getEdges, getEntryEdgeSegments, getExitEdgeSegments, getId, setCentrePointGeometry
 
- 
 
- 
- 
- 
Method Detail- 
getExternalIdObject getExternalId() Collect the external id of the node- Returns:
- external id
 
 - 
setExternalIdvoid setExternalId(Object externalId) Set the external id of the node- Parameters:
- externalId- the external id to set
 
 - 
hasExternalIdboolean hasExternalId() Returns whether the node has an external Id set- Returns:
- true if the node has an external Id, false otherwise
 
 - 
getNodeIdlong getNodeId() Collect the id of the node. Not all vertices need to be nodes, this node id is contiguous and unique to the nodes in the network, but not necesssarily across all vertices in the network- Returns:
- node id
 
 
- 
 
-