Interface ControllerPerceptionCategory
-
- All Superinterfaces:
LaneBasedPerceptionCategory,PerceptionCategory<LaneBasedGTU,LanePerception>
- All Known Implementing Classes:
CaccPerceptionCategory
public interface ControllerPerceptionCategory extends LaneBasedPerceptionCategory
Interface defining what controller perception can deliver. Implementation determine how, i.e. with what noise.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.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 27 sep. 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HeadwayGTUgetFollower(LateralDirectionality lat)Get the follower in an adjacent lane.HeadwayGTUgetLeader(LateralDirectionality lat)Get the leader in an adjacent lane.DownstreamNeighborsIterablegetLeaders(RelativeLane lane)Get the leaders.-
Methods inherited from interface org.opentrafficsim.core.gtu.perception.PerceptionCategory
updateAll
-
-
-
-
Method Detail
-
getLeaders
DownstreamNeighborsIterable getLeaders(RelativeLane lane)
Get the leaders.- Parameters:
lane- RelativeLane; lane- Returns:
- DownstreamNeighborsIterable; leaders
-
getLeader
HeadwayGTU getLeader(LateralDirectionality lat)
Get the leader in an adjacent lane.- Parameters:
lat- LateralDirectionality; lateral direction- Returns:
- leader in adjacent lane
-
getFollower
HeadwayGTU getFollower(LateralDirectionality lat)
Get the follower in an adjacent lane.- Parameters:
lat- LateralDirectionality; lateral direction- Returns:
- follower in adjacent lane
-
-