Interface Cooperation
- All Superinterfaces:
LmrsParameters,NamedConstants
Different forms of cooperation.
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 CooperationCooperation similar to the default, except at large adjacent leader deceleration.static final CooperationSimple passive cooperation.static final CooperationSame as passive cooperation, except that cooperation is sometimes ignored at low speed of other vehicles. -
Method Summary
Modifier and TypeMethodDescriptionorg.djunits.value.vdouble.scalar.Accelerationcooperate(TacticalContextEgo context, LateralDirectionality lat, LmrsData lmrsData, Desire ownDesire) Determine acceleration for cooperation.Methods inherited from interface org.opentrafficsim.base.NamedConstants
name
-
Field Details
-
PASSIVE
Simple passive cooperation. -
PASSIVE_MOVING
Same as passive cooperation, except that cooperation is sometimes ignored at low speed of other vehicles. -
ACTIVE
Cooperation similar to the default, except at large adjacent leader deceleration.
-
-
Method Details
-
cooperate
org.djunits.value.vdouble.scalar.Acceleration cooperate(TacticalContextEgo context, LateralDirectionality lat, LmrsData lmrsData, Desire ownDesire) throws ParameterException, OperationalPlanException Determine acceleration for cooperation.- Parameters:
context- tactical information such as parameters and car-following modellat- lateral direction for cooperationlmrsData- lmrs data to store COOPERATION synchronization state in, may benullownDesire- own lane change desire- Returns:
- acceleration for synchronization
- Throws:
ParameterException- if a parameter is not definedOperationalPlanException- perception exception
-