public class LaneBasedRouteNavigator extends RouteNavigator implements Serializable
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.
$LastChangedDate: 2015-07-16 10:20:53 +0200 (Thu, 16 Jul 2015) $, @version $Revision: 1124 $, by $Author: pknoppers $,
initial version Jul 22, 2015
| Modifier and Type | Field and Description |
|---|---|
static DoubleScalar.Rel<LengthUnit> |
GETOFFTHISLANENOW
Return value of suitability when a lane change is required right now.
|
static DoubleScalar.Rel<LengthUnit> |
NOLANECHANGENEEDED
Return value of suitability when no lane change is required withing the time horizon.
|
completeRoute, lastVisitedNodeIndex| Constructor and Description |
|---|
LaneBasedRouteNavigator(CompleteRoute<?,?> completeRoute)
Create a navigator.
|
| Modifier and Type | Method and Description |
|---|---|
DoubleScalar.Rel<LengthUnit> |
suitability(Lane<?,?> lane,
DoubleScalar.Rel<LengthUnit> longitudinalPosition,
GTUType<?> gtuType,
DoubleScalar.Rel<TimeUnit> timeHorizon)
Determine the suitability of being at a particular longitudinal position in a particular Lane for following this Route.
|
getRoute, lastVisitedNode, nextNodeToVisit, toString, visitNextNodepublic static final DoubleScalar.Rel<LengthUnit> NOLANECHANGENEEDED
public static final DoubleScalar.Rel<LengthUnit> GETOFFTHISLANENOW
public LaneBasedRouteNavigator(CompleteRoute<?,?> completeRoute)
completeRoute - the route to followpublic final DoubleScalar.Rel<LengthUnit> suitability(Lane<?,?> lane, DoubleScalar.Rel<LengthUnit> longitudinalPosition, GTUType<?> gtuType, DoubleScalar.Rel<TimeUnit> timeHorizon) throws NetworkException
lane - Lane; the lane to considerlongitudinalPosition - DoubleScalar.Rel<LengthUnit>; the longitudinal position in the lanegtuType - GTUType<?>; the type of the GTU (used to check lane compatibility of lanes)timeHorizon - DoubleScalar.Rel<TimeUnit>; the maximum time that a driver may want to look aheadNetworkException - on network inconsistency, or when the continuation Link at a branch cannot be determinedCopyright © 2014–2015 Delft University of Technology. All rights reserved.