Package org.planit.network.virtual
Class CentroidImpl
- java.lang.Object
-
- org.planit.graph.VertexImpl
-
- org.planit.network.virtual.CentroidImpl
-
- All Implemented Interfaces:
Serializable
,Comparable<Vertex>
,Vertex
,Centroid
public class CentroidImpl extends VertexImpl implements Centroid
Centroid implementation- Author:
- gman6028
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.planit.graph.VertexImpl
VertexImpl.EdgeSegmentsImpl, VertexImpl.EdgesImpl
-
Nested classes/interfaces inherited from interface org.planit.utils.graph.Vertex
Vertex.Edges, Vertex.EdgeSegments
-
-
Field Summary
Fields Modifier and Type Field Description protected Zone
parentZone
the zone this centroid represents-
Fields inherited from class org.planit.graph.VertexImpl
centrePointGeometry, edges, entryEdgeSegments, exitEdgeSegments, id, inputProperties
-
-
Constructor Summary
Constructors Constructor Description CentroidImpl(IdGroupingToken groupId, Zone parentZone)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Zone
getParentZone()
Return the parent zone of this centroid-
Methods inherited from class org.planit.graph.VertexImpl
addInputProperty, compareTo, generateVertexId, getCentrePointGeometry, getEdges, getEntryEdgeSegments, getExitEdgeSegments, getId, getInputProperty, setCentrePointGeometry
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface org.planit.utils.graph.Vertex
getCentrePointGeometry, getEdges, getEntryEdgeSegments, getExitEdgeSegments, getId, setCentrePointGeometry
-
-
-
-
Field Detail
-
parentZone
protected final Zone parentZone
the zone this centroid represents
-
-
Constructor Detail
-
CentroidImpl
public CentroidImpl(IdGroupingToken groupId, Zone parentZone)
Constructor- Parameters:
groupId
- contiguous id generation within this group for instances of this classparentZone
- the parent zone of this Centroid
-
-
Method Detail
-
getParentZone
public Zone getParentZone()
Return the parent zone of this centroid- Specified by:
getParentZone
in interfaceCentroid
- Returns:
- parent zone of this centroid
-
-