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 MacroscopicLinkSegments
deepClone()
Force clone implementationMacroscopicLinkSegments
deepCloneWithMapping(BiConsumer<MacroscopicLinkSegment,MacroscopicLinkSegment> mapper)
Deep clone implementation with mapping retained between original and copies createdMacroscopicLinkSegmentFactory
getFactory()
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).MacroscopicLinkSegments
shallowClone()
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:
getFactory
in interfaceGraphEntities<MacroscopicLinkSegment>
- Specified by:
getFactory
in interfaceManagedIdEntities<MacroscopicLinkSegment>
- Returns:
- entity factory
-
shallowClone
MacroscopicLinkSegments shallowClone()
shallow clone implementation- Specified by:
shallowClone
in interfaceGraphEntities<MacroscopicLinkSegment>
- Specified by:
shallowClone
in interfaceManagedGraphEntities<MacroscopicLinkSegment>
- Specified by:
shallowClone
in interfaceManagedIdEntities<MacroscopicLinkSegment>
- Specified by:
shallowClone
in interfaceMapWrapper<Long,MacroscopicLinkSegment>
- Returns:
- clone of entities
-
deepClone
MacroscopicLinkSegments deepClone()
Force clone implementation- Specified by:
deepClone
in interfaceGraphEntities<MacroscopicLinkSegment>
- Specified by:
deepClone
in interfaceManagedGraphEntities<MacroscopicLinkSegment>
- Specified by:
deepClone
in 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:
deepCloneWithMapping
in interfaceGraphEntities<MacroscopicLinkSegment>
- Specified by:
deepCloneWithMapping
in interfaceManagedGraphEntities<MacroscopicLinkSegment>
- Specified by:
deepCloneWithMapping
in 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
-
-