public final class CarFollowingUtil extends Object
Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Method and Description |
---|---|
static org.djunits.value.vdouble.scalar.Acceleration |
followLeaders(CarFollowingModel carFollowingModel,
org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics,
org.djunits.value.vdouble.scalar.Speed speed,
SpeedLimitInfo speedLimitInfo,
SortedSet<AbstractHeadwayGTU> leaders)
Follow a set of headway GTUs.
|
static org.djunits.value.vdouble.scalar.Acceleration |
freeAcceleration(CarFollowingModel carFollowingModel,
org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics,
org.djunits.value.vdouble.scalar.Speed speed,
SpeedLimitInfo speedLimitInfo)
Calculate free acceleration.
|
static org.djunits.value.vdouble.scalar.Acceleration |
stop(CarFollowingModel carFollowingModel,
org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics,
org.djunits.value.vdouble.scalar.Speed speed,
SpeedLimitInfo speedLimitInfo,
org.djunits.value.vdouble.scalar.Length distance)
Stop within given distance.
|
public static org.djunits.value.vdouble.scalar.Acceleration followLeaders(CarFollowingModel carFollowingModel, org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics, org.djunits.value.vdouble.scalar.Speed speed, SpeedLimitInfo speedLimitInfo, SortedSet<AbstractHeadwayGTU> leaders) throws org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
carFollowingModel
- car-following modelbehavioralCharacteristics
- behavioral characteristicsspeed
- current speedspeedLimitInfo
- speed limit infoleaders
- leadersorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
- if a parameter is not given or out of boundspublic static org.djunits.value.vdouble.scalar.Acceleration stop(CarFollowingModel carFollowingModel, org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics, org.djunits.value.vdouble.scalar.Speed speed, SpeedLimitInfo speedLimitInfo, org.djunits.value.vdouble.scalar.Length distance) throws org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
carFollowingModel
- car-following modelbehavioralCharacteristics
- behavioral characteristicsspeed
- current speedspeedLimitInfo
- speed limit infodistance
- distance to stop overorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
- if a parameter is not given or out of boundspublic static org.djunits.value.vdouble.scalar.Acceleration freeAcceleration(CarFollowingModel carFollowingModel, org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics, org.djunits.value.vdouble.scalar.Speed speed, SpeedLimitInfo speedLimitInfo) throws org.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
carFollowingModel
- car-following modelbehavioralCharacteristics
- behavioral characteristicsspeed
- current speedspeedLimitInfo
- speed limit infoorg.opentrafficsim.core.gtu.behavioralcharacteristics.ParameterException
- if a parameter is not given or out of boundsCopyright © 2014–2016 Delft University of Technology. All rights reserved.