Class ServiceLegSegmentImpl
- java.lang.Object
-
- org.goplanit.utils.id.IdAbleImpl
-
- org.goplanit.utils.id.ExternalIdAbleImpl
-
- org.goplanit.graph.GraphEntityImpl
-
- org.goplanit.graph.directed.EdgeSegmentImpl
-
- org.goplanit.network.layer.service.ServiceLegSegmentImpl
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<IdAble>
,EdgeSegment
,GraphEntity
,ExternalIdAble
,IdAble
,ManagedId
,ServiceLegSegment
public class ServiceLegSegmentImpl extends EdgeSegmentImpl implements ServiceLegSegment
A service leg segment implementation.- Author:
- markr
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.goplanit.utils.graph.EdgeSegment
EDGE_SEGMENT_ID_CLASS
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ServiceLegSegmentImpl(ServiceLegSegmentImpl serviceLegSegment)
Copy constructorprotected
ServiceLegSegmentImpl(IdGroupingToken tokenId, ServiceLeg parentLeg, boolean directionAB)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceLeg
getParentLeg()
Return the parent leg of this leg segment-
Methods inherited from class org.goplanit.graph.directed.EdgeSegmentImpl
clone, getDownstreamVertex, getParentEdge, getUpstreamVertex, isDirectionAb, remove, removeParentEdge, setDownstreamVertex, setParent, setUpstreamVertex, 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
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.goplanit.utils.graph.EdgeSegment
clone, getDownstreamVertex, getIdClass, getParentEdge, getParentName, getUpstreamVertex, hasParentName, isDirectionAb, remove, removeParentEdge, replace, setDownstreamVertex, setParent, setUpstreamVertex, validate
-
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
-
-
-
-
Constructor Detail
-
ServiceLegSegmentImpl
protected ServiceLegSegmentImpl(IdGroupingToken tokenId, ServiceLeg parentLeg, boolean directionAB)
Constructor- Parameters:
tokenId
- contiguous id generation within this group for instances of this classparentLeg
- parent leg of segmentdirectionAB
- direction of travel
-
ServiceLegSegmentImpl
protected ServiceLegSegmentImpl(ServiceLegSegmentImpl serviceLegSegment)
Copy constructor- Parameters:
serviceLegSegment
- to copy
-
-
Method Detail
-
getParentLeg
public ServiceLeg getParentLeg()
Return the parent leg of this leg segment- Specified by:
getParentLeg
in interfaceServiceLegSegment
- Returns:
- leg instance which is the parent of this leg segment
-
-