Interface RoutedServiceTripInfo

  • All Known Implementing Classes:
    RoutedServiceTripInfoImpl

    public interface RoutedServiceTripInfo
    Interface to reflect one or more similar routed service trips by providing information on their route legs and schedule/frequencies.
    Author:
    markr
    • Method Detail

      • getFrequencyBasedTrips

        RoutedTripsFrequency getFrequencyBasedTrips()
        Trips for a service can be frequency or schedule based, or have both. Via this method we collect only the frequency based trips
        Returns:
        frequency based trips of the service
      • getScheduleBasedTrips

        RoutedTripsSchedule getScheduleBasedTrips()
        Trips for a service can be frequency or schedule based, or have both. Via this method we collect only the schedule based trips
        Returns:
        schedule based trips of the service
      • hasFrequencyBasedTrips

        default boolean hasFrequencyBasedTrips()
        Verify if any frequency based trips exists
        Returns:
        true when present, false otherwise
      • hasScheduleBasedTrips

        default boolean hasScheduleBasedTrips()
        Verify if any schedule based trips exists
        Returns:
        True when present, false otherwise
      • reset

        void reset()
        Remove all registered frequency and schedule based trips
      • hasAnyTrips

        default boolean hasAnyTrips()
        Verify if any trips exist as either scheduled or frequency based
        Returns:
        true when present, false otherwise
      • getLegSegmentsStream

        default Stream<ServiceLegSegment> getLegSegmentsStream()
        Provide a stream of all service leg segments touched by this routed service
        Returns:
        service leg segments touched by this routed service