Interface MacroscopicLinkSegments
-
- All Superinterfaces:
Cloneable,GraphEntities<MacroscopicLinkSegment>,Iterable<MacroscopicLinkSegment>,LongMapWrapper<MacroscopicLinkSegment>,ManagedGraphEntities<MacroscopicLinkSegment>,ManagedIdEntities<MacroscopicLinkSegment>,MapWrapper<Long,MacroscopicLinkSegment>
- All Known Implementing Classes:
MacroscopicLinkSegmentsImpl
public interface MacroscopicLinkSegments extends ManagedGraphEntities<MacroscopicLinkSegment>
Primary managed container for MacroscopicLinkSegments explicitly and create them on the container via its dedicated factory class- Author:
- markr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description MacroscopicLinkSegmentsdeepClone()Force clone implementationMacroscopicLinkSegmentsdeepCloneWithMapping(BiConsumer<MacroscopicLinkSegment,MacroscopicLinkSegment> mapper)Deep clone implementation with mapping retained between original and copies createdMacroscopicLinkSegmentFactorygetFactory()Factory to create instance of graph entity (for this container class)default double[]getFreeFlowTravelTimeHourPerLinkSegment(Mode mode)Create a raw array of all free flow travel times of the registered macroscopic link segments where the index in the array corresponds to the link segment id (not id).MacroscopicLinkSegmentsshallowClone()shallow clone implementation-
Methods inherited from interface org.goplanit.utils.graph.GraphEntities
forEachMatchingIdIn, getByExternalId, getByXmlId
-
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
-
-
-
-
Method Detail
-
getFactory
MacroscopicLinkSegmentFactory getFactory()
Factory to create instance of graph entity (for this container class)- Specified by:
getFactoryin interfaceGraphEntities<MacroscopicLinkSegment>- Specified by:
getFactoryin interfaceManagedIdEntities<MacroscopicLinkSegment>- Returns:
- entity factory
-
shallowClone
MacroscopicLinkSegments shallowClone()
shallow clone implementation- Specified by:
shallowClonein interfaceGraphEntities<MacroscopicLinkSegment>- Specified by:
shallowClonein interfaceManagedGraphEntities<MacroscopicLinkSegment>- Specified by:
shallowClonein interfaceManagedIdEntities<MacroscopicLinkSegment>- Specified by:
shallowClonein interfaceMapWrapper<Long,MacroscopicLinkSegment>- Returns:
- clone of entities
-
deepClone
MacroscopicLinkSegments deepClone()
Force clone implementation- Specified by:
deepClonein interfaceGraphEntities<MacroscopicLinkSegment>- Specified by:
deepClonein interfaceManagedGraphEntities<MacroscopicLinkSegment>- Specified by:
deepClonein interfaceManagedIdEntities<MacroscopicLinkSegment>- Returns:
- clone of entities
-
deepCloneWithMapping
MacroscopicLinkSegments deepCloneWithMapping(BiConsumer<MacroscopicLinkSegment,MacroscopicLinkSegment> mapper)
Deep clone implementation with mapping retained between original and copies created- Specified by:
deepCloneWithMappingin interfaceGraphEntities<MacroscopicLinkSegment>- Specified by:
deepCloneWithMappingin interfaceManagedGraphEntities<MacroscopicLinkSegment>- Specified by:
deepCloneWithMappingin interfaceManagedIdEntities<MacroscopicLinkSegment>- Parameters:
mapper- that is applied to each deep copy entity mapping pair of origin and copy- Returns:
- pair with deep copy of entities and mapping from original entities to deep copies of these entities
-
getFreeFlowTravelTimeHourPerLinkSegment
default double[] getFreeFlowTravelTimeHourPerLinkSegment(Mode mode)
Create a raw array of all free flow travel times of the registered macroscopic link segments where the index in the array corresponds to the link segment id (not id).- Parameters:
mode- to use- Returns:
- free flow travel times for all link segments for the given mode
-
-