Class MacroscopicLinkSegmentsImpl
- java.lang.Object
-
- org.goplanit.utils.wrapper.MapWrapperImpl<Long,V>
-
- org.goplanit.utils.wrapper.LongMapWrapperImpl<E>
-
- org.goplanit.utils.id.ManagedIdEntitiesImpl<MacroscopicLinkSegment>
-
- org.goplanit.network.layer.macroscopic.MacroscopicLinkSegmentsImpl
-
- All Implemented Interfaces:
Cloneable,Iterable<MacroscopicLinkSegment>,GraphEntities<MacroscopicLinkSegment>,ManagedGraphEntities<MacroscopicLinkSegment>,ManagedIdEntities<MacroscopicLinkSegment>,MacroscopicLinkSegments,LongMapWrapper<MacroscopicLinkSegment>,MapWrapper<Long,MacroscopicLinkSegment>
public class MacroscopicLinkSegmentsImpl extends ManagedIdEntitiesImpl<MacroscopicLinkSegment> implements MacroscopicLinkSegments
Link segments container implementation- Author:
- markr
-
-
Field Summary
-
Fields inherited from class org.goplanit.utils.id.ManagedIdEntitiesImpl
managedIdClass
-
-
Constructor Summary
Constructors Constructor Description MacroscopicLinkSegmentsImpl(MacroscopicLinkSegmentsImpl linkSegmentsImpl)Copy constructorMacroscopicLinkSegmentsImpl(IdGroupingToken groupId)ConstructorMacroscopicLinkSegmentsImpl(IdGroupingToken groupId, MacroscopicLinkSegmentFactory linkSegmentFactory)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MacroscopicLinkSegmentsImplclone()Each map wrapper should be cloneable where the contents are references of the original where possible but the underlying map itself is newly createdMacroscopicLinkSegmentFactorygetFactory()Factory to create instance of graph entity (for this container class)-
Methods inherited from class org.goplanit.utils.id.ManagedIdEntitiesImpl
getManagedIdClass, recreateIds, reset, updateIdMapping
-
Methods inherited from class org.goplanit.utils.wrapper.LongMapWrapperImpl
containsKey, get, remove
-
Methods inherited from class org.goplanit.utils.wrapper.MapWrapperImpl
clear, contains, createEmptyInstance, findFirst, get, getKeyByValue, getMap, getValueToKey, isEmpty, iterator, register, remove, setMap, size, toCollection, valuesAsNewSet
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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.network.layer.macroscopic.MacroscopicLinkSegments
getFreeFlowTravelTimeHourPerLinkSegment
-
Methods inherited from interface org.goplanit.utils.id.ManagedIdEntities
containsKey, getManagedIdClass, recreateIds, recreateIds, reset
-
Methods inherited from interface org.goplanit.utils.wrapper.MapWrapper
addAll, clear, contains, findFirst, forEachIn, get, getFirst, getKeyByValue, isEmpty, register, remove, size, toCollection, valuesAsNewSet
-
-
-
-
Constructor Detail
-
MacroscopicLinkSegmentsImpl
public MacroscopicLinkSegmentsImpl(IdGroupingToken groupId)
Constructor- Parameters:
groupId- to use for creating ids for instances
-
MacroscopicLinkSegmentsImpl
public MacroscopicLinkSegmentsImpl(IdGroupingToken groupId, MacroscopicLinkSegmentFactory linkSegmentFactory)
Constructor- Parameters:
groupId- to use for creating ids for instanceslinkSegmentFactory- the factory to use
-
MacroscopicLinkSegmentsImpl
public MacroscopicLinkSegmentsImpl(MacroscopicLinkSegmentsImpl linkSegmentsImpl)
Copy constructor- Parameters:
linkSegmentsImpl- to copy
-
-
Method Detail
-
getFactory
public MacroscopicLinkSegmentFactory getFactory()
Factory to create instance of graph entity (for this container class)- Specified by:
getFactoryin interfaceGraphEntities<MacroscopicLinkSegment>- Specified by:
getFactoryin interfaceMacroscopicLinkSegments- Specified by:
getFactoryin interfaceManagedIdEntities<MacroscopicLinkSegment>- Returns:
- entity factory
-
clone
public MacroscopicLinkSegmentsImpl clone()
Each map wrapper should be cloneable where the contents are references of the original where possible but the underlying map itself is newly created- Specified by:
clonein interfaceGraphEntities<MacroscopicLinkSegment>- Specified by:
clonein interfaceMacroscopicLinkSegments- Specified by:
clonein interfaceManagedGraphEntities<MacroscopicLinkSegment>- Specified by:
clonein interfaceManagedIdEntities<MacroscopicLinkSegment>- Specified by:
clonein interfaceMapWrapper<Long,MacroscopicLinkSegment>- Specified by:
clonein classManagedIdEntitiesImpl<MacroscopicLinkSegment>- Returns:
- copy
-
-