Interface Cooperation
-
- All Superinterfaces:
LmrsParameters
public interface Cooperation extends LmrsParameters
Different forms of cooperation.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 2 mrt. 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Field Summary
Fields Modifier and Type Field Description static Cooperation
ACTIVE
Cooperation similar to the default, with nuanced differences of when to ignore.static Cooperation
PASSIVE
Simple passive cooperation.static Cooperation
PASSIVE_MOVING
Same as passive cooperation, except that cooperation is fully ignored if the potential lane changer brakes heavily.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Acceleration
cooperate(LanePerception perception, Parameters params, SpeedLimitInfo sli, CarFollowingModel cfm, LateralDirectionality lat, Desire ownDesire)
Determine acceleration for cooperation.
-
-
-
Field Detail
-
PASSIVE
static final Cooperation PASSIVE
Simple passive cooperation.
-
PASSIVE_MOVING
static final Cooperation PASSIVE_MOVING
Same as passive cooperation, except that cooperation is fully ignored if the potential lane changer brakes heavily.
-
ACTIVE
static final Cooperation ACTIVE
Cooperation similar to the default, with nuanced differences of when to ignore.
-
-
Method Detail
-
cooperate
Acceleration cooperate(LanePerception perception, Parameters params, SpeedLimitInfo sli, CarFollowingModel cfm, LateralDirectionality lat, Desire ownDesire) throws ParameterException, OperationalPlanException
Determine acceleration for cooperation.- Parameters:
perception
- LanePerception; perceptionparams
- Parameters; parameterssli
- SpeedLimitInfo; speed limit infocfm
- CarFollowingModel; car-following modellat
- LateralDirectionality; lateral direction for cooperationownDesire
- Desire; own lane change desire- Returns:
- acceleration for synchronization
- Throws:
ParameterException
- if a parameter is not definedOperationalPlanException
- perception exception
-
-