public interface CarFollowingModel extends DesiredHeadwayModel, DesiredSpeedModel, Initialisable
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Field and Description |
---|---|
static ParameterTypeClass<CarFollowingModel> |
CAR_FOLLOWING_MODEL
Parameter type for car-following model.
|
Modifier and Type | Method and Description |
---|---|
Acceleration |
followingAcceleration(Parameters parameters,
Speed speed,
SpeedLimitInfo speedLimitInfo,
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.
|
default void |
init(LaneBasedGTU gtu)
Initialize car-following model.
|
desiredHeadway
desiredSpeed
static final ParameterTypeClass<CarFollowingModel> CAR_FOLLOWING_MODEL
Acceleration followingAcceleration(Parameters parameters, Speed speed, SpeedLimitInfo speedLimitInfo, PerceptionIterable<? extends Headway> leaders) throws ParameterException
parameters
- parametersspeed
- current speedspeedLimitInfo
- info regarding the desired speed for car-followingleaders
- set of leader headways and speeds, ordered by headway (closest first)ParameterException
- if parameter exception occursString getName()
String getLongName()
default void init(LaneBasedGTU gtu)
init
in interface Initialisable
gtu
- LaneBasedGTU; gtuCopyright © 2014–2018 Delft University of Technology. All rights reserved.