Interface IntersectionPerception

All Superinterfaces:
LaneBasedPerceptionCategory, PerceptionCategory<LaneBasedGtu,LanePerception>
All Known Implementing Classes:
DirectIntersectionPerception, IntersectionPerceptionChannel

public interface IntersectionPerception extends LaneBasedPerceptionCategory
Perception category for traffic lights and conflicts.

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
  • Method Details

    • getTrafficLights

      Returns a set of traffic lights along the route. Traffic lights are sorted by headway value.
      Parameters:
      lane - lane
      Returns:
      set of traffic lights along the route
    • getConflicts

      Returns a set of conflicts along the route. Conflicts are sorted by headway value.
      Parameters:
      lane - lane
      Returns:
      set of conflicts along the route
    • isAlongsideConflictLeft

      boolean isAlongsideConflictLeft()
      Returns whether there is a conflict alongside to the left.
      Returns:
      whether there is a conflict alongside to the left
    • isAlongsideConflictRight

      boolean isAlongsideConflictRight()
      Returns whether there is a conflict alongside to the right.
      Returns:
      whether there is a conflict alongside to the right