Package org.goplanit.utils.zoning
Interface Connectoids<T extends Connectoid>
-
- All Superinterfaces:
EventListener,EventListener,Iterable<T>,LongMapWrapper<T>,ManagedIdEntities<T>,MapWrapper<Long,T>,ZoningModifierListener
- All Known Subinterfaces:
DirectedConnectoids,UndirectedConnectoids
- All Known Implementing Classes:
ConnectoidsImpl,DirectedConnectoidsImpl,UndirectedConnectoidsImpl
public interface Connectoids<T extends Connectoid> extends ManagedIdEntities<T>, ZoningModifierListener
Container to register and manager connectoids that define the points of access for zones regarding infrastructure network (layer)- Author:
- markr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<Zone,Set<T>>createIndexByAccessZone()Lay an index across all connectoids based on their access zones, e.g., a reversed index essentiallyConnectoidsdeepClone()Deep clone implementationConnectoids<T>deepCloneWithMapping(BiConsumer<T,T> mapper)Deep clone implementation where the mapping for its internal copies is captured by the provided mapperConnectoidsshallowClone()Shallow clone implementation-
Methods inherited from interface org.goplanit.utils.event.EventListener
getKnownSupportedEventTypes, hasKnownSupportedEventTypes
-
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, getFactory, 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.zoning.modifier.event.ZoningModifierListener
onZoningModifierEvent
-
-
-
-
Method Detail
-
createIndexByAccessZone
Map<Zone,Set<T>> createIndexByAccessZone()
Lay an index across all connectoids based on their access zones, e.g., a reversed index essentially- Returns:
- newly created map of each access zone's its connectoids
-
shallowClone
Connectoids shallowClone()
Shallow clone implementation- Specified by:
shallowClonein interfaceManagedIdEntities<T extends Connectoid>- Specified by:
shallowClonein interfaceMapWrapper<Long,T extends Connectoid>- Returns:
- clone of entities
-
deepClone
Connectoids deepClone()
Deep clone implementation- Specified by:
deepClonein interfaceManagedIdEntities<T extends Connectoid>- Returns:
- deep copy of entities
-
deepCloneWithMapping
Connectoids<T> deepCloneWithMapping(BiConsumer<T,T> mapper)
Deep clone implementation where the mapping for its internal copies is captured by the provided mapper- Specified by:
deepCloneWithMappingin interfaceManagedIdEntities<T extends Connectoid>- Parameters:
mapper- to apply to each mapping between original and copy- Returns:
- copy
-
-