Package org.goplanit.network.virtual
Class ConjugateConnectoidSegmentImpl
- java.lang.Object
-
- org.goplanit.utils.id.IdAbleImpl
-
- org.goplanit.utils.id.ExternalIdAbleImpl
-
- org.goplanit.graph.GraphEntityImpl
-
- org.goplanit.graph.directed.EdgeSegmentImpl<ConjugateConnectoidEdge>
-
- org.goplanit.network.virtual.ConjugateConnectoidSegmentImpl
-
- All Implemented Interfaces:
Serializable,Comparable<IdAble>,ConjugateEdgeSegment,EdgeSegment,GraphEntity,ExternalIdAble,IdAble,ManagedId,ConjugateConnectoidSegment,PcuCapacitated
public class ConjugateConnectoidSegmentImpl extends EdgeSegmentImpl<ConjugateConnectoidEdge> implements ConjugateConnectoidSegment
Conjugate connectoid segment object representing conjugate of original network's adjacent connectoid segment pair, i.e. turn from or to a centroid with one of the original links being null- 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.graph.directed.EdgeSegment
EDGE_SEGMENT_ID_CLASS, getDownstreamVertex, getUpstreamVertex
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedConjugateConnectoidSegmentImpl(ConjugateConnectoidSegmentImpl other, boolean deepCopy)Copy constructorprotectedConjugateConnectoidSegmentImpl(IdGroupingToken groupId, ConjugateConnectoidEdge parent, boolean directionAb)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConjugateConnectoidSegmentImpldeepClone()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.ConjugateConnectoidSegmentImplshallowClone()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.network.virtual.ConjugateConnectoidSegment
getCapacityOrDefaultPcuH, getCapacityOrDefaultPcuHLane, getDownstreamVertex, getOriginalAdjcentEdgeSegments, getParent, getUpstreamVertex
-
Methods inherited from interface org.goplanit.utils.graph.directed.ConjugateEdgeSegment
getIdClass, getOppositeDirectionSegment
-
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
-
ConjugateConnectoidSegmentImpl
protected ConjugateConnectoidSegmentImpl(IdGroupingToken groupId, ConjugateConnectoidEdge parent, boolean directionAb)
Constructor- Parameters:
groupId- , contiguous id generation within this group for instances of this classparent- parent conjugate connectoid edge of segmentdirectionAb- direction of travel
-
ConjugateConnectoidSegmentImpl
protected ConjugateConnectoidSegmentImpl(ConjugateConnectoidSegmentImpl other, boolean deepCopy)
Copy constructor- Parameters:
other- to copydeepCopy- when true, create a deep copy, shallow copy otherwise
-
-
Method Detail
-
shallowClone
public ConjugateConnectoidSegmentImpl shallowClone()
Create a shallow copy of this entity- Specified by:
shallowClonein interfaceConjugateConnectoidSegment- Specified by:
shallowClonein interfaceConjugateEdgeSegment- Specified by:
shallowClonein interfaceEdgeSegment- Specified by:
shallowClonein interfaceGraphEntity- Specified by:
shallowClonein interfaceIdAble- Overrides:
shallowClonein classEdgeSegmentImpl<ConjugateConnectoidEdge>- Returns:
- shallow copy of entity
-
deepClone
public ConjugateConnectoidSegmentImpl 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 interfaceConjugateConnectoidSegment- Specified by:
deepClonein interfaceConjugateEdgeSegment- Specified by:
deepClonein interfaceEdgeSegment- Specified by:
deepClonein interfaceGraphEntity- Specified by:
deepClonein interfaceIdAble- Overrides:
deepClonein classEdgeSegmentImpl<ConjugateConnectoidEdge>- Returns:
- deep copy of entity
-
-