public class LaneBasedStrategicalRoutePlannerFactory extends Object implements LaneBasedStrategicalPlannerFactory<LaneBasedStrategicalPlanner>, Serializable
LaneBasedStrategicalRoutePlanner
using any LaneBasedTacticalPlannerFactory
.
Copyright (c) 2013-2017 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,
org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristicsFactory behavioralCharacteristicsFactory)
Constructor with factory for tactical planners.
|
Modifier and Type | Method and Description |
---|---|
LaneBasedStrategicalPlanner |
create(LaneBasedGTU gtu,
org.opentrafficsim.core.network.route.Route route)
Creates a new strategical planner for the given GTU.
|
String |
toString() |
public LaneBasedStrategicalRoutePlannerFactory(LaneBasedTacticalPlannerFactory<? extends LaneBasedTacticalPlanner> tacticalPlannerFactory)
tacticalPlannerFactory
- factory for tactical plannerspublic LaneBasedStrategicalRoutePlannerFactory(LaneBasedTacticalPlannerFactory<? extends LaneBasedTacticalPlanner> tacticalPlannerFactory, org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristicsFactory behavioralCharacteristicsFactory)
tacticalPlannerFactory
- factory for tactical plannersbehavioralCharacteristicsFactory
- factory for behavioral characteristicspublic final LaneBasedStrategicalPlanner create(LaneBasedGTU gtu, org.opentrafficsim.core.network.route.Route route) throws org.opentrafficsim.core.gtu.GTUException
create
in interface LaneBasedStrategicalPlannerFactory<LaneBasedStrategicalPlanner>
gtu
- GTUroute
- routeorg.opentrafficsim.core.gtu.GTUException
- if the gtu is not suitable in any way for the creation of the strategical plannerCopyright © 2014–2017 Delft University of Technology. All rights reserved.