Interface GapAcceptance
-
public interface GapAcceptance
Interface for LMRS gap-acceptance models.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 9 okt. 2017
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Field Summary
Fields Modifier and Type Field 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).
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
INFORMED
static final GapAcceptance INFORMED
Being informed of the model and parameters of other drivers (default LMRS).
-
EGO_HEADWAY
static final GapAcceptance EGO_HEADWAY
Being informed of the model and parameters of other drivers, but applying own headway value.
-
-
Method Detail
-
egoAcceleration
static Acceleration egoAcceleration(LanePerception perception, Parameters params, SpeedLimitInfo sli, CarFollowingModel cfm, double desire, Speed ownSpeed, LateralDirectionality lat) throws ParameterException, OperationalPlanException
Determine whether a gap is acceptable.- Parameters:
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 synchronization- Returns:
- whether a gap is acceptable
- Throws:
ParameterException
- if a parameter is not definedOperationalPlanException
- perception exception
-
acceptGap
boolean acceptGap(LanePerception perception, Parameters params, SpeedLimitInfo sli, CarFollowingModel cfm, double desire, Speed ownSpeed, Acceleration ownAcceleration, LateralDirectionality lat) throws ParameterException, OperationalPlanException
Determine whether a gap is acceptable.- Parameters:
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 synchronization- Returns:
- whether a gap is acceptable
- Throws:
ParameterException
- if a parameter is not definedOperationalPlanException
- perception exception
-
-