public interface LaneBasedTacticalPlanner extends org.opentrafficsim.core.gtu.plan.tactical.TacticalPlanner<LaneBasedGTU,LanePerception>
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 | Method and Description |
---|---|
default LaneDirection |
chooseLaneAtSplit(Set<LaneDirection> lanes)
Selects a lane from a possible set.
|
CarFollowingModel |
getCarFollowingModel()
Returns the car-following model.
|
default org.djunits.value.vdouble.scalar.Length |
okDistance(LaneDirection lane,
org.djunits.value.vdouble.scalar.Length distance,
org.opentrafficsim.core.network.route.Route route,
org.djunits.value.vdouble.scalar.Length maxDistance)
Helper method for default chooseLaneAtSplit implementation that returns the distance from this lane onwards where the
route can be followed.
|
default LaneDirection |
rightMost(LaneDirection lane1,
LaneDirection lane2)
Returns the right-most of two lanes.
|
CarFollowingModel getCarFollowingModel()
default LaneDirection chooseLaneAtSplit(Set<LaneDirection> lanes) throws org.opentrafficsim.base.parameters.ParameterException
lanes
- Set; set of lane directions possibleorg.opentrafficsim.base.parameters.ParameterException
- in case of a missing parameterdefault org.djunits.value.vdouble.scalar.Length okDistance(LaneDirection lane, org.djunits.value.vdouble.scalar.Length distance, org.opentrafficsim.core.network.route.Route route, org.djunits.value.vdouble.scalar.Length maxDistance)
lane
- LaneDirection; lane and directiondistance
- Length; distance so farroute
- Route; routemaxDistance
- Length; max search distancedefault LaneDirection rightMost(LaneDirection lane1, LaneDirection lane2)
lane1
- LaneDirection; lane 1lane2
- LaneDirection; lane 2Copyright © 2014–2018 Delft University of Technology. All rights reserved.