Interface RoutedTripsSchedule
-
- All Superinterfaces:
Iterable<RoutedTripSchedule>
,LongMapWrapper<RoutedTripSchedule>
,ManagedIdEntities<RoutedTripSchedule>
,MapWrapper<Long,RoutedTripSchedule>
,RoutedTrips<RoutedTripSchedule>
- All Known Implementing Classes:
RoutedTripsScheduleImpl
public interface RoutedTripsSchedule extends RoutedTrips<RoutedTripSchedule>
Interface for wrapper container class around RoutedTrip instances that define an explicit schedule.- Author:
- markr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RoutedTripsSchedule
deepClone()
Deep clone implementationRoutedTripsSchedule
deepCloneWithMapping(BiConsumer<RoutedTripSchedule,RoutedTripSchedule> mapper)
Deep clone implementation where the mapping for its internal copies is captured by the provided mapperRoutedTripScheduleFactory
getFactory()
Factory to create instance of managed id entity (for this container class)default Map<List<LinkSegment>,List<RoutedTripSchedule>>
groupByPhysicalLinkSegments()
Group the individual schedules by (unique combination of) physical link segmentsdefault Map<List<RelativeLegTiming>,List<RoutedTripSchedule>>
groupByRelativeLegTimings()
Group the individual schedules by (unique combination of) relative leg timingsdefault Map<List<ServiceLegSegment>,List<RoutedTripSchedule>>
groupByServiceLegSegments()
Group the individual schedules by (unique combination of) leg segmentsRoutedTripsSchedule
shallowClone()
Shallow clone implementation-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Methods inherited from interface org.goplanit.utils.wrapper.LongMapWrapper
get, remove
-
Methods inherited from interface org.goplanit.utils.id.ManagedIdEntities
containsKey, getManagedIdClass, groupBy, recreateIds, recreateIds, reset, streamSortedBy
-
Methods inherited from interface org.goplanit.utils.wrapper.MapWrapper
addAll, clear, containsValue, firstMatch, forEachIn, get, getFirst, getKeyByValue, isEmpty, register, remove, removeAll, removeIf, size, stream, streamSorted, toCollection, toMap, valuesAsNewSet
-
Methods inherited from interface org.goplanit.utils.service.routed.RoutedTrips
determineUsedServiceNodes
-
-
-
-
Method Detail
-
getFactory
RoutedTripScheduleFactory getFactory()
Factory to create instance of managed id entity (for this container class)- Specified by:
getFactory
in interfaceManagedIdEntities<RoutedTripSchedule>
- Specified by:
getFactory
in interfaceRoutedTrips<RoutedTripSchedule>
- Returns:
- entity factory
-
groupByServiceLegSegments
default Map<List<ServiceLegSegment>,List<RoutedTripSchedule>> groupByServiceLegSegments()
Group the individual schedules by (unique combination of) leg segments- Returns:
- grouped by result
-
groupByPhysicalLinkSegments
default Map<List<LinkSegment>,List<RoutedTripSchedule>> groupByPhysicalLinkSegments()
Group the individual schedules by (unique combination of) physical link segments- Returns:
- grouped by result
-
groupByRelativeLegTimings
default Map<List<RelativeLegTiming>,List<RoutedTripSchedule>> groupByRelativeLegTimings()
Group the individual schedules by (unique combination of) relative leg timings- Returns:
- grouped by result
-
shallowClone
RoutedTripsSchedule shallowClone()
Shallow clone implementation- Specified by:
shallowClone
in interfaceManagedIdEntities<RoutedTripSchedule>
- Specified by:
shallowClone
in interfaceMapWrapper<Long,RoutedTripSchedule>
- Specified by:
shallowClone
in interfaceRoutedTrips<RoutedTripSchedule>
- Returns:
- clone of entities
-
deepClone
RoutedTripsSchedule deepClone()
Deep clone implementation- Specified by:
deepClone
in interfaceManagedIdEntities<RoutedTripSchedule>
- Specified by:
deepClone
in interfaceRoutedTrips<RoutedTripSchedule>
- Returns:
- deep copy of entities
-
deepCloneWithMapping
RoutedTripsSchedule deepCloneWithMapping(BiConsumer<RoutedTripSchedule,RoutedTripSchedule> mapper)
Deep clone implementation where the mapping for its internal copies is captured by the provided mapper- Specified by:
deepCloneWithMapping
in interfaceManagedIdEntities<RoutedTripSchedule>
- Specified by:
deepCloneWithMapping
in interfaceRoutedTrips<RoutedTripSchedule>
- Parameters:
mapper
- to apply to each mapping between original and copy- Returns:
- copy
-
-