Class GtfsZoningHandlerConnectoidData


  • public class GtfsZoningHandlerConnectoidData
    extends Object
    Zoning handler data specifically tailored towards connectoids
    Author:
    markr
    • Constructor Detail

      • GtfsZoningHandlerConnectoidData

        public GtfsZoningHandlerConnectoidData​(ServiceNetwork serviceNetwork,
                                               Zoning referenceZoning)
        Constructor
        Parameters:
        serviceNetwork - to use
        referenceZoning - 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 verify
        networkLayer - 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 for
        connectoidLocation - this connectoid relates to
        connectoid - 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 for
        point - to use
        Returns:
        true when present, false otherwise