Interface RoutedServiceTripInfo

  • All Superinterfaces:
    Cloneable
    All Known Implementing Classes:
    RoutedServiceTripInfoImpl

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

      • clone

        RoutedServiceTripInfo clone()
        Be able to clone a RoutedServicetripInfo instance
        Returns:
        shallow copy
      • 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