public interface GapAcceptance
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 GapAcceptance |
EGO_HEADWAY
Being informed of the model and parameters of other drivers, but applying own headway value.
|
static GapAcceptance |
INFORMED
Being informed of the model and parameters of other drivers (default LMRS).
|
Modifier and Type | Method and Description |
---|---|
boolean |
acceptGap(LanePerception perception,
Parameters params,
SpeedLimitInfo sli,
CarFollowingModel cfm,
double desire,
Speed ownSpeed,
Acceleration ownAcceleration,
LateralDirectionality lat)
Determine whether a gap is acceptable.
|
static Acceleration |
egoAcceleration(LanePerception perception,
Parameters params,
SpeedLimitInfo sli,
CarFollowingModel cfm,
double desire,
Speed ownSpeed,
LateralDirectionality lat)
Determine whether a gap is acceptable.
|
static final GapAcceptance INFORMED
static final GapAcceptance EGO_HEADWAY
static Acceleration egoAcceleration(LanePerception perception, Parameters params, SpeedLimitInfo sli, CarFollowingModel cfm, double desire, Speed ownSpeed, LateralDirectionality lat) throws ParameterException, OperationalPlanException
perception
- perceptionparams
- parameterssli
- speed limit infocfm
- car-following modeldesire
- level of lane change desireownSpeed
- own speedlat
- lateral direction for synchronizationParameterException
- if a parameter is not definedOperationalPlanException
- perception exceptionboolean acceptGap(LanePerception perception, Parameters params, SpeedLimitInfo sli, CarFollowingModel cfm, double desire, Speed ownSpeed, Acceleration ownAcceleration, LateralDirectionality lat) throws ParameterException, OperationalPlanException
perception
- perceptionparams
- parameterssli
- speed limit infocfm
- car-following modeldesire
- level of lane change desireownSpeed
- own speedownAcceleration
- current car-following accelerationlat
- lateral direction for synchronizationParameterException
- if a parameter is not definedOperationalPlanException
- perception exceptionCopyright © 2014–2018 Delft University of Technology. All rights reserved.