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.Vertex
Vertex.Edges, Vertex.EdgeSegments
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
getExternalId()
Collect the external id of the nodelong
getNodeId()
Collect the id of the node.boolean
hasExternalId()
Returns whether the node has an external Id setvoid
setExternalId(Object externalId)
Set the external id of the node-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface org.planit.utils.graph.Vertex
getCentrePointGeometry, getEdges, getEntryEdgeSegments, getExitEdgeSegments, getId, setCentrePointGeometry
-
-
-
-
Method Detail
-
getExternalId
Object getExternalId()
Collect the external id of the node- Returns:
- external id
-
setExternalId
void setExternalId(Object externalId)
Set the external id of the node- Parameters:
externalId
- the external id to set
-
hasExternalId
boolean hasExternalId()
Returns whether the node has an external Id set- Returns:
- true if the node has an external Id, false otherwise
-
getNodeId
long 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
-
-