Interface IntersectionPerception
-
- All Superinterfaces:
LaneBasedPerceptionCategory
,PerceptionCategory<LaneBasedGTU,LanePerception>
- All Known Implementing Classes:
DirectIntersectionPerception
public interface IntersectionPerception extends LaneBasedPerceptionCategory
Perception category for traffic lights and conflicts.Copyright (c) 2013-2022 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 14 feb. 2017
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PerceptionCollectable<HeadwayConflict,Conflict>
getConflicts(RelativeLane lane)
Returns a set of conflicts along the route.PerceptionCollectable<HeadwayTrafficLight,TrafficLight>
getTrafficLights(RelativeLane lane)
Returns a set of traffic lights along the route.boolean
isAlongsideConflictLeft()
Returns whether there is a conflict alongside to the left.boolean
isAlongsideConflictRight()
Returns whether there is a conflict alongside to the right.-
Methods inherited from interface org.opentrafficsim.core.gtu.perception.PerceptionCategory
updateAll
-
-
-
-
Method Detail
-
getTrafficLights
PerceptionCollectable<HeadwayTrafficLight,TrafficLight> getTrafficLights(RelativeLane lane)
Returns a set of traffic lights along the route. Traffic lights are sorted by headway value.- Parameters:
lane
- RelativeLane; lane- Returns:
- set of traffic lights along the route
-
getConflicts
PerceptionCollectable<HeadwayConflict,Conflict> getConflicts(RelativeLane lane)
Returns a set of conflicts along the route. Conflicts are sorted by headway value.- Parameters:
lane
- RelativeLane; 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
-
-