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-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 13 mrt. 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LinearDensity
getDensity(RelativeLane lane)
Returns the perceived density on the given lane.Speed
getSpeed(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 org.opentrafficsim.base.parameters.ParameterException
Returns the perceived speed on the given lane.- Parameters:
lane
- RelativeLane; lane- Returns:
- Speed perceived speed on the given lane
- Throws:
org.opentrafficsim.base.parameters.ParameterException
- on parameter exception
-
getDensity
LinearDensity getDensity(RelativeLane lane) throws org.opentrafficsim.base.parameters.ParameterException
Returns the perceived density on the given lane.- Parameters:
lane
- RelativeLane; lane- Returns:
- LinearDensity perceived density on the given lane
- Throws:
org.opentrafficsim.base.parameters.ParameterException
- on parameter exception
-
-