java.lang.Object
org.opentrafficsim.road.gtu.perception.categories.neighbors.DefaultCaccSensors
All Implemented Interfaces:
PerceivedGtuType

public class DefaultCaccSensors extends Object implements PerceivedGtuType
Default CACC sensors. This returns all information except desired speed for the first leader and CACC leaders. Remaining leaders are provided null information.

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

Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
  • Constructor Details

    • DefaultCaccSensors

      public DefaultCaccSensors()
      Constructor.
  • Method Details

    • createPerceivedGtu

      public PerceivedGtu createPerceivedGtu(LaneBasedGtu perceivingGtu, LaneBasedObject reference, LaneBasedGtu perceivedGtu, org.djunits.value.vdouble.scalar.Length distance, boolean downstream) throws ParameterException
      Creates a perceived object from a GTU, downstream or upstream. The default implementation figures out from distance whether a parallel GTU should be created.
      Specified by:
      createPerceivedGtu in interface PerceivedGtuType
      Parameters:
      perceivingGtu - perceiving GTU
      reference - reference object to which distance is given (and to which perception errors should apply, e.g. Conflict)
      perceivedGtu - perceived GTU
      distance - distance
      downstream - downstream (or upstream) neighbor
      Returns:
      perception object from a gtu
      Throws:
      ParameterException - on invalid parameter value or missing parameter