Class FlankSensor

All Implemented Interfaces:
Serializable, Comparable<SingleSensor>, Locatable, nl.tudelft.simulation.event.EventProducerInterface, Identifiable, Drawable, Compatible, ObjectInterface, LaneBasedObject, Sensor, SingleSensor

public class FlankSensor
extends AbstractSensor
Embedded sensors used by a TrafficLightSensor.

Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Version:
$Revision$, $LastChangedDate$, by $Author$, initial version Feb 28, 2019
Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
See Also:
Serialized Form
  • Constructor Details

    • FlankSensor

      public FlankSensor​(String id, Lane lane, Length longitudinalPosition, RelativePosition.TYPE positionType, DEVSSimulatorInterface.TimeDoubleUnit simulator, TrafficLightSensor parent, Compatible compatible) throws NetworkException
      Construct a new FlankSensor.
      Parameters:
      id - String; the name of the new FlankSensor
      lane - Lane; the lane of the new FlankSensor
      longitudinalPosition - Length; the longitudinal position of the new FlankSensor
      positionType - TYPE; the position on the GTUs that triggers the new FlankSensor
      simulator - DEVSSimulatorInterface.TimeDoubleUnit; the simulator engine
      parent - TrafficLightSensor; the traffic light sensor that deploys this FlankSensor
      compatible - Compatible; object that determines if a GTU is detectable by the new FlankSensor
      Throws:
      NetworkException - when the network is inconsistent
  • Method Details