public class IDMPlus extends AbstractIDM
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
A, B, B0, DELTA, DESIRED_SPEED, FSPEED, HEADWAY, S0, T
CAR_FOLLOWING_MODEL
Constructor and Description |
---|
IDMPlus()
Default constructor using default models for desired headway and desired speed.
|
IDMPlus(DesiredHeadwayModel desiredHeadwayModel,
DesiredSpeedModel desiredSpeedModel)
Constructor with modular models for desired headway and desired speed.
|
Modifier and Type | Method and Description |
---|---|
protected Acceleration |
combineInteractionTerm(Acceleration aFree,
Parameters parameters,
Speed speed,
Speed desiredSpeed,
Length desiredHeadway,
PerceptionIterable<? extends Headway> leaders)
Combines an interaction term with the free term.
|
String |
getLongName()
Return the complete name of the car-following model.
|
String |
getName()
Return the name of the car-following model.
|
dynamicDesiredHeadway, dynamicHeadwayTerm, followingAcceleration
desiredHeadway, desiredSpeed, followingAcceleration, init, toString
public IDMPlus()
public IDMPlus(DesiredHeadwayModel desiredHeadwayModel, DesiredSpeedModel desiredSpeedModel)
desiredHeadwayModel
- DesiredHeadwayModel; desired headway modeldesiredSpeedModel
- DesiredSpeedModel; desired speed modelpublic final String getName()
public final String getLongName()
protected final Acceleration combineInteractionTerm(Acceleration aFree, Parameters parameters, Speed speed, Speed desiredSpeed, Length desiredHeadway, PerceptionIterable<? extends Headway> leaders) throws ParameterException
combineInteractionTerm
in class AbstractIDM
aFree
- Acceleration; Free term of acceleration.parameters
- Parameters; Parameters.speed
- Speed; Current speed.desiredSpeed
- Speed; Desired speed.desiredHeadway
- Length; Desired headway.leaders
- PerceptionIterable<? extends Headway>; Set of leader headways (guaranteed positive) and speeds,
ordered by headway (closest first).ParameterException
- In case of parameter exception.Copyright © 2014–2019 Delft University of Technology. All rights reserved.