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 Edge
originalEdge
original 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 protected
ConjugateVertexImpl(ConjugateVertexImpl conjugateVertexImpl, boolean deepCopy)
Copy constructorprotected
ConjugateVertexImpl(IdGroupingToken groupId, Edge originalEdge)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.Edge
getOriginalEdge()
Collect the original edge this conjugate vertex represents in the conjugate graphorg.locationtech.jts.geom.Point
getPosition()
Position cannot be obtained from conjugate vertexvoid
setPosition(org.locationtech.jts.geom.Point position)
position cannot be set on conjugate vertexConjugateVertexImpl
shallowClone()
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:
getPosition
in interfaceVertex
- Overrides:
getPosition
in 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:
setPosition
in interfaceVertex
- Overrides:
setPosition
in classVertexImpl<ConjugateEdge>
- Parameters:
position
- the center point for a vertex
-
shallowClone
public ConjugateVertexImpl shallowClone()
Create a shallow copy of this entity- Specified by:
shallowClone
in interfaceConjugateVertex
- Specified by:
shallowClone
in interfaceGraphEntity
- Specified by:
shallowClone
in interfaceIdAble
- Specified by:
shallowClone
in interfaceVertex
- Overrides:
shallowClone
in 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:
deepClone
in interfaceConjugateVertex
- Specified by:
deepClone
in interfaceGraphEntity
- Specified by:
deepClone
in interfaceIdAble
- Specified by:
deepClone
in interfaceVertex
- Overrides:
deepClone
in 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:
getOriginalEdge
in interfaceConjugateVertex
- Returns:
- original edge
-
-