public abstract class AbstractDirectedLaneChangeModel extends Object implements DirectedLaneChangeModel
Copyright (c) 2013-2018 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.
|
Constructor and Description |
---|
AbstractDirectedLaneChangeModel(LanePerception perception)
Construct a DirectedLaneChangeModel.
|
Modifier and Type | Method and Description |
---|---|
abstract Acceleration |
applyDriverPersonality(DualAccelerationStep accelerationStep)
Return the weighted acceleration as described by the personality.
|
DirectedLaneMovementStep |
computeLaneChangeAndAcceleration(LaneBasedGTU gtu,
LateralDirectionality direction,
Collection<Headway> sameLaneGTUs,
Collection<Headway> otherLaneGTUs,
Length maxDistance,
Speed speedLimit,
Acceleration otherLaneRouteIncentive,
Acceleration laneChangeThreshold,
Duration laneChangeTime)
Compute the acceleration and lane change.
|
LanePerception |
getPerception() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLongName, getName
protected static final ParameterTypeAcceleration B
public AbstractDirectedLaneChangeModel(LanePerception perception)
perception
- the perception.public final DirectedLaneMovementStep computeLaneChangeAndAcceleration(LaneBasedGTU gtu, LateralDirectionality direction, Collection<Headway> sameLaneGTUs, Collection<Headway> otherLaneGTUs, Length maxDistance, Speed speedLimit, Acceleration otherLaneRouteIncentive, Acceleration laneChangeThreshold, Duration laneChangeTime) throws GTUException, ParameterException, OperationalPlanException
computeLaneChangeAndAcceleration
in interface DirectedLaneChangeModel
gtu
- GTU; the GTU for which the acceleration and lane change is computeddirection
- the direction of the lane we want to change tosameLaneGTUs
- Collection<HeadwayGTU>; the set of information about observable GTUs in the current lane
(can not be null and may include the gtu
)otherLaneGTUs
- Collection<HeadwayGTU>; the set of information about 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)maxDistance
- the maximum distance that the current GTU can drive, e.g. due to a lane dropspeedLimit
- Speed; the local speed limitotherLaneRouteIncentive
- 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 benefit merge to
overtake other trafficlaneChangeTime
- time spent to overtakeGTUException
- when the position of the GTU on the lane(s) cannot be determinedParameterException
- in case of a parameter problem.OperationalPlanException
- if DefaultAlexander perception category is not presentpublic abstract Acceleration applyDriverPersonality(DualAccelerationStep accelerationStep)
accelerationStep
- DualAccelerationStep; the DualAccelerationStep that contains the AccelerationStep that the
reference GTU will make and the AccelerationStep that the (new) follower GTU will makepublic final LanePerception getPerception()
getPerception
in interface DirectedLaneChangeModel
Copyright © 2014–2018 Delft University of Technology. All rights reserved.