Interface RoutedTripDeparture

    • Field Detail

      • ROUTED_TRIP_DEPARTURE_ID_CLASS

        static final Class<RoutedTripDeparture> ROUTED_TRIP_DEPARTURE_ID_CLASS
        id class for generating ids
    • Method Detail

      • getIdClass

        Class<RoutedTripDeparture> getIdClass()
        Each managed id class is expected to generate its ids based on its class signature. To be able to generate the correct id the class used for id generation is to be provided via this method call.
        Specified by:
        getIdClass in interface ManagedId
        Returns:
        idClass to use for generating ids for instances of this idable derived class
      • getDepartureTime

        ExtendedLocalTime getDepartureTime()
        Departure time of the trip this instance is stored on
        Returns:
        departure time
      • deepClone

        RoutedTripDeparture deepClone()
        An id entity should always support a deep copy, i.e., all "owned" members will be deep copied when a clone of this instance is created via this call. To be used with caution if not called by managed id container related code
        Specified by:
        deepClone in interface IdAble
        Returns:
        deep copy of entity
      • departLater

        void departLater​(LocalTime departureTimeIncrease)
        Depart later by the given amount
        Parameters:
        departureTimeIncrease - to apply
      • departEarlier

        void departEarlier​(LocalTime departureTimeDecrease)
        Depart earlier by the given amount
        Parameters:
        departureTimeDecrease - to apply