Package org.planit.zoning
Class CentroidImpl
- java.lang.Object
-
- org.planit.graph.VertexImpl
-
- org.planit.graph.DirectedVertexImpl
-
- org.planit.zoning.CentroidImpl
-
- All Implemented Interfaces:
Serializable
,Comparable<Idable>
,DirectedVertex
,Vertex
,ExternalIdable
,Idable
,Centroid
public class CentroidImpl extends DirectedVertexImpl implements Centroid
Centroid implementation- Author:
- gman6028
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.planit.graph.DirectedVertexImpl
entryEdgeSegments, exitEdgeSegments
-
Fields inherited from class org.planit.graph.VertexImpl
edges, externalId, id, inputProperties, position
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CentroidImpl(IdGroupingToken groupId, Zone parentZone)
Constructorprotected
CentroidImpl(CentroidImpl centroidImpl)
Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CentroidImpl
clone()
Clone the vertexZone
getParentZone()
Return the parent zone of this centroidprotected void
setParentzone(Zone parentZone)
Set the parent zone-
Methods inherited from class org.planit.graph.DirectedVertexImpl
addEdgeSegment, getEntryEdgeSegments, getExitEdgeSegments, getNumberOfEntryEdgeSegments, getNumberOfExitEdgeSegments, hasEntryEdgeSegments, hasExitEdgeSegments, removeEdgeSegment
-
Methods inherited from class org.planit.graph.VertexImpl
addEdge, addInputProperty, generateVertexId, getEdges, getEdges, getExternalId, getId, getInputProperty, getNumberOfEdges, getPosition, getXmlId, removeEdge, removeEdge, setExternalId, setId, setPosition, setXmlId, validate
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.planit.utils.graph.DirectedVertex
addEdgeSegment, getEdgeSegment, getEntryEdgeSegments, getExitEdgeSegments, getNumberOfEntryEdgeSegments, getNumberOfExitEdgeSegments, hasEntryEdgeSegments, hasExitEdgeSegments, removeEdgeSegment, replace
-
Methods inherited from interface org.planit.utils.id.ExternalIdable
getExternalId, getXmlId, hasExternalId, hasXmlId, setExternalId, setXmlId
-
Methods inherited from interface org.planit.utils.id.Idable
compareTo, getId, idEquals, idHashCode
-
Methods inherited from interface org.planit.utils.graph.Vertex
addEdge, addInputProperty, getEdges, getEdges, getNumberOfEdges, getPosition, removeEdge, removeEdge, replace, setPosition, transformPosition, validate
-
-
-
-
Constructor Detail
-
CentroidImpl
protected 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
-
CentroidImpl
protected CentroidImpl(CentroidImpl centroidImpl)
Copy constructor- Parameters:
centroidImpl
- to copy
-
-
Method Detail
-
setParentzone
protected void setParentzone(Zone parentZone)
Set the parent zone- Parameters:
parentZone
- to set
-
getParentZone
public Zone getParentZone()
Return the parent zone of this centroid- Specified by:
getParentZone
in interfaceCentroid
- Returns:
- parent zone of this centroid
-
clone
public CentroidImpl clone()
Clone the vertex- Specified by:
clone
in interfaceVertex
- Overrides:
clone
in classDirectedVertexImpl
- Returns:
- the cloned vertex
-
-