Package org.goplanit.zoning
Class CentroidImpl
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<IdAble>,DirectedVertex,GraphEntity,Vertex,ExternalIdAble,IdAble,ManagedId,Centroid
public class CentroidImpl extends DirectedVertexImpl implements Centroid
Centroid implementation- Author:
- gman6028, markr
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.goplanit.graph.directed.DirectedVertexImpl
entryEdgeSegments, exitEdgeSegments
-
Fields inherited from class org.goplanit.graph.VertexImpl
edges, inputProperties, position
-
Fields inherited from interface org.goplanit.utils.graph.Vertex
LOGGER, VERTEX_ID_CLASS
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCentroidImpl(IdGroupingToken groupId)ConstructorprotectedCentroidImpl(IdGroupingToken groupId, Zone parentZone)ConstructorprotectedCentroidImpl(CentroidImpl centroidImpl)Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CentroidImplclone()Create a shallow copy of this entityStringgetName()The name of the centroidZonegetParentZone()Return the parent zone of this centroidvoidsetName(String name)Set the name of the centroidprotected voidsetParentzone(Zone parentZone)Set the parent zone-
Methods inherited from class org.goplanit.graph.directed.DirectedVertexImpl
addEdgeSegment, getEntryEdgeSegments, getExitEdgeSegments, removeEdgeSegment, removeEntryEdgeSegment, removeExitEdgeSegment
-
Methods inherited from class org.goplanit.graph.VertexImpl
addEdge, addInputProperty, getEdges, getInputProperty, getPosition, removeEdge, setPosition
-
Methods inherited from class org.goplanit.graph.GraphEntityImpl
generateAndSetId, generateId, recreateManagedIds, toString
-
Methods inherited from class org.goplanit.utils.id.ExternalIdAbleImpl
getExternalId, getXmlId, setExternalId, setXmlId
-
Methods inherited from class org.goplanit.utils.id.IdAbleImpl
equals, generateAndSetId, getId, hashCode, setId
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.goplanit.utils.graph.directed.DirectedVertex
addEdgeSegment, getEdgeSegment, getEntryEdgeSegments, getExitEdgeSegments, hasEntryEdgeSegments, hasExitEdgeSegments, removeEdgeSegment, removeEntryEdgeSegment, removeExitEdgeSegment, replace, replaceEntrySegment, replaceExitSegment, sizeOfEntryEdgeSegments, sizeOfExitEdgeSegments
-
Methods inherited from interface org.goplanit.utils.id.ExternalIdAble
getExternalId, getXmlId, hasExternalId, hasXmlId, setExternalId, setXmlId
-
Methods inherited from interface org.goplanit.utils.id.IdAble
compareTo, getId, idEquals, idHashCode
-
Methods inherited from interface org.goplanit.utils.id.ManagedId
recreateManagedIds, resetChildManagedIdEntities
-
Methods inherited from interface org.goplanit.utils.graph.Vertex
addEdge, addInputProperty, getEdges, getEdges, getIdClass, getInputProperty, getNumberOfEdges, getPosition, hasPosition, isPositionEqual2D, removeEdge, removeEdge, replace, setPosition, transformPosition, validate
-
-
-
-
Constructor Detail
-
CentroidImpl
protected CentroidImpl(IdGroupingToken groupId)
Constructor- Parameters:
groupId- contiguous id generation within this group for instances of this class
-
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
-
clone
public CentroidImpl clone()
Create a shallow copy of this entity
-
getParentZone
public Zone getParentZone()
Return the parent zone of this centroid- Specified by:
getParentZonein interfaceCentroid- Returns:
- parent zone of this centroid
-
getName
public String getName()
The name of the centroid
-
-