Class ConjugateLinkSegmentImpl
- java.lang.Object
-
- org.goplanit.utils.id.IdAbleImpl
-
- org.goplanit.utils.id.ExternalIdAbleImpl
-
- org.goplanit.graph.GraphEntityImpl
-
- org.goplanit.graph.directed.EdgeSegmentImpl<ConjugateLink>
-
- org.goplanit.network.layer.physical.ConjugateLinkSegmentImpl
-
- All Implemented Interfaces:
Serializable
,Comparable<IdAble>
,ConjugateEdgeSegment
,EdgeSegment
,GraphEntity
,ExternalIdAble
,IdAble
,ManagedId
,ConjugateLinkSegment
public class ConjugateLinkSegmentImpl extends EdgeSegmentImpl<ConjugateLink> implements ConjugateLinkSegment
Conjugate Link segment object representing conjugate of original network's adjacent link segment pair, i.e. turn- Author:
- markr
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.goplanit.utils.graph.directed.ConjugateEdgeSegment
CONJUGATE_EDGE_SEGMENT_ID_CLASS
-
Fields inherited from interface org.goplanit.utils.network.layer.physical.ConjugateLinkSegment
CONJUGATE_LINK_SEGMENT_ID_CLASS
-
Fields inherited from interface org.goplanit.utils.graph.directed.EdgeSegment
EDGE_SEGMENT_ID_CLASS, getDownstreamVertex, getUpstreamVertex
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ConjugateLinkSegmentImpl(ConjugateLinkSegmentImpl other, boolean deepCopy)
Copy constructorprotected
ConjugateLinkSegmentImpl(IdGroupingToken groupId, boolean directionAB)
Constructorprotected
ConjugateLinkSegmentImpl(IdGroupingToken groupId, ConjugateLink parent, boolean directionAb)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConjugateLinkSegmentImpl
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.ConjugateLinkSegmentImpl
shallowClone()
Create a shallow copy of this entity-
Methods inherited from class org.goplanit.graph.directed.EdgeSegmentImpl
getParent, isDirectionAb, removeParentEdge, setParent, validate, validate
-
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.directed.ConjugateEdgeSegment
getIdClass, getOppositeDirectionSegment
-
Methods inherited from interface org.goplanit.utils.network.layer.physical.ConjugateLinkSegment
getConjugateLinkSegmentIdClass, getDownstreamVertex, getOriginalAdjcentEdgeSegments, getParent, getUpstreamVertex
-
Methods inherited from interface org.goplanit.utils.graph.directed.EdgeSegment
getLengthKm, getParentName, hasGeometry, hasParent, hasParentName, isAdjacent, isDirectionAb, isParentGeometryInSegmentDirection, removeParentEdge, setParent, validate
-
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
-
-
-
-
Constructor Detail
-
ConjugateLinkSegmentImpl
protected ConjugateLinkSegmentImpl(IdGroupingToken groupId, boolean directionAB)
Constructor- Parameters:
groupId
- , contiguous id generation within this group for instances of this classdirectionAB
- direction of travel
-
ConjugateLinkSegmentImpl
protected ConjugateLinkSegmentImpl(IdGroupingToken groupId, ConjugateLink parent, boolean directionAb)
Constructor- Parameters:
groupId
- , contiguous id generation within this group for instances of this classparent
- parent link of segmentdirectionAb
- direction of travel
-
ConjugateLinkSegmentImpl
protected ConjugateLinkSegmentImpl(ConjugateLinkSegmentImpl other, boolean deepCopy)
Copy constructor- Parameters:
other
- to copydeepCopy
- when true, create a deep cpy, shallow copy otherwise
-
-
Method Detail
-
shallowClone
public ConjugateLinkSegmentImpl shallowClone()
Create a shallow copy of this entity- Specified by:
shallowClone
in interfaceConjugateEdgeSegment
- Specified by:
shallowClone
in interfaceConjugateLinkSegment
- Specified by:
shallowClone
in interfaceEdgeSegment
- Specified by:
shallowClone
in interfaceGraphEntity
- Specified by:
shallowClone
in interfaceIdAble
- Overrides:
shallowClone
in classEdgeSegmentImpl<ConjugateLink>
- Returns:
- shallow copy of entity
-
deepClone
public ConjugateLinkSegmentImpl 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 interfaceConjugateEdgeSegment
- Specified by:
deepClone
in interfaceConjugateLinkSegment
- Specified by:
deepClone
in interfaceEdgeSegment
- Specified by:
deepClone
in interfaceGraphEntity
- Specified by:
deepClone
in interfaceIdAble
- Overrides:
deepClone
in classEdgeSegmentImpl<ConjugateLink>
- Returns:
- deep copy of entity
-
-