Uses of Interface
org.goplanit.utils.zoning.TransferZone
-
Packages that use TransferZone Package Description org.goplanit.osm.converter.zoning org.goplanit.osm.converter.zoning.handler.helper org.goplanit.osm.util org.goplanit.utils.zoning zoning oriented utility classesorg.goplanit.zoning -
-
Uses of TransferZone in org.goplanit.osm.converter.zoning
Methods in org.goplanit.osm.converter.zoning that return TransferZone Modifier and Type Method Description TransferZone
OsmZoningReaderPlanitData. addTransferZoneByOsmId(de.topobyte.osm4j.core.model.iface.EntityType entityType, long osmEntityId, TransferZone transferZone)
add a incomplete transfer zone to the tracking containerTransferZone
OsmZoningReaderPlanitData. getCompleteTransferZoneByOsmId(de.topobyte.osm4j.core.model.iface.EntityType entityType, long osmEntityId)
Collect the complete transfer zone by entity type and osm idTransferZone
OsmZoningReaderPlanitData. getIncompleteTransferZoneByOsmId(de.topobyte.osm4j.core.model.iface.EntityType entityType, long osmEntityId)
Collect the potentially incomplete transfer zone by entity type and osm idTransferZone
OsmZoningReaderPlanitData. getTransferZoneByOsmId(de.topobyte.osm4j.core.model.iface.EntityType type, long osmId)
Find transfer zone either incomplete or complete by osm isMethods in org.goplanit.osm.converter.zoning that return types with arguments of type TransferZone Modifier and Type Method Description Collection<TransferZone>
OsmZoningReaderPlanitData. getTransferZonesByOsmId(de.topobyte.osm4j.core.model.iface.EntityType entityType)
Collect the transfer zones by entity type, unmodifiableCollection<TransferZone>
OsmZoningReaderPlanitData. getTransferZonesSpatially(org.locationtech.jts.geom.Envelope boundingBox)
Collect the transfer zones by spatial bounding box.Methods in org.goplanit.osm.converter.zoning with parameters of type TransferZone Modifier and Type Method Description void
OsmZoningReaderPlanitData. addConnectoidByTransferZone(TransferZone transferZone, DirectedConnectoid connectoid)
Register a known mapping from transfer zone to connectoidTransferZone
OsmZoningReaderPlanitData. addTransferZoneByOsmId(de.topobyte.osm4j.core.model.iface.EntityType entityType, long osmEntityId, TransferZone transferZone)
add a incomplete transfer zone to the tracking containerCollection<DirectedConnectoid>
OsmZoningReaderPlanitData. getConnectoidsByTransferZone(TransferZone transferZone)
Collect transfer zone's registered connectoidsboolean
OsmZoningReaderPlanitData. hasConnectoids(TransferZone transferZone)
Verify if transfer zone has connectoids present -
Uses of TransferZone in org.goplanit.osm.converter.zoning.handler.helper
Methods in org.goplanit.osm.converter.zoning.handler.helper that return TransferZone Modifier and Type Method Description TransferZone
TransferZoneHelper. createAndRegisterTransferZoneWithConnectoidsAtOsmNode(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, Map<String,String> tags, String defaultOsmMode, TransferZoneType defaultTransferZoneType, PlanitJtsCrsUtils geoUtils)
Method that will attempt to create both a transfer zone and its connectoids at the location of the OSM node.TransferZone
TransferZoneHelper. createAndRegisterTransferZoneWithoutConnectoidsFindAccessModes(de.topobyte.osm4j.core.model.iface.OsmEntity osmEntity, Map<String,String> tags, TransferZoneType transferZoneType, String defaultOsmMode, PlanitJtsCrsUtils geoUtils)
Attempt to create a new transfer zone and register it, do not yet create connectoids for it.TransferZone
TransferZoneHelper. createAndRegisterTransferZoneWithoutConnectoidsSetAccessModes(de.topobyte.osm4j.core.model.iface.OsmEntity osmEntity, Map<String,String> tags, TransferZoneType transferZoneType, Collection<String> eligibleOsmModes, PlanitJtsCrsUtils geoUtils)
Attempt to create a new transfer zone and register it, do not create connectoids for it.Methods in org.goplanit.osm.converter.zoning.handler.helper that return types with arguments of type TransferZone Modifier and Type Method Description Set<TransferZone>
TransferZoneHelper. filterModeCompatibleTransferZones(Collection<String> eligibleOsmModes, Collection<TransferZone> potentialTransferZones, boolean allowPseudoModeMatches)
Find all transfer zones with at least one compatible mode (and PLANit mode mapped) based on the passed in reference osm modes In case no eligible modes are provided (null), we allow any transfer zone with at least one valid mapped modeCollection<TransferZone>
TransferZoneHelper. findTransferZonesForStopPosition(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, Map<String,String> tags, Collection<String> eligibleOsmModes)
Identical to the one with transfer zone group parameter, only here no stop_position is not part of transfer zone group and therefore we only can find matches spatiallyCollection<TransferZone>
TransferZoneHelper. findTransferZonesForStopPosition(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, Map<String,String> tags, Collection<String> eligibleOsmModes, TransferZoneGroup transferZoneGroup)
Find the transfer zone(s) for a given stop_position, either the user overwritten mapping, or conditioned on mode,reference/name/spatially, or just the closest one in absence of eligible modes.Methods in org.goplanit.osm.converter.zoning.handler.helper with parameters of type TransferZone Modifier and Type Method Description Collection<DirectedConnectoid>
ConnectoidHelper. createAndRegisterDirectedConnectoidsOnTopOfTransferZone(TransferZone transferZone, MacroscopicNetworkLayer networkLayer, Mode planitMode, PlanitJtsCrsUtils geoUtils)
Create directed connectoids for transfer zones that reside on osw ways.boolean
ConnectoidHelper. extractDirectedConnectoidsForMode(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, TransferZone transferZone, Mode planitMode, PlanitJtsCrsUtils geoUtils)
create and/or update directed connectoids for the given mode and layer based on the passed in osm node (location) where the connectoids access link segments are extracted for.boolean
ConnectoidHelper. extractDirectedConnectoidsForMode(org.locationtech.jts.geom.Point location, TransferZone transferZone, Mode planitMode, Collection<Link> eligibleAccessLinks, PlanitJtsCrsUtils geoUtils)
create and/or update directed connectoids for the given mode and layer based on the passed in location where the connectoids access link segments are extracted for.void
ConnectoidHelper. extractDirectedConnectoidsForStandAloneTransferZoneByPlanitLink(long osmWaitingAreaId, org.locationtech.jts.geom.Geometry waitingAreaGeometry, Link accessLink, TransferZone transferZone, Mode accessMode, double maxAllowedStopToTransferZoneDistanceMeters, MacroscopicNetworkLayer networkLayer)
create connectoids not based on osm node location but based on auto-generated geographic location on the provided link's link segments by finding either a close enough existing coordinate (osm node), or if not close enough a newly created coordinate at the appropriate position.org.locationtech.jts.geom.Point
ConnectoidHelper. findConnectoidLocationForstandAloneTransferZoneOnLink(TransferZone transferZone, Link accessLink, Mode accessMode, double maxAllowedStopToTransferZoneDistanceMeters, MacroscopicNetworkLayer networkLayer)
find a suitable connectoid location on the given link based on the constraints that it must be able to reside on a linksegment that is in the correct relative position to the transfer zone and supports the access mode on at least one of the designated link segment(s) that is eligible (if any).Method parameters in org.goplanit.osm.converter.zoning.handler.helper with type arguments of type TransferZone Modifier and Type Method Description boolean
ConnectoidHelper. extractDirectedConnectoids(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, Map<String,String> tags, Collection<TransferZone> transferZones, Collection<Mode> planitModes, TransferZoneGroup transferZoneGroup)
create and/or update directed connectoids for the transfer zones and mode combinations when eligible, based on the passed in OSM node where the connectoids access link segments are extracted from -
Uses of TransferZone in org.goplanit.osm.util
Methods in org.goplanit.osm.util that return TransferZone Modifier and Type Method Description static TransferZone
PlanitTransferZoneUtils. findTransferZoneClosestByTransferGroup(de.topobyte.osm4j.core.model.iface.OsmEntity osmEntity, Collection<? extends TransferZoneGroup> transferZoneGroups, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes, PlanitJtsCrsUtils geoUtils)
Find the zone (within any of the transfer zone groups) closest to the passed in OSM EntityMethods in org.goplanit.osm.util with parameters of type TransferZone Modifier and Type Method Description static org.locationtech.jts.linearref.LinearLocation
PlanitTransferZoneUtils. extractClosestProjectedLinearLocationOnEdgeForTransferZone(TransferZone transferZone, Edge accessEdge, PlanitJtsCrsUtils geoUtils)
Find the linear location reflecting the closest projected location between the transfer zone and link geometries.static de.topobyte.osm4j.core.model.iface.EntityType
PlanitTransferZoneUtils. extractOsmEntityType(TransferZone transferZone)
Extract the OSM entity type from a PLANit Transfer zonestatic Collection<String>
PlanitTransferZoneUtils. getRegisteredOsmModesForTransferZone(TransferZone transferZone)
Collect any prior registered eligible OSM modes on a PLANit transfer zone (unmodifiable)static String
PlanitTransferZoneUtils. getTransferZoneStationName(TransferZone transferZone)
Collect the station name for a transfer zone (if any)static Collection<EdgeSegment>
PlanitTransferZoneUtils. identifyInvalidTransferZoneAccessLinkSegmentsBasedOnRelativeLocationToInfrastructure(Collection<EdgeSegment> accessLinkSegments, TransferZone transferZone, Mode planitMode, boolean leftHandDrive, PlanitJtsCrsUtils geoUtils)
Find the access link segments ineligible given the intended location of the to be created connectoid, the transfer zone provided, and the access mode.static boolean
PlanitTransferZoneUtils. isTransferZoneAtLocation(TransferZone transferZone, org.locationtech.jts.geom.Point location)
Verify if the geometry of the transfer zone equates to the provided locationstatic boolean
PlanitTransferZoneUtils. isTransferZoneLeftOf(TransferZone transferZone, org.locationtech.jts.geom.Coordinate coordA, org.locationtech.jts.geom.Coordinate coordB, PlanitJtsCrsUtils geoUtils)
Verify of the transfer zone resides left of the line coordA to coordBstatic void
PlanitTransferZoneUtils. registerOsmModesOnTransferZone(TransferZone transferZone, Collection<String> eligibleOsmModes)
While PLANit does not require access modes on transfer zones because it is handled by connectoids, OSM stop_positions (connectoids) might lack the required tagging to identify their mode access in which case we revert to the related transfer zone to deduce it.static void
PlanitTransferZoneUtils. updateTransferZoneStationName(TransferZone transferZone, Map<String,String> tags)
process an osm entity that is classified as a (train) station. -
Uses of TransferZone in org.goplanit.utils.zoning
Fields in org.goplanit.utils.zoning with type parameters of type TransferZone Modifier and Type Field Description static Class<TransferZone>
TransferZone. TRANSFER_ZONE_ID_CLASS
the class to use for the id generationMethods in org.goplanit.utils.zoning that return TransferZone Modifier and Type Method Description TransferZone
TransferZoneGroup. addTransferZone(TransferZone transferZone)
Add a transferZone and also register this group on this transfer zone at the same timeTransferZone
TransferZone. clone()
Create a shallow copy of this entityTransferZone
TransferZoneFactory. createNew()
Create a new transfer zone without registeringdefault TransferZone
TransferZoneGroup. getFirst()
Collect first transfer zone that would be returned by the iteratorTransferZone
TransferZoneFactory. registerNew()
Create and register new transfer zoneTransferZone
TransferZoneGroup. removeTransferZone(TransferZone transferZone)
remove a transfer zone from the group, and also remove the reference on the transfer zone at the same timeMethods in org.goplanit.utils.zoning that return types with arguments of type TransferZone Modifier and Type Method Description default Class<TransferZone>
TransferZone. getTransferZoneIdClass()
Collection<TransferZone>
TransferZoneGroup. getTransferZones()
create a view of the registered transfer zones.Methods in org.goplanit.utils.zoning with parameters of type TransferZone Modifier and Type Method Description default void
Connectoid. addAllowedModes(TransferZone transferZone, Set<Mode> allowedModes)
Add allowed modes.TransferZone
TransferZoneGroup. addTransferZone(TransferZone transferZone)
Add a transferZone and also register this group on this transfer zone at the same timeboolean
TransferZoneGroup. hasTransferZone(TransferZone transferZone)
Verify if transfer zone is presentTransferZone
TransferZoneGroup. removeTransferZone(TransferZone transferZone)
remove a transfer zone from the group, and also remove the reference on the transfer zone at the same time -
Uses of TransferZone in org.goplanit.zoning
Classes in org.goplanit.zoning that implement TransferZone Modifier and Type Class Description class
TransferZoneImpl
A transfer zoneFields in org.goplanit.zoning with type parameters of type TransferZone Modifier and Type Field Description protected Map<Long,TransferZone>
TransferZoneGroupImpl. transferZoneMap
Map storing all the transfer zones in the groupMethods in org.goplanit.zoning that return TransferZone Modifier and Type Method Description TransferZone
TransferZoneGroupImpl. addTransferZone(TransferZone transferZone)
Add a transferZone and also register this group on this transfer zone at the same timeTransferZone
TransferZoneFactoryImpl. createNew()
Create a new transfer zone without registeringTransferZone
TransferZoneFactoryImpl. registerNew()
Create and register new transfer zoneTransferZone
TransferZoneGroupImpl. removeTransferZone(TransferZone transferZone)
remove a transfer zone from the group, and also remove the reference on the transfer zone at the same timeMethods in org.goplanit.zoning that return types with arguments of type TransferZone Modifier and Type Method Description Collection<TransferZone>
TransferZoneGroupImpl. getTransferZones()
create a view of the registered transfer zones.Iterator<TransferZone>
TransferZoneGroupImpl. iterator()
Methods in org.goplanit.zoning with parameters of type TransferZone Modifier and Type Method Description TransferZone
TransferZoneGroupImpl. addTransferZone(TransferZone transferZone)
Add a transferZone and also register this group on this transfer zone at the same timeboolean
TransferZoneGroupImpl. hasTransferZone(TransferZone transferZone)
Verify if transfer zone is presentTransferZone
TransferZoneGroupImpl. removeTransferZone(TransferZone transferZone)
remove a transfer zone from the group, and also remove the reference on the transfer zone at the same time
-