public abstract class AbstractIDM extends AbstractCarFollowingModel
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.
Modifier and Type | Field and Description |
---|---|
protected static ParameterTypeAcceleration |
A
Acceleration parameter type.
|
protected static ParameterTypeAcceleration |
B
Comfortable deceleration parameter type.
|
protected static ParameterTypeAcceleration |
B0
Adjustment deceleration parameter type.
|
static ParameterTypeDouble |
DELTA
Acceleration flattening.
|
static DesiredSpeedModel |
DESIRED_SPEED
Default IDM desired speed model.
|
protected static ParameterTypeDouble |
FSPEED
Speed limit adherence factor parameter type.
|
static DesiredHeadwayModel |
HEADWAY
Default IDM desired headway model.
|
protected static ParameterTypeLength |
S0
Stopping distance parameter type.
|
protected static ParameterTypeDuration |
T
Desired headway parameter type.
|
CAR_FOLLOWING_MODEL
Constructor and Description |
---|
AbstractIDM(DesiredHeadwayModel desiredHeadwayModel,
DesiredSpeedModel desiredSpeedModel)
Constructor with modular models for desired headway and desired speed.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Acceleration |
combineInteractionTerm(Acceleration aFree,
Parameters parameters,
Speed speed,
Speed desiredSpeed,
Length desiredHeadway,
PerceptionIterable<? extends Headway> leaders)
Combines an interaction term with the free term.
|
protected Length |
dynamicDesiredHeadway(Parameters parameters,
Speed speed,
Length desiredHeadway,
Speed leaderSpeed)
Determines the dynamic desired headway, which is non-negative.
|
protected Length |
dynamicHeadwayTerm(Parameters parameters,
Speed speed,
Speed leaderSpeed)
Determines the dynamic headway term.
|
protected Acceleration |
followingAcceleration(Parameters parameters,
Speed speed,
Speed desiredSpeed,
Length desiredHeadway,
PerceptionIterable<? extends Headway> leaders)
Determination of car-following acceleration, possibly based on multiple leaders.
|
desiredHeadway, desiredSpeed, followingAcceleration, init, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLongName, getName
protected static final ParameterTypeAcceleration A
protected static final ParameterTypeAcceleration B
protected static final ParameterTypeDuration T
protected static final ParameterTypeLength S0
protected static final ParameterTypeAcceleration B0
protected static final ParameterTypeDouble FSPEED
public static final ParameterTypeDouble DELTA
public static final DesiredHeadwayModel HEADWAY
public static final DesiredSpeedModel DESIRED_SPEED
public AbstractIDM(DesiredHeadwayModel desiredHeadwayModel, DesiredSpeedModel desiredSpeedModel)
desiredHeadwayModel
- DesiredHeadwayModel; desired headway modeldesiredSpeedModel
- DesiredSpeedModel; desired speed modelprotected Acceleration followingAcceleration(Parameters parameters, Speed speed, Speed desiredSpeed, Length desiredHeadway, PerceptionIterable<? extends Headway> leaders) throws ParameterException
followingAcceleration
in class AbstractCarFollowingModel
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
- If parameter exception occurs.protected abstract Acceleration combineInteractionTerm(Acceleration aFree, Parameters parameters, Speed speed, Speed desiredSpeed, Length desiredHeadway, PerceptionIterable<? extends Headway> leaders) throws ParameterException
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.protected final Length dynamicDesiredHeadway(Parameters parameters, Speed speed, Length desiredHeadway, Speed leaderSpeed) throws ParameterException
parameters
- Parameters; Parameters.speed
- Speed; Current speed.desiredHeadway
- Length; Desired headway.leaderSpeed
- Speed; Speed of the leading vehicle.ParameterException
- In case of parameter exception.protected final Length dynamicHeadwayTerm(Parameters parameters, Speed speed, Speed leaderSpeed) throws ParameterException
parameters
- Parameters; Parameters.speed
- Speed; Current speed.leaderSpeed
- Speed; Speed of the leading vehicle.ParameterException
- In case of parameter exception.Copyright © 2014–2019 Delft University of Technology. All rights reserved.