public class CompleteLaneBasedRouteNavigator extends AbstractLaneBasedRouteNavigator
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 |
---|---|
protected org.opentrafficsim.core.network.route.CompleteRoute |
completeRoute
The complete route.
|
protected int |
lastVisitedNodeIndex
last visited node on the route.
|
GETOFFTHISLANENOW, NOLANECHANGENEEDED
Constructor and Description |
---|
CompleteLaneBasedRouteNavigator(org.opentrafficsim.core.network.route.CompleteRoute completeRoute)
Create a navigator.
|
Modifier and Type | Method and Description |
---|---|
org.opentrafficsim.core.network.route.CompleteRoute |
getRoute() |
org.opentrafficsim.core.network.Node |
lastVisitedNode() |
org.opentrafficsim.core.network.Node |
nextNodeToVisit() |
org.djunits.value.vdouble.scalar.Length.Rel |
suitability(Lane lane,
org.djunits.value.vdouble.scalar.Length.Rel longitudinalPosition,
LaneBasedGTU gtu,
org.djunits.value.vdouble.scalar.Time.Rel timeHorizon)
Determine the suitability of being at a particular longitudinal position in a particular Lane for following this Route.
|
String |
toString() |
org.opentrafficsim.core.network.Node |
visitNextNode() |
computeSuitabilityWithLaneChanges, countCompatibleLanes
protected final org.opentrafficsim.core.network.route.CompleteRoute completeRoute
protected int lastVisitedNodeIndex
public CompleteLaneBasedRouteNavigator(org.opentrafficsim.core.network.route.CompleteRoute completeRoute)
completeRoute
- the route to followpublic final org.opentrafficsim.core.network.Node lastVisitedNode() throws org.opentrafficsim.core.network.NetworkException
org.opentrafficsim.core.network.NetworkException
public final org.opentrafficsim.core.network.Node nextNodeToVisit() throws org.opentrafficsim.core.network.NetworkException
org.opentrafficsim.core.network.NetworkException
public final org.opentrafficsim.core.network.Node visitNextNode() throws org.opentrafficsim.core.network.NetworkException
org.opentrafficsim.core.network.NetworkException
public final org.djunits.value.vdouble.scalar.Length.Rel suitability(Lane lane, org.djunits.value.vdouble.scalar.Length.Rel longitudinalPosition, LaneBasedGTU gtu, org.djunits.value.vdouble.scalar.Time.Rel timeHorizon) throws org.opentrafficsim.core.network.NetworkException
lane
- Lane; the lane to considerlongitudinalPosition
- DoubleScalar.Rel<LengthUnit>; the longitudinal position in the lanegtu
- GTU; the GTU (used to check lane compatibility of lanes, and current lane the GTU is on)timeHorizon
- DoubleScalar.Rel<TimeUnit>; the maximum time that a driver may want to look aheadorg.opentrafficsim.core.network.NetworkException
- on network inconsistency, or when the continuation Link at a branch cannot be determinedpublic final org.opentrafficsim.core.network.route.CompleteRoute getRoute()
Copyright © 2014–2015 Delft University of Technology. All rights reserved.