Interface TrafficPerception
-
- All Superinterfaces:
LaneBasedPerceptionCategory,PerceptionCategory<LaneBasedGTU,LanePerception>
- All Known Implementing Classes:
AnticipationTrafficPerception
public interface TrafficPerception extends LaneBasedPerceptionCategory
Perception of general traffic ahead.Copyright (c) 2013-2020 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 13 mrt. 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LinearDensitygetDensity(RelativeLane lane)Returns the perceived density on the given lane.SpeedgetSpeed(RelativeLane lane)Returns the perceived speed on the given lane.-
Methods inherited from interface org.opentrafficsim.core.gtu.perception.PerceptionCategory
updateAll
-
-
-
-
Method Detail
-
getSpeed
Speed getSpeed(RelativeLane lane) throws ParameterException
Returns the perceived speed on the given lane.- Parameters:
lane- RelativeLane; lane- Returns:
- Speed perceived speed on the given lane
- Throws:
ParameterException- on parameter exception
-
getDensity
LinearDensity getDensity(RelativeLane lane) throws ParameterException
Returns the perceived density on the given lane.- Parameters:
lane- RelativeLane; lane- Returns:
- LinearDensity perceived density on the given lane
- Throws:
ParameterException- on parameter exception
-
-