Class ServiceLegSegmentImpl

    • Constructor Detail

      • ServiceLegSegmentImpl

        protected ServiceLegSegmentImpl​(IdGroupingToken tokenId,
                                        ServiceLeg parentLeg,
                                        boolean directionAB)
        Constructor
        Parameters:
        tokenId - contiguous id generation within this group for instances of this class
        parentLeg - parent leg of segment
        directionAB - 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 interface ServiceLegSegment
        Returns:
        leg instance which is the parent of this leg segment