public interface GapAcceptance
Copyright (c) 2013-2019 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
- LanePerception; perceptionparams
- Parameters; parameterssli
- SpeedLimitInfo; speed limit infocfm
- CarFollowingModel; car-following modeldesire
- double; level of lane change desireownSpeed
- Speed; own speedlat
- LateralDirectionality; 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
- LanePerception; perceptionparams
- Parameters; parameterssli
- SpeedLimitInfo; speed limit infocfm
- CarFollowingModel; car-following modeldesire
- double; level of lane change desireownSpeed
- Speed; own speedownAcceleration
- Acceleration; current car-following accelerationlat
- LateralDirectionality; lateral direction for synchronizationParameterException
- if a parameter is not definedOperationalPlanException
- perception exceptionCopyright © 2014–2019 Delft University of Technology. All rights reserved.