Class IDMPlusMulti
- java.lang.Object
-
- org.opentrafficsim.road.gtu.lane.tactical.following.AbstractCarFollowingModel
-
- org.opentrafficsim.road.gtu.lane.tactical.following.AbstractIDM
-
- org.opentrafficsim.road.gtu.lane.tactical.following.IDMPlusMulti
-
- All Implemented Interfaces:
CarFollowingModel
,DesiredHeadwayModel
,DesiredSpeedModel
,Initialisable
public class IDMPlusMulti extends AbstractIDM
Copyright (c) 2013-2020 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 Apr 22, 2016
- Author:
- Wouter Schakel
-
-
Field Summary
Fields Modifier and Type Field Description static ParameterTypeInteger
NLEADERS
Number of leaders considered parameter.-
Fields inherited from class org.opentrafficsim.road.gtu.lane.tactical.following.AbstractIDM
A, B, B0, DELTA, DESIRED_SPEED, FSPEED, HEADWAY, S0, T
-
Fields inherited from interface org.opentrafficsim.road.gtu.lane.tactical.following.CarFollowingModel
CAR_FOLLOWING_MODEL
-
-
Constructor Summary
Constructors Constructor Description IDMPlusMulti()
Default constructor using default models for desired headway and desired speed.IDMPlusMulti(DesiredHeadwayModel desiredHeadwayModel, DesiredSpeedModel desiredSpeedModel)
Constructor with modular models for desired headway and desired speed.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class org.opentrafficsim.road.gtu.lane.tactical.following.AbstractIDM
dynamicDesiredHeadway, dynamicHeadwayTerm, followingAcceleration
-
Methods inherited from class org.opentrafficsim.road.gtu.lane.tactical.following.AbstractCarFollowingModel
desiredHeadway, desiredSpeed, followingAcceleration, init, toString
-
-
-
-
Field Detail
-
NLEADERS
public static final ParameterTypeInteger NLEADERS
Number of leaders considered parameter.
-
-
Constructor Detail
-
IDMPlusMulti
public IDMPlusMulti()
Default constructor using default models for desired headway and desired speed.
-
IDMPlusMulti
public IDMPlusMulti(DesiredHeadwayModel desiredHeadwayModel, DesiredSpeedModel desiredSpeedModel)
Constructor with modular models for desired headway and desired speed.- Parameters:
desiredHeadwayModel
- DesiredHeadwayModel; desired headway modeldesiredSpeedModel
- DesiredSpeedModel; desired speed model
-
-
Method Detail
-
getName
public final String getName()
Return the name of the car-following model.- Returns:
- name of the car-following model
-
getLongName
public final String getLongName()
Return the complete name of the car-following model.- Returns:
- complete name of the car-following model
-
combineInteractionTerm
protected final Acceleration combineInteractionTerm(Acceleration aFree, Parameters parameters, Speed speed, Speed desiredSpeed, Length desiredHeadway, PerceptionIterable<? extends Headway> leaders) throws ParameterException
Combines an interaction term with the free term. There should be at least 1 leader for this method.- Specified by:
combineInteractionTerm
in classAbstractIDM
- Parameters:
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).- Returns:
- Combination of terms into a single acceleration.
- Throws:
ParameterException
- In case of parameter exception.
-
-