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
public class ToledoCarFollowing extends AbstractCarFollowingModel
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 Jul 7, 2016
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Field Summary
Fields Modifier and Type Field Description static ParameterTypeSpeed
ALPHADS
static ParameterTypeDouble
BETAACC
static ParameterTypeSpeed
BETADS
static ParameterTypeDouble
CCFACC
static ParameterTypeDouble
CCFDEC
static ParameterTypeSpeed
CDS
static ParameterTypeDouble
GAMMAACC
static ParameterTypeDouble
GAMMADEC
static ParameterTypeDuration
HSTAR
static ParameterTypeDouble
LAMBDAACC
static ParameterTypeDouble
LAMBDADEC
static ParameterTypeDouble
LAMBDAFF
static ParameterTypeDouble
RHOACC
static ParameterTypeDouble
RHODEC
static ParameterTypeDouble
SIGMAACC
static ParameterTypeDouble
SIGMADEC
static ParameterTypeDouble
SIGMAFF
-
Fields inherited from interface org.opentrafficsim.road.gtu.lane.tactical.following.CarFollowingModel
CAR_FOLLOWING_MODEL
-
-
Constructor Summary
Constructors Constructor Description ToledoCarFollowing()
Constructor using Toledo models for desired headway ans speed.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.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.AbstractCarFollowingModel
desiredHeadway, desiredSpeed, followingAcceleration, init, toString
-
-
-
-
Field Detail
-
CDS
public static final ParameterTypeSpeed CDS
-
BETADS
public static final ParameterTypeSpeed BETADS
-
ALPHADS
public static final ParameterTypeSpeed ALPHADS
-
HSTAR
public static final ParameterTypeDuration HSTAR
-
LAMBDAFF
public static final ParameterTypeDouble LAMBDAFF
-
SIGMAFF
public static final ParameterTypeDouble SIGMAFF
-
CCFACC
public static final ParameterTypeDouble CCFACC
-
BETAACC
public static final ParameterTypeDouble BETAACC
-
GAMMAACC
public static final ParameterTypeDouble GAMMAACC
-
RHOACC
public static final ParameterTypeDouble RHOACC
-
LAMBDAACC
public static final ParameterTypeDouble LAMBDAACC
-
SIGMAACC
public static final ParameterTypeDouble SIGMAACC
-
CCFDEC
public static final ParameterTypeDouble CCFDEC
-
GAMMADEC
public static final ParameterTypeDouble GAMMADEC
-
RHODEC
public static final ParameterTypeDouble RHODEC
-
LAMBDADEC
public static final ParameterTypeDouble LAMBDADEC
-
SIGMADEC
public static final ParameterTypeDouble SIGMADEC
-
-
Method Detail
-
followingAcceleration
protected final Acceleration followingAcceleration(Parameters parameters, Speed speed, Speed desiredSpeed, Length desiredHeadway, PerceptionIterable<? extends Headway> leaders) throws 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:
ParameterException
- if parameter exception occurs
-
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
-
-