Package org.planit.utils.graph
Interface Vertex
-
- All Superinterfaces:
Comparable<Vertex>
,Serializable
- All Known Implementing Classes:
CentroidImpl
,NodeImpl
,VertexImpl
public interface Vertex extends Comparable<Vertex>, Serializable
Vertex representation connected to one or more edges- Author:
- markr
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Vertex.Edges
edges of this vertexstatic interface
Vertex.EdgeSegments
EdgeSegment container
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.opengis.geometry.DirectPosition
getCentrePointGeometry()
Collect the geometry of the point location of this vertexVertex.Edges
getEdges()
Collect the edges of this vertexVertex.EdgeSegments
getEntryEdgeSegments()
Collect the entry edge segments of this vertexVertex.EdgeSegments
getExitEdgeSegments()
Collect the exit edge segments of this vertexlong
getId()
Return id of this instance.void
setCentrePointGeometry(org.opengis.geometry.DirectPosition centrePointGeometry)
Set the center point geometry for a vertex-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Method Detail
-
getId
long getId()
Return id of this instance. This id is expected to be generated using the org.planit.utils.misc.IdGenerator- Returns:
- the id
-
getEntryEdgeSegments
Vertex.EdgeSegments getEntryEdgeSegments()
Collect the entry edge segments of this vertex- Returns:
- edgeSegments
-
getExitEdgeSegments
Vertex.EdgeSegments getExitEdgeSegments()
Collect the exit edge segments of this vertex- Returns:
- edgeSegments
-
getEdges
Vertex.Edges getEdges()
Collect the edges of this vertex- Returns:
- edges
-
setCentrePointGeometry
void setCentrePointGeometry(org.opengis.geometry.DirectPosition centrePointGeometry)
Set the center point geometry for a vertex- Parameters:
centrePointGeometry
- the center point for a vertex
-
getCentrePointGeometry
org.opengis.geometry.DirectPosition getCentrePointGeometry()
Collect the geometry of the point location of this vertex- Returns:
- direct position reflecting point location
-
-