All Known Implementing Classes:
DefaultCaccSensors, PerceivedGtuType.AnticipationPerceivedGtuType

public interface PerceivedGtuType
Whether a GTU needs to be wrapped, or information should be copied for later and unaltered use.

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
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    Class for neighbors perceived with estimation and anticipation.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final PerceivedGtuType
    Default wrap implementation.
  • Method Summary

    Modifier and Type
    Method
    Description
    default PerceivedGtu
    createPerceivedGtu(LaneBasedGtu perceivingGtu, LaneBasedObject reference, LaneBasedGtu perceivedGtu, org.djunits.value.vdouble.scalar.Length distance, boolean downstream)
    Creates a perceived object from a GTU, downstream or upstream.
  • Field Details

  • Method Details

    • createPerceivedGtu

      default 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.
      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