public interface DirectedLaneChangeModel
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Method and Description |
---|---|
DirectedLaneMovementStep |
computeLaneChangeAndAcceleration(LaneBasedGTU gtu,
org.opentrafficsim.core.network.LateralDirectionality direction,
Collection<HeadwayGTU> sameLaneTraffic,
Collection<HeadwayGTU> otherLaneTraffic,
org.djunits.value.vdouble.scalar.Length.Rel maxDistance,
org.djunits.value.vdouble.scalar.Speed speedLimit,
org.djunits.value.vdouble.scalar.Acceleration otherLaneRouteIncentive,
org.djunits.value.vdouble.scalar.Acceleration laneChangeThreshold,
org.djunits.value.vdouble.scalar.Time.Rel laneChangeTime)
Compute the acceleration and lane change.
|
String |
getLongName()
Return complete textual information about this instantiation of this GTU following model.
|
String |
getName()
Return the name of this GTU following model.
|
DirectedLaneMovementStep computeLaneChangeAndAcceleration(LaneBasedGTU gtu, org.opentrafficsim.core.network.LateralDirectionality direction, Collection<HeadwayGTU> sameLaneTraffic, Collection<HeadwayGTU> otherLaneTraffic, org.djunits.value.vdouble.scalar.Length.Rel maxDistance, org.djunits.value.vdouble.scalar.Speed speedLimit, org.djunits.value.vdouble.scalar.Acceleration otherLaneRouteIncentive, org.djunits.value.vdouble.scalar.Acceleration laneChangeThreshold, org.djunits.value.vdouble.scalar.Time.Rel laneChangeTime) throws org.opentrafficsim.core.gtu.GTUException
gtu
- GTU; the GTU for which the acceleration and lane change is computeddirection
- the direction of the lane we want to change tosameLaneTraffic
- Collection<HeadwayGTU>; the set of information about observable GTUs in the current lane
(can not be null and may include the gtu
)otherLaneTraffic
- 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 overtakeorg.opentrafficsim.core.gtu.GTUException
- when the position of the GTU on the lane(s) cannot be determinedString getName()
String getLongName()
Copyright © 2014–2016 Delft University of Technology. All rights reserved.