public class LaneBasedStrategicalRoutePlanner extends AbstractLaneBasedStrategicalPlanner implements LaneBasedStrategicalPlanner, 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.
STRATEGICAL_PLANNER
Constructor and Description |
---|
LaneBasedStrategicalRoutePlanner(LaneBasedTacticalPlanner fixedTacticalPlanner,
LaneBasedGTU gtu)
Constructor for a strategical planner without route.
|
LaneBasedStrategicalRoutePlanner(LaneBasedTacticalPlanner fixedTacticalPlanner,
LaneBasedGTU gtu,
Node origin,
Node destination,
RouteGeneratorOD routeGenerator)
Constructor for a strategical planner with route generator.
|
LaneBasedStrategicalRoutePlanner(LaneBasedTacticalPlanner fixedTacticalPlanner,
Route route,
LaneBasedGTU gtu,
Node origin,
Node destination)
Constructor for a strategical planner with route.
|
LaneBasedStrategicalRoutePlanner(LaneBasedTacticalPlanner fixedTacticalPlanner,
Route route,
LaneBasedGTU gtu,
Node origin,
Node destination,
RouteGeneratorOD routeGenerator)
Constructor for a strategical planner with route.
|
Modifier and Type | Method and Description |
---|---|
Node |
getDestination() |
Node |
getOrigin() |
Route |
getRoute() |
LaneBasedTacticalPlanner |
getTacticalPlanner() |
LaneBasedTacticalPlanner |
getTacticalPlanner(Time time) |
LinkDirection |
nextLinkDirection(Link link,
GTUDirectionality direction,
GTUType gtuType) |
LinkDirection |
nextLinkDirection(Node node,
Link previousLink,
GTUType gtuType) |
Node |
nextNode(Link link,
GTUDirectionality direction,
GTUType gtuType) |
Node |
nextNode(Node node,
Link previousLink,
GTUType gtuType) |
String |
toString() |
getGtu
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGtu
public LaneBasedStrategicalRoutePlanner(LaneBasedTacticalPlanner fixedTacticalPlanner, LaneBasedGTU gtu) throws GTUException
fixedTacticalPlanner
- LaneBasedTacticalPlanner; the tactical planner to use for the GTUgtu
- LaneBasedGTU; GTUGTUException
- if fixed tactical planner == nullpublic LaneBasedStrategicalRoutePlanner(LaneBasedTacticalPlanner fixedTacticalPlanner, Route route, LaneBasedGTU gtu, Node origin, Node destination) throws GTUException
fixedTacticalPlanner
- LaneBasedTacticalPlanner; the tactical planner to use for the GTUroute
- Route; the route to drivegtu
- LaneBasedGTU; GTUorigin
- Node; origin nodedestination
- Node; destination nodeGTUException
- if fixed tactical planner == nullpublic LaneBasedStrategicalRoutePlanner(LaneBasedTacticalPlanner fixedTacticalPlanner, LaneBasedGTU gtu, Node origin, Node destination, RouteGeneratorOD routeGenerator) throws GTUException
fixedTacticalPlanner
- LaneBasedTacticalPlanner; the tactical planner to use for the GTUgtu
- LaneBasedGTU; GTUorigin
- Node; origin nodedestination
- Node; destination noderouteGenerator
- RouteGeneratorOD; route generatorGTUException
- if fixed tactical planner == nullpublic LaneBasedStrategicalRoutePlanner(LaneBasedTacticalPlanner fixedTacticalPlanner, Route route, LaneBasedGTU gtu, Node origin, Node destination, RouteGeneratorOD routeGenerator) throws GTUException
null
, a shortest path to the destination is
derived.fixedTacticalPlanner
- LaneBasedTacticalPlanner; the tactical planner to use for the GTUroute
- Route; the route to drivegtu
- LaneBasedGTU; GTUorigin
- Node; origin nodedestination
- Node; destination noderouteGenerator
- RouteGeneratorOD; route generatorGTUException
- if fixed tactical planner == nullpublic final LaneBasedTacticalPlanner getTacticalPlanner()
getTacticalPlanner
in interface StrategicalPlanner
getTacticalPlanner
in interface LaneBasedStrategicalPlanner
public LaneBasedTacticalPlanner getTacticalPlanner(Time time)
getTacticalPlanner
in interface StrategicalPlanner
getTacticalPlanner
in interface LaneBasedStrategicalPlanner
public final Node nextNode(Link link, GTUDirectionality direction, GTUType gtuType) throws NetworkException
nextNode
in interface StrategicalPlanner
NetworkException
public final LinkDirection nextLinkDirection(Link link, GTUDirectionality direction, GTUType gtuType) throws NetworkException
nextLinkDirection
in interface StrategicalPlanner
NetworkException
public final Node nextNode(Node node, Link previousLink, GTUType gtuType) throws NetworkException
nextNode
in interface StrategicalPlanner
NetworkException
public final LinkDirection nextLinkDirection(Node node, Link previousLink, GTUType gtuType) throws NetworkException
nextLinkDirection
in interface StrategicalPlanner
NetworkException
public final Route getRoute()
getRoute
in interface StrategicalPlanner
public final Node getOrigin()
getOrigin
in interface StrategicalPlanner
public final Node getDestination()
getDestination
in interface StrategicalPlanner
Copyright © 2014–2019 Delft University of Technology. All rights reserved.