Class RoutedTripScheduleImpl

    • Constructor Detail

      • RoutedTripScheduleImpl

        public RoutedTripScheduleImpl​(IdGroupingToken tokenId)
        Constructor
        Parameters:
        tokenId - to use for id generation
      • RoutedTripScheduleImpl

        public RoutedTripScheduleImpl​(RoutedTripScheduleImpl routedTripScheduleImpl)
        Copy constructor
        Parameters:
        routedTripScheduleImpl - to copy
    • Method Detail

      • resetChildManagedIdEntities

        public void resetChildManagedIdEntities()
        Each class that has a managed id, should be able to reset any children that themselves are managedIdEntity containers. This ensures that when resetting such a container any child containers are also reset
        Specified by:
        resetChildManagedIdEntities in interface ManagedId
      • addRelativeLegSegmentTiming

        public RelativeLegTiming addRelativeLegSegmentTiming​(ServiceLegSegment parentLegSegment,
                                                             LocalTime duration,
                                                             LocalTime dwellTime)
        Add a new leg's timing to the end of the already registered leg timings.
        Specified by:
        addRelativeLegSegmentTiming in interface RoutedTripSchedule
        Parameters:
        parentLegSegment - (directed leg) to add to the trip's route
        duration - duration of the leg segment
        dwellTime - at the destination of the leg segment
        Returns:
        the added timing
      • getRelativeLegTimingsSize

        public int getRelativeLegTimingsSize()
        Collect the number of registered leg timings
        Specified by:
        getRelativeLegTimingsSize in interface RoutedTripSchedule
        Returns:
        number of relative leg timings registered
      • getDefaultDwellTime

        public LocalTime getDefaultDwellTime()
        Get default
        Returns:
        default dwell time
      • setDefaultDwellTime

        public void setDefaultDwellTime​(LocalTime defaultDwellTime)
        Set default
        Parameters:
        defaultDwellTime - to use