public abstract class AbstractCarFollowingModel extends Object implements CarFollowingModel
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.
Constructor and Description |
---|
AbstractCarFollowingModel() |
Modifier and Type | Method and Description |
---|---|
protected abstract org.djunits.value.vdouble.scalar.Acceleration |
followingAcceleration(org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics,
org.djunits.value.vdouble.scalar.Speed speed,
org.djunits.value.vdouble.scalar.Speed desiredSpeed,
org.djunits.value.vdouble.scalar.Length desiredHeadway,
SortedMap<org.djunits.value.vdouble.scalar.Length,org.djunits.value.vdouble.scalar.Speed> leaders)
Determination of car-following acceleration, possibly based on multiple leaders.
|
org.djunits.value.vdouble.scalar.Acceleration |
followingAcceleration(org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics,
org.djunits.value.vdouble.scalar.Speed speed,
SpeedLimitInfo speedLimitInfo,
SortedMap<org.djunits.value.vdouble.scalar.Length,org.djunits.value.vdouble.scalar.Speed> leaders)
Forwards the calculation to a similar method with desired speed and desired (equilibrium) headway pre-calculated.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
desiredHeadway, desiredSpeed, getLongName, getName
public final org.djunits.value.vdouble.scalar.Acceleration followingAcceleration(org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics, org.djunits.value.vdouble.scalar.Speed speed, SpeedLimitInfo speedLimitInfo, SortedMap<org.djunits.value.vdouble.scalar.Length,org.djunits.value.vdouble.scalar.Speed> leaders) throws org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
followingAcceleration
in interface CarFollowingModel
behavioralCharacteristics
- behavioral characteristicsspeed
- current speedspeedLimitInfo
- info regarding the desired speed for car-followingleaders
- set of leader headways and speeds, ordered by headway (closest first)org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
- if parameter exception occursNullPointerException
- if any input is nullprotected abstract org.djunits.value.vdouble.scalar.Acceleration followingAcceleration(org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Speed desiredSpeed, org.djunits.value.vdouble.scalar.Length desiredHeadway, SortedMap<org.djunits.value.vdouble.scalar.Length,org.djunits.value.vdouble.scalar.Speed> leaders) throws org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
behavioralCharacteristics
- behavioral characteristicsspeed
- current speeddesiredSpeed
- desired speeddesiredHeadway
- desired headwayleaders
- set of leader headways (guaranteed positive) and speeds, ordered by headway (closest first)org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
- if parameter exception occursCopyright © 2014–2017 Delft University of Technology. All rights reserved.