public class AnticipationTrafficPerception extends LaneBasedAbstractPerceptionCategory implements TrafficPerception
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 | Field and Description |
|---|---|
protected static org.opentrafficsim.base.parameters.ParameterTypeLength |
LOOKAHEAD
Look ahead parameter type.
|
MAX_RED_DECELERATION, MAX_YELLOW_DECELERATION| Constructor and Description |
|---|
AnticipationTrafficPerception(LanePerception perception)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.djunits.value.vdouble.scalar.LinearDensity |
getDensity(RelativeLane lane)
Returns the perceived density on the given lane.
|
org.djunits.value.vdouble.scalar.Speed |
getSpeed(RelativeLane lane)
Returns the perceived speed on the given lane.
|
getGtu, getObjectOrNull, getPerception, getTimestampclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitupdateAllprotected static final org.opentrafficsim.base.parameters.ParameterTypeLength LOOKAHEAD
public AnticipationTrafficPerception(LanePerception perception)
perception - LanePerception; perceptionpublic org.djunits.value.vdouble.scalar.Speed getSpeed(RelativeLane lane) throws org.opentrafficsim.base.parameters.ParameterException
getSpeed in interface TrafficPerceptionlane - RelativeLane; laneorg.opentrafficsim.base.parameters.ParameterException - on parameter exceptionpublic org.djunits.value.vdouble.scalar.LinearDensity getDensity(RelativeLane lane)
getDensity in interface TrafficPerceptionlane - RelativeLane; laneCopyright © 2014–2018 Delft University of Technology. All rights reserved.