Interface GapAcceptance
- All Superinterfaces:
NamedConstants
Interface for LMRS gap-acceptance models.
Copyright (c) 2013-2026 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
FieldsModifier and TypeFieldDescriptionstatic final GapAcceptanceBeing informed of the model and parameters of other drivers, but applying own headway value.static final GapAcceptanceBeing informed of the model and parameters of other drivers (default LMRS). -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptGap(TacticalContextEgo context, double desire, LateralDirectionality lat) Determine whether a gap is acceptable.Methods inherited from interface org.opentrafficsim.base.NamedConstants
name
-
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
-
acceptGap
boolean acceptGap(TacticalContextEgo context, double desire, LateralDirectionality lat) throws ParameterException, OperationalPlanException Determine whether a gap is acceptable.- Parameters:
context- tactical information such as parameters and car-following modeldesire- level of lane change desirelat- lateral direction for synchronization- Returns:
- whether a gap is acceptable
- Throws:
ParameterException- if a parameter is not definedOperationalPlanException- perception exception
-