public class LaneChangeRegulation extends Object
Copyright (c) 2013-2014 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $,
initial version Sep 13, 2015
| Constructor and Description |
|---|
LaneChangeRegulation(Lane lane,
LaneKeepingPolicy laneKeepingPolicy,
OvertakingConditions overtakingConditions) |
| Modifier and Type | Method and Description |
|---|---|
OvertakingDirection |
checkOvertaking(LaneBasedGTU gtu,
LaneBasedGTU predecessorGTU)
Check the overtaking conditions.
|
Lane |
getLane() |
LaneKeepingPolicy |
getLaneKeepingPolicy() |
public LaneChangeRegulation(Lane lane, LaneKeepingPolicy laneKeepingPolicy, OvertakingConditions overtakingConditions)
lane - the lane for which these overtaking conditions holdlaneKeepingPolicy - the general lane keeping policy to use, e.g., keep left, keep right, keep laneovertakingConditions - the lane change regulations, e.g. allow overtaking left and right such as on American
highwayspublic final LaneKeepingPolicy getLaneKeepingPolicy()
public final OvertakingDirection checkOvertaking(LaneBasedGTU gtu, LaneBasedGTU predecessorGTU)
gtu - the GTU that might overtake another GTUpredecessorGTU - the GTU in front of the GTU that might want to overtakepublic final Lane getLane()
Copyright © 2014–2015 Delft University of Technology. All rights reserved.