Interface RoutedTripDeparture
-
- All Superinterfaces:
Comparable<IdAble>
,ExternalIdAble
,IdAble
,ManagedId
- All Known Implementing Classes:
RoutedTripDepartureImpl
public interface RoutedTripDeparture extends ExternalIdAble, ManagedId
A representation of a departure within a routed trip- Author:
- markr
-
-
Field Summary
Fields Modifier and Type Field Description static Class<RoutedTripDeparture>
ROUTED_TRIP_DEPARTURE_ID_CLASS
id class for generating ids
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.void
departEarlier(LocalTime departureTimeDecrease)
Depart earlier by the given amountvoid
departLater(LocalTime departureTimeIncrease)
Depart later by the given amountExtendedLocalTime
getDepartureTime()
Departure time of the trip this instance is stored onClass<RoutedTripDeparture>
getIdClass()
Each managed id class is expected to generate its ids based on its class signature.RoutedTripDeparture
shallowClone()
Create a shallow copy of this entity-
Methods inherited from interface org.goplanit.utils.id.ExternalIdAble
appendExternalId, appendExternalId, getExternalId, getIdsAsString, getSplitExternalId, getSplitExternalId, getXmlId, hasExternalId, hasXmlId, setExternalId, setXmlId, setXmlId
-
Methods inherited from interface org.goplanit.utils.id.IdAble
compareTo, getId, idEquals, idHashCode
-
Methods inherited from interface org.goplanit.utils.id.ManagedId
recreateManagedIds, resetChildManagedIdEntities
-
-
-
-
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 interfaceManagedId
- 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
-
shallowClone
RoutedTripDeparture shallowClone()
Create a shallow copy of this entity- Specified by:
shallowClone
in interfaceIdAble
- Returns:
- shallow copy of entity
-
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
-
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
-
-