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 ParameterTypeSpeedALPHADSstatic ParameterTypeDoubleBETAACCstatic ParameterTypeSpeedBETADSstatic ParameterTypeDoubleCCFACCstatic ParameterTypeDoubleCCFDECstatic ParameterTypeSpeedCDSstatic ParameterTypeDoubleGAMMAACCstatic ParameterTypeDoubleGAMMADECstatic ParameterTypeDurationHSTARstatic ParameterTypeDoubleLAMBDAACCstatic ParameterTypeDoubleLAMBDADECstatic ParameterTypeDoubleLAMBDAFFstatic ParameterTypeDoubleRHOACCstatic ParameterTypeDoubleRHODECstatic ParameterTypeDoubleSIGMAACCstatic ParameterTypeDoubleSIGMADECstatic ParameterTypeDoubleSIGMAFF-
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 AccelerationfollowingAcceleration(Parameters parameters, Speed speed, Speed desiredSpeed, Length desiredHeadway, PerceptionIterable<? extends Headway> leaders)Determination of car-following acceleration, possibly based on multiple leaders.StringgetLongName()Return the complete name of the car-following model.StringgetName()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:
followingAccelerationin 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
-
-