Package org.goplanit.graph
Class ConjugateVertexImpl
- java.lang.Object
-
- org.goplanit.utils.id.IdAbleImpl
-
- org.goplanit.utils.id.ExternalIdAbleImpl
-
- org.goplanit.graph.GraphEntityImpl
-
- org.goplanit.graph.VertexImpl<ConjugateEdge>
-
- org.goplanit.graph.ConjugateVertexImpl
-
- All Implemented Interfaces:
Serializable,Comparable<IdAble>,ConjugateVertex,GraphEntity,Vertex,ExternalIdAble,IdAble,ManagedId
public class ConjugateVertexImpl extends VertexImpl<ConjugateEdge> implements ConjugateVertex
Conjugate vertex representation connected to one or more entry and exit conjugate edges- Author:
- markr
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected EdgeoriginalEdgeoriginal edge this conjugate represents-
Fields inherited from class org.goplanit.graph.VertexImpl
edges, inputProperties, position
-
Fields inherited from interface org.goplanit.utils.graph.ConjugateVertex
CONJUGATE_VERTEX_ID_CLASS
-
Fields inherited from interface org.goplanit.utils.graph.Vertex
VERTEX_ID_CLASS
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedConjugateVertexImpl(ConjugateVertexImpl conjugateVertexImpl, boolean deepCopy)Copy constructorprotectedConjugateVertexImpl(IdGroupingToken groupId, Edge originalEdge)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConjugateVertexImpldeepClone()An id entity should always support a deep copy, i.e., all "owned" members will be deep copied when a clone of this instance is created via this call.EdgegetOriginalEdge()Collect the original edge this conjugate vertex represents in the conjugate graphorg.locationtech.jts.geom.PointgetPosition()Position cannot be obtained from conjugate vertexvoidsetPosition(org.locationtech.jts.geom.Point position)position cannot be set on conjugate vertexConjugateVertexImplshallowClone()Create a shallow copy of this entity-
Methods inherited from class org.goplanit.graph.VertexImpl
addEdge, addInputProperty, getEdges, getInputProperty, removeAllEdges, removeEdge
-
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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.goplanit.utils.graph.ConjugateVertex
getEdges, getEdges, getIdClass
-
Methods inherited from interface org.goplanit.utils.id.ExternalIdAble
appendExternalId, appendExternalId, getExternalId, getIdsAsString, getSplitExternalId, getSplitExternalId, getXmlId, hasExternalId, hasXmlId, setExternalId, setXmlId, 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, addEdges, addInputProperty, getInputProperty, getNumberOfEdges, hasPosition, isPositionEqual2D, isPositionEqual2D, removeAllEdges, removeEdge, removeEdge, removeEdges, replace, transformPosition, validate
-
-
-
-
Field Detail
-
originalEdge
protected final Edge originalEdge
original edge this conjugate represents
-
-
Constructor Detail
-
ConjugateVertexImpl
protected ConjugateVertexImpl(IdGroupingToken groupId, Edge originalEdge)
Constructor- Parameters:
groupId- , contiguous id generation within this group for instances of this classoriginalEdge- representing the conjugate vertex
-
ConjugateVertexImpl
protected ConjugateVertexImpl(ConjugateVertexImpl conjugateVertexImpl, boolean deepCopy)
Copy constructor- Parameters:
conjugateVertexImpl- to copydeepCopy- when true, create a deep copy, shallow copy otherwise
-
-
Method Detail
-
getPosition
public org.locationtech.jts.geom.Point getPosition()
Position cannot be obtained from conjugate vertex- Specified by:
getPositionin interfaceVertex- Overrides:
getPositionin classVertexImpl<ConjugateEdge>- Returns:
- direct position reflecting point location
-
setPosition
public void setPosition(org.locationtech.jts.geom.Point position)
position cannot be set on conjugate vertex- Specified by:
setPositionin interfaceVertex- Overrides:
setPositionin classVertexImpl<ConjugateEdge>- Parameters:
position- the center point for a vertex
-
shallowClone
public ConjugateVertexImpl shallowClone()
Create a shallow copy of this entity- Specified by:
shallowClonein interfaceConjugateVertex- Specified by:
shallowClonein interfaceGraphEntity- Specified by:
shallowClonein interfaceIdAble- Specified by:
shallowClonein interfaceVertex- Overrides:
shallowClonein classVertexImpl<ConjugateEdge>- Returns:
- shallow copy of entity
-
deepClone
public ConjugateVertexImpl deepClone()
An id entity should always support a deep copy, i.e., all "owned" members will be deep copied when a clone of this instance is created via this call. To be used with caution if not called by managed id container related code- Specified by:
deepClonein interfaceConjugateVertex- Specified by:
deepClonein interfaceGraphEntity- Specified by:
deepClonein interfaceIdAble- Specified by:
deepClonein interfaceVertex- Overrides:
deepClonein classVertexImpl<ConjugateEdge>- Returns:
- deep copy of entity
-
getOriginalEdge
public Edge getOriginalEdge()
Collect the original edge this conjugate vertex represents in the conjugate graph- Specified by:
getOriginalEdgein interfaceConjugateVertex- Returns:
- original edge
-
-