Class DestinationSensor

    • Constructor Detail

      • DestinationSensor

        public DestinationSensor​(Lane lane,
                                 Length position,
                                 GTUDirectionality gtuDirectionality,
                                 OTSSimulatorInterface simulator)
                          throws NetworkException
        Parameters:
        lane - Lane; the lane that triggers the deletion of the GTU.
        position - Length; the position of the sensor
        gtuDirectionality - GTUDirectionality; GTU directionality
        simulator - OTSSimulatorInterface; the simulator to enable animation.
        Throws:
        NetworkException - when the position on the lane is out of bounds w.r.t. the center line of the lane
      • DestinationSensor

        public DestinationSensor​(Lane lane,
                                 Length position,
                                 Compatible compatible,
                                 OTSSimulatorInterface simulator)
                          throws NetworkException
        Parameters:
        lane - Lane; the lane that triggers the deletion of the GTU.
        position - Length; the position of the sensor
        compatible - Compatible; compatible GTU type and direction
        simulator - OTSSimulatorInterface; the simulator to enable animation.
        Throws:
        NetworkException - when the position on the lane is out of bounds w.r.t. the center line of the lane