public class FixedLaneChangeModel extends Object implements LaneChangeModel, Serializable
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 ParameterTypeLength |
LOOKAHEAD
Look ahead parameter type.
|
Constructor and Description |
---|
FixedLaneChangeModel(LateralDirectionality laneChange)
Construct a FixedLaneChangeModel.
|
Modifier and Type | Method and Description |
---|---|
LaneMovementStep |
computeLaneChangeAndAcceleration(LaneBasedGTU gtu,
Collection<Headway> sameLaneTraffic,
Collection<Headway> rightLaneTraffic,
Collection<Headway> leftLaneTraffic,
Speed speedLimit,
Acceleration preferredLaneRouteIncentive,
Acceleration laneChangeThreshold,
Acceleration nonPreferredLaneRouteIncentive)
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.
|
String |
toString() |
protected static final ParameterTypeLength LOOKAHEAD
public FixedLaneChangeModel(LateralDirectionality laneChange)
laneChange
- LateralDirectionality; the lane change that (always) be returned by this FixedLaneChangeModel.public final LaneMovementStep computeLaneChangeAndAcceleration(LaneBasedGTU gtu, Collection<Headway> sameLaneTraffic, Collection<Headway> rightLaneTraffic, Collection<Headway> leftLaneTraffic, Speed speedLimit, Acceleration preferredLaneRouteIncentive, Acceleration laneChangeThreshold, Acceleration nonPreferredLaneRouteIncentive) throws GTUException, ParameterException
computeLaneChangeAndAcceleration
in interface LaneChangeModel
gtu
- LaneBasedGTU; the GTU for which the acceleration and lane change is computedsameLaneTraffic
- Collection<Headway>; the set of observable GTUs in the current lane (can not be null and may
include the gtu
)rightLaneTraffic
- 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)leftLaneTraffic
- 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 trafficGTUException
- when the speed of the GTU can not be determinedParameterException
- in case of a parameter problem.public final String getName()
getName
in interface LaneChangeModel
public final String getLongName()
getLongName
in interface LaneChangeModel
Copyright © 2014–2019 Delft University of Technology. All rights reserved.