public abstract class AbstractLaneChangeModel extends Object implements LaneChangeModel
Copyright (c) 2013-2019 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 |
|---|---|
protected static ParameterTypeAcceleration |
B
Comfortable deceleration parameter type.
|
protected static ParameterTypeLength |
LOOKAHEAD
Look ahead parameter type.
|
| Constructor and Description |
|---|
AbstractLaneChangeModel() |
| Modifier and Type | Method and Description |
|---|---|
abstract Acceleration |
applyDriverPersonality(DualAccelerationStep accelerationSteps)
Return the weighted acceleration as described by the personality.
|
LaneMovementStep |
computeLaneChangeAndAcceleration(LaneBasedGTU gtu,
Collection<Headway> sameLaneGTUs,
Collection<Headway> preferredLaneGTUs,
Collection<Headway> nonPreferredLaneGTUs,
Speed speedLimit,
Acceleration preferredLaneRouteIncentive,
Acceleration laneChangeThreshold,
Acceleration nonPreferredLaneRouteIncentive)
Compute the acceleration and lane change.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLongName, getNameprotected static final ParameterTypeLength LOOKAHEAD
protected static final ParameterTypeAcceleration B
public final LaneMovementStep computeLaneChangeAndAcceleration(LaneBasedGTU gtu, Collection<Headway> sameLaneGTUs, Collection<Headway> preferredLaneGTUs, Collection<Headway> nonPreferredLaneGTUs, Speed speedLimit, Acceleration preferredLaneRouteIncentive, Acceleration laneChangeThreshold, Acceleration nonPreferredLaneRouteIncentive) throws ParameterException, OperationalPlanException
computeLaneChangeAndAcceleration in interface LaneChangeModelgtu - LaneBasedGTU; the GTU for which the acceleration and lane change is computedsameLaneGTUs - Collection<Headway>; the set of observable GTUs in the current lane (can not be null and may
include the gtu)preferredLaneGTUs - Collection<Headway>; the set of observable GTUs in the adjacent lane where GTUs should
drive in the absence of other traffic (must be null if there is no such lane)nonPreferredLaneGTUs - Collection<Headway>; the set of observable GTUs in the adjacent lane into which GTUs should
merge to overtake other traffic (must be null if there is no such lane)speedLimit - Speed; the local speed limitpreferredLaneRouteIncentive - Acceleration; route incentive to merge to the adjacent lane where GTUs should drive in
the absence of other trafficlaneChangeThreshold - Acceleration; threshold that prevents lane changes that have very little benefitnonPreferredLaneRouteIncentive - Acceleration; route incentive to merge to the adjacent lane into which GTUs should
merge to overtake other trafficParameterException - in case of a parameter problem.OperationalPlanException - if DefaultAlexander perception category is not present.public abstract Acceleration applyDriverPersonality(DualAccelerationStep accelerationSteps)
accelerationSteps - DualAccelerationStep; the DualAccelerationStep that contains the AccelerationStep that the
reference GTU will make and the AccelerationStep that the (new) follower GTU will makeCopyright © 2014–2019 Delft University of Technology. All rights reserved.