Class GtfsZoningHandlerConnectoidData
- java.lang.Object
-
- org.goplanit.gtfs.converter.zoning.handler.GtfsZoningHandlerConnectoidData
-
public class GtfsZoningHandlerConnectoidData extends Object
Zoning handler data specifically tailored towards connectoids- Author:
- markr
-
-
Constructor Summary
Constructors Constructor Description GtfsZoningHandlerConnectoidData(ServiceNetwork serviceNetwork, Zoning referenceZoning)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addDirectedConnectoidByLocation(MacroscopicNetworkLayer networkLayer, org.locationtech.jts.geom.Point connectoidLocation, DirectedConnectoid connectoid)
Add a connectoid to the registered connectoids indexed by their OSM idMap<org.locationtech.jts.geom.Point,List<DirectedConnectoid>>
getDirectedConnectoidsByLocation(MacroscopicNetworkLayer networkLayer)
collect the registered connectoids indexed by their locations for a given network layer (unmodifiable)List<DirectedConnectoid>
getDirectedConnectoidsByLocation(org.locationtech.jts.geom.Point nodeLocation, MacroscopicNetworkLayer networkLayer)
Collect the registered connectoids by given locations and network layer (unmodifiable)boolean
hasAnyDirectedConnectoidsForLocation(org.locationtech.jts.geom.Point location)
Check if any connectoids have been registered for the given location on any layerboolean
hasDirectedConnectoidForLocation(NetworkLayer networkLayer, org.locationtech.jts.geom.Point point)
Check if any connectoid has been registered for the given location for this layervoid
reset()
Reset the PLANit data tracking containers
-
-
-
Constructor Detail
-
GtfsZoningHandlerConnectoidData
public GtfsZoningHandlerConnectoidData(ServiceNetwork serviceNetwork, Zoning referenceZoning)
Constructor- Parameters:
serviceNetwork
- to usereferenceZoning
- to use
-
-
Method Detail
-
reset
public void reset()
Reset the PLANit data tracking containers
-
getDirectedConnectoidsByLocation
public Map<org.locationtech.jts.geom.Point,List<DirectedConnectoid>> getDirectedConnectoidsByLocation(MacroscopicNetworkLayer networkLayer)
collect the registered connectoids indexed by their locations for a given network layer (unmodifiable)- Parameters:
networkLayer
- to use- Returns:
- registered directed connectoids indexed by location
-
getDirectedConnectoidsByLocation
public List<DirectedConnectoid> getDirectedConnectoidsByLocation(org.locationtech.jts.geom.Point nodeLocation, MacroscopicNetworkLayer networkLayer)
Collect the registered connectoids by given locations and network layer (unmodifiable)- Parameters:
nodeLocation
- to verifynetworkLayer
- to extract from- Returns:
- found connectoids (if any), otherwise null or empty set
-
addDirectedConnectoidByLocation
public boolean addDirectedConnectoidByLocation(MacroscopicNetworkLayer networkLayer, org.locationtech.jts.geom.Point connectoidLocation, DirectedConnectoid connectoid)
Add a connectoid to the registered connectoids indexed by their OSM id- Parameters:
networkLayer
- to register forconnectoidLocation
- this connectoid relates toconnectoid
- to add- Returns:
- true when successful, false otherwise
-
hasAnyDirectedConnectoidsForLocation
public boolean hasAnyDirectedConnectoidsForLocation(org.locationtech.jts.geom.Point location)
Check if any connectoids have been registered for the given location on any layer- Parameters:
location
- to verify- Returns:
- true when present, false otherwise
-
hasDirectedConnectoidForLocation
public boolean hasDirectedConnectoidForLocation(NetworkLayer networkLayer, org.locationtech.jts.geom.Point point)
Check if any connectoid has been registered for the given location for this layer- Parameters:
networkLayer
- to check forpoint
- to use- Returns:
- true when present, false otherwise
-
-