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
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.java.lang.String
getLongName()
Return the complete name of the car-following model.java.lang.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
-
Constructor Details
-
ToledoCarFollowing
public ToledoCarFollowing()Constructor using Toledo models for desired headway ans speed.
-
-
Method Details
-
followingAcceleration
protected final Acceleration followingAcceleration(Parameters parameters, Speed speed, Speed desiredSpeed, Length desiredHeadway, PerceptionIterable<? extends Headway> leaders) throws ParameterExceptionDetermination 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 java.lang.String getName()Return the name of the car-following model.- Returns:
- name of the car-following model
-
getLongName
public final java.lang.String getLongName()Return the complete name of the car-following model.- Returns:
- complete name of the car-following model
-