public class LaneBasedStrategicalRoutePlannerFactory extends AbstractLaneBasedStrategicalPlannerFactory<LaneBasedStrategicalPlanner> implements Serializable
LaneBasedStrategicalRoutePlanner
using any LaneBasedTacticalPlannerFactory
.
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.
Constructor and Description |
---|
LaneBasedStrategicalRoutePlannerFactory(LaneBasedTacticalPlannerFactory<? extends LaneBasedTacticalPlanner> tacticalPlannerFactory)
Constructor with factory for tactical planners.
|
LaneBasedStrategicalRoutePlannerFactory(LaneBasedTacticalPlannerFactory<? extends LaneBasedTacticalPlanner> tacticalPlannerFactory,
ParameterFactory parametersFactory)
Constructor with factory for tactical planners.
|
LaneBasedStrategicalRoutePlannerFactory(LaneBasedTacticalPlannerFactory<? extends LaneBasedTacticalPlanner> tacticalPlannerFactory,
ParameterFactory parametersFactory,
RouteSupplier routeSupplier)
Constructor with factory for tactical planners.
|
LaneBasedStrategicalRoutePlannerFactory(LaneBasedTacticalPlannerFactory<? extends LaneBasedTacticalPlanner> tacticalPlannerFactory,
RouteSupplier routeSupplier)
Constructor with factory for tactical planners.
|
Modifier and Type | Method and Description |
---|---|
LaneBasedStrategicalPlanner |
create(LaneBasedGTU gtu,
Route route,
Node origin,
Node destination)
Creates a new strategical planner for the given GTU.
|
protected Parameters |
getParameters()
Returns parameters specific to the strategical planner.
|
String |
toString() |
getTacticalPlannerFactory, nextParameters, nextTacticalPlanner, peekDesiredHeadway, peekDesiredSpeed
public LaneBasedStrategicalRoutePlannerFactory(LaneBasedTacticalPlannerFactory<? extends LaneBasedTacticalPlanner> tacticalPlannerFactory)
tacticalPlannerFactory
- factory for tactical plannerspublic LaneBasedStrategicalRoutePlannerFactory(LaneBasedTacticalPlannerFactory<? extends LaneBasedTacticalPlanner> tacticalPlannerFactory, RouteSupplier routeSupplier)
tacticalPlannerFactory
- factory for tactical plannersrouteSupplier
- route supplierpublic LaneBasedStrategicalRoutePlannerFactory(LaneBasedTacticalPlannerFactory<? extends LaneBasedTacticalPlanner> tacticalPlannerFactory, ParameterFactory parametersFactory)
tacticalPlannerFactory
- factory for tactical plannersparametersFactory
- factory for parameterspublic LaneBasedStrategicalRoutePlannerFactory(LaneBasedTacticalPlannerFactory<? extends LaneBasedTacticalPlanner> tacticalPlannerFactory, ParameterFactory parametersFactory, RouteSupplier routeSupplier)
tacticalPlannerFactory
- factory for tactical plannersparametersFactory
- factory for parametersrouteSupplier
- route supplierpublic final LaneBasedStrategicalPlanner create(LaneBasedGTU gtu, Route route, Node origin, Node destination) throws GTUException
create
in interface LaneBasedStrategicalPlannerFactory<LaneBasedStrategicalPlanner>
gtu
- GTUroute
- route, may be nullorigin
- origin, may be nulldestination
- destination, may be nullGTUException
- if the gtu is not suitable in any way for the creation of the strategical plannerprotected Parameters getParameters()
ParameterFactory
sets or overwrites additional parameters. Hence, this method may set
default (distributed) values for parameters specific to the strategical planner.getParameters
in class AbstractLaneBasedStrategicalPlannerFactory<LaneBasedStrategicalPlanner>
null
Copyright © 2014–2018 Delft University of Technology. All rights reserved.