Class ToledoCarFollowing
java.lang.Object
org.opentrafficsim.road.gtu.lane.tactical.following.AbstractCarFollowingModel
org.opentrafficsim.road.gtu.lane.tactical.toledo.ToledoCarFollowing
- All Implemented Interfaces:
CarFollowingModel
,DesiredHeadwayModel
,DesiredSpeedModel
,Initialisable
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.opentrafficsim.base.parameters.ParameterTypeSpeed
static final org.opentrafficsim.base.parameters.ParameterTypeDouble
static final org.opentrafficsim.base.parameters.ParameterTypeSpeed
static final org.opentrafficsim.base.parameters.ParameterTypeDouble
static final org.opentrafficsim.base.parameters.ParameterTypeDouble
static final org.opentrafficsim.base.parameters.ParameterTypeSpeed
static final org.opentrafficsim.base.parameters.ParameterTypeDouble
static final org.opentrafficsim.base.parameters.ParameterTypeDouble
static final org.opentrafficsim.base.parameters.ParameterTypeDuration
static final org.opentrafficsim.base.parameters.ParameterTypeDouble
static final org.opentrafficsim.base.parameters.ParameterTypeDouble
static final org.opentrafficsim.base.parameters.ParameterTypeDouble
static final org.opentrafficsim.base.parameters.ParameterTypeDouble
static final org.opentrafficsim.base.parameters.ParameterTypeDouble
static final org.opentrafficsim.base.parameters.ParameterTypeDouble
static final org.opentrafficsim.base.parameters.ParameterTypeDouble
static final org.opentrafficsim.base.parameters.ParameterTypeDouble
Fields inherited from interface org.opentrafficsim.road.gtu.lane.tactical.following.CarFollowingModel
CAR_FOLLOWING_MODEL
-
Constructor Summary
ConstructorDescriptionConstructor using Toledo models for desired headway ans speed. -
Method Summary
Modifier and TypeMethodDescriptionprotected final org.djunits.value.vdouble.scalar.Acceleration
followingAcceleration
(org.opentrafficsim.base.parameters.Parameters parameters, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Speed desiredSpeed, org.djunits.value.vdouble.scalar.Length desiredHeadway, PerceptionIterable<? extends Headway> leaders) Determination of car-following acceleration, possibly based on multiple leaders.final String
Return the complete name of the car-following model.final String
getName()
Return the name of the car-following model.Methods inherited from class org.opentrafficsim.road.gtu.lane.tactical.following.AbstractCarFollowingModel
desiredHeadway, desiredSpeed, followingAcceleration, init, toString
-
Field Details
-
CDS
public static final org.opentrafficsim.base.parameters.ParameterTypeSpeed CDS -
BETADS
public static final org.opentrafficsim.base.parameters.ParameterTypeSpeed BETADS -
ALPHADS
public static final org.opentrafficsim.base.parameters.ParameterTypeSpeed ALPHADS -
HSTAR
public static final org.opentrafficsim.base.parameters.ParameterTypeDuration HSTAR -
LAMBDAFF
public static final org.opentrafficsim.base.parameters.ParameterTypeDouble LAMBDAFF -
SIGMAFF
public static final org.opentrafficsim.base.parameters.ParameterTypeDouble SIGMAFF -
CCFACC
public static final org.opentrafficsim.base.parameters.ParameterTypeDouble CCFACC -
BETAACC
public static final org.opentrafficsim.base.parameters.ParameterTypeDouble BETAACC -
GAMMAACC
public static final org.opentrafficsim.base.parameters.ParameterTypeDouble GAMMAACC -
RHOACC
public static final org.opentrafficsim.base.parameters.ParameterTypeDouble RHOACC -
LAMBDAACC
public static final org.opentrafficsim.base.parameters.ParameterTypeDouble LAMBDAACC -
SIGMAACC
public static final org.opentrafficsim.base.parameters.ParameterTypeDouble SIGMAACC -
CCFDEC
public static final org.opentrafficsim.base.parameters.ParameterTypeDouble CCFDEC -
GAMMADEC
public static final org.opentrafficsim.base.parameters.ParameterTypeDouble GAMMADEC -
RHODEC
public static final org.opentrafficsim.base.parameters.ParameterTypeDouble RHODEC -
LAMBDADEC
public static final org.opentrafficsim.base.parameters.ParameterTypeDouble LAMBDADEC -
SIGMADEC
public static final org.opentrafficsim.base.parameters.ParameterTypeDouble SIGMADEC
-
-
Constructor Details
-
ToledoCarFollowing
public ToledoCarFollowing()Constructor using Toledo models for desired headway ans speed.
-
-
Method Details
-
followingAcceleration
protected final org.djunits.value.vdouble.scalar.Acceleration followingAcceleration(org.opentrafficsim.base.parameters.Parameters parameters, org.djunits.value.vdouble.scalar.Speed speed, org.djunits.value.vdouble.scalar.Speed desiredSpeed, org.djunits.value.vdouble.scalar.Length desiredHeadway, PerceptionIterable<? extends Headway> leaders) throws org.opentrafficsim.base.parameters.ParameterException Determination of car-following acceleration, possibly based on multiple leaders.- Specified by:
followingAcceleration
in classAbstractCarFollowingModel
- Parameters:
parameters
- Parameters; parametersspeed
- Speed; current speeddesiredSpeed
- Speed; desired speeddesiredHeadway
- Length; desired headwayleaders
- PerceptionIterable<? extends Headway>; set of leader headways (guaranteed positive) and speeds, ordered by headway (closest first)- Returns:
- car-following acceleration
- Throws:
org.opentrafficsim.base.parameters.ParameterException
- if parameter exception occurs
-
getName
Return the name of the car-following model.- Returns:
- name of the car-following model
-
getLongName
Return the complete name of the car-following model.- Returns:
- complete name of the car-following model
-