public interface IntersectionPerception extends LaneBasedPerceptionCategory
Copyright (c) 2013-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Modifier and Type | Method and Description |
|---|---|
PerceptionCollectable<HeadwayConflict,Conflict> |
getConflicts(RelativeLane lane)
Returns a set of conflicts along the route.
|
Iterable<HeadwayTrafficLight> |
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.
|
default void |
updateAll() |
default void |
updateAlongsideConflictLeft()
Default empty implementation to pass tests.
|
default void |
updateAlongsideConflictRight()
Default empty implementation to pass tests.
|
void |
updateConflicts()
Updates set of conflicts along the route.
|
void |
updateTrafficLights()
Updates set of traffic lights along the route.
|
void updateTrafficLights()
throws org.opentrafficsim.core.gtu.GTUException,
org.opentrafficsim.base.parameters.ParameterException
org.opentrafficsim.core.gtu.GTUException - if the GTU has not been initializedorg.opentrafficsim.base.parameters.ParameterException - if lane structure cannot be made due to missing parametervoid updateConflicts()
throws org.opentrafficsim.core.gtu.GTUException,
org.opentrafficsim.base.parameters.ParameterException
org.opentrafficsim.core.gtu.GTUException - if the GTU has not been initializedorg.opentrafficsim.base.parameters.ParameterException - if lane structure cannot be made due to missing parameterdefault void updateAlongsideConflictLeft()
default void updateAlongsideConflictRight()
Iterable<HeadwayTrafficLight> getTrafficLights(RelativeLane lane)
lane - lanePerceptionCollectable<HeadwayConflict,Conflict> getConflicts(RelativeLane lane)
lane - laneboolean isAlongsideConflictLeft()
boolean isAlongsideConflictRight()
default void updateAll()
throws org.opentrafficsim.core.gtu.GTUException,
org.opentrafficsim.base.parameters.ParameterException
updateAll in interface org.opentrafficsim.core.gtu.perception.PerceptionCategory<LaneBasedGTU,LanePerception>org.opentrafficsim.core.gtu.GTUExceptionorg.opentrafficsim.base.parameters.ParameterExceptionCopyright © 2014–2018 Delft University of Technology. All rights reserved.