public class LaneBasedStrategicalRoutePlannerFactory extends AbstractLaneBasedStrategicalPlannerFactory<LaneBasedStrategicalPlanner> implements Serializable
LaneBasedStrategicalRoutePlanner
using any LaneBasedTacticalPlannerFactory
.
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.
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,
RouteGeneratorOD routeGenerator)
Constructor with factory for tactical planners.
|
LaneBasedStrategicalRoutePlannerFactory(LaneBasedTacticalPlannerFactory<? extends LaneBasedTacticalPlanner> tacticalPlannerFactory,
RouteGeneratorOD routeGenerator)
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
- LaneBasedTacticalPlannerFactory<? extends LaneBasedTacticalPlanner>; factory for
tactical plannerspublic LaneBasedStrategicalRoutePlannerFactory(LaneBasedTacticalPlannerFactory<? extends LaneBasedTacticalPlanner> tacticalPlannerFactory, RouteGeneratorOD routeGenerator)
tacticalPlannerFactory
- LaneBasedTacticalPlannerFactory<? extends LaneBasedTacticalPlanner>; factory for
tactical plannersrouteGenerator
- RouteGeneratorOD; route generatorpublic LaneBasedStrategicalRoutePlannerFactory(LaneBasedTacticalPlannerFactory<? extends LaneBasedTacticalPlanner> tacticalPlannerFactory, ParameterFactory parametersFactory)
tacticalPlannerFactory
- LaneBasedTacticalPlannerFactory<? extends LaneBasedTacticalPlanner>; factory for
tactical plannersparametersFactory
- ParameterFactory; factory for parameterspublic LaneBasedStrategicalRoutePlannerFactory(LaneBasedTacticalPlannerFactory<? extends LaneBasedTacticalPlanner> tacticalPlannerFactory, ParameterFactory parametersFactory, RouteGeneratorOD routeGenerator)
tacticalPlannerFactory
- LaneBasedTacticalPlannerFactory<? extends LaneBasedTacticalPlanner>; factory for
tactical plannersparametersFactory
- ParameterFactory; factory for parametersrouteGenerator
- RouteGeneratorOD; route supplierpublic final LaneBasedStrategicalPlanner create(LaneBasedGTU gtu, Route route, Node origin, Node destination) throws GTUException
create
in interface LaneBasedStrategicalPlannerFactory<LaneBasedStrategicalPlanner>
gtu
- LaneBasedGTU; GTUroute
- Route; route, may be nullorigin
- Node; origin, may be nulldestination
- Node; 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–2019 Delft University of Technology. All rights reserved.