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 interfaceVertex.Edgesedges of this vertexstatic interfaceVertex.EdgeSegmentsEdgeSegment container
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.opengis.geometry.DirectPositiongetCentrePointGeometry()Collect the geometry of the point location of this vertexVertex.EdgesgetEdges()Collect the edges of this vertexVertex.EdgeSegmentsgetEntryEdgeSegments()Collect the entry edge segments of this vertexVertex.EdgeSegmentsgetExitEdgeSegments()Collect the exit edge segments of this vertexlonggetId()Return id of this instance.voidsetCentrePointGeometry(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
-
-