public interface Cooperation extends LmrsParameters
Copyright (c) 2013-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Modifier and Type | Field and 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
Simple passive cooperation.
|
| Modifier and Type | Method and Description |
|---|---|
org.djunits.value.vdouble.scalar.Acceleration |
cooperate(LanePerception perception,
org.opentrafficsim.base.parameters.Parameters params,
SpeedLimitInfo sli,
CarFollowingModel cfm,
org.opentrafficsim.core.network.LateralDirectionality lat,
Desire ownDesire)
Determine acceleration for cooperation.
|
static final Cooperation PASSIVE
static final Cooperation PASSIVE_MOVING
static final Cooperation ACTIVE
org.djunits.value.vdouble.scalar.Acceleration cooperate(LanePerception perception, org.opentrafficsim.base.parameters.Parameters params, SpeedLimitInfo sli, CarFollowingModel cfm, org.opentrafficsim.core.network.LateralDirectionality lat, Desire ownDesire) throws org.opentrafficsim.base.parameters.ParameterException, org.opentrafficsim.core.gtu.plan.operational.OperationalPlanException
perception - perceptionparams - parameterssli - speed limit infocfm - car-following modellat - lateral direction for cooperationownDesire - own lane change desireorg.opentrafficsim.base.parameters.ParameterException - if a parameter is not definedorg.opentrafficsim.core.gtu.plan.operational.OperationalPlanException - perception exceptionCopyright © 2014–2018 Delft University of Technology. All rights reserved.