Interface GapAcceptance
public interface GapAcceptance
Interface for LMRS gap-acceptance models.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Field Summary
Modifier and TypeFieldDescriptionstatic final GapAcceptance
Being informed of the model and parameters of other drivers, but applying own headway value.static final GapAcceptance
Being informed of the model and parameters of other drivers (default LMRS). -
Method Summary
Modifier and TypeMethodDescriptionboolean
acceptGap
(LanePerception perception, org.opentrafficsim.base.parameters.Parameters params, SpeedLimitInfo sli, CarFollowingModel cfm, double desire, org.djunits.value.vdouble.scalar.Speed ownSpeed, org.djunits.value.vdouble.scalar.Acceleration ownAcceleration, LateralDirectionality lat) Determine whether a gap is acceptable.static org.djunits.value.vdouble.scalar.Acceleration
egoAcceleration
(LanePerception perception, org.opentrafficsim.base.parameters.Parameters params, SpeedLimitInfo sli, CarFollowingModel cfm, double desire, org.djunits.value.vdouble.scalar.Speed ownSpeed, LateralDirectionality lat) Determine whether a gap is acceptable.
-
Field Details
-
INFORMED
Being informed of the model and parameters of other drivers (default LMRS). -
EGO_HEADWAY
Being informed of the model and parameters of other drivers, but applying own headway value.
-
-
Method Details
-
egoAcceleration
static org.djunits.value.vdouble.scalar.Acceleration egoAcceleration(LanePerception perception, org.opentrafficsim.base.parameters.Parameters params, SpeedLimitInfo sli, CarFollowingModel cfm, double desire, org.djunits.value.vdouble.scalar.Speed ownSpeed, LateralDirectionality lat) throws org.opentrafficsim.base.parameters.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:
org.opentrafficsim.base.parameters.ParameterException
- if a parameter is not definedOperationalPlanException
- perception exception
-
acceptGap
boolean acceptGap(LanePerception perception, org.opentrafficsim.base.parameters.Parameters params, SpeedLimitInfo sli, CarFollowingModel cfm, double desire, org.djunits.value.vdouble.scalar.Speed ownSpeed, org.djunits.value.vdouble.scalar.Acceleration ownAcceleration, LateralDirectionality lat) throws org.opentrafficsim.base.parameters.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:
org.opentrafficsim.base.parameters.ParameterException
- if a parameter is not definedOperationalPlanException
- perception exception
-