public class LaneBasedStrategicalRoutePlannerFactory extends Object implements LaneBasedStrategicalPlannerFactory<LaneBasedStrategicalPlanner>, Serializable
LaneBasedStrategicalRoutePlanner
using any LaneBasedTacticalPlannerFactory
.
Copyright (c) 2013-2016 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.network.route.RouteGenerator routeGenerator)
Constructor with factory for tactical planners and route generator.
|
Modifier and Type | Method and Description |
---|---|
LaneBasedStrategicalPlanner |
create(LaneBasedGTU gtu)
Creates a new strategical planner for the given GTU.
|
org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics |
getDefaultBehavioralCharacteristics()
Returns a set of behavioral characteristics with default values for the next strategical planner that will be generated.
|
void |
setBehavioralCharacteristics(org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics)
Set behavioral characteristics to use with the next creation of a strategical planner.
|
String |
toString() |
public LaneBasedStrategicalRoutePlannerFactory(LaneBasedTacticalPlannerFactory<? extends LaneBasedTacticalPlanner> tacticalPlannerFactory)
tacticalPlannerFactory
- factory for tactical plannerspublic LaneBasedStrategicalRoutePlannerFactory(LaneBasedTacticalPlannerFactory<? extends LaneBasedTacticalPlanner> tacticalPlannerFactory, org.opentrafficsim.core.network.route.RouteGenerator routeGenerator)
tacticalPlannerFactory
- factory for tactical plannersrouteGenerator
- route generatorpublic final org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics getDefaultBehavioralCharacteristics()
getDefaultBehavioralCharacteristics
in interface LaneBasedStrategicalPlannerFactory<LaneBasedStrategicalPlanner>
public final void setBehavioralCharacteristics(org.opentrafficsim.core.gtu.behavioralcharacteristics.BehavioralCharacteristics behavioralCharacteristics)
setBehavioralCharacteristics
in interface LaneBasedStrategicalPlannerFactory<LaneBasedStrategicalPlanner>
behavioralCharacteristics
- behavioral characteristics to use with the next creation of a strategical plannerpublic final LaneBasedStrategicalPlanner create(LaneBasedGTU gtu) throws org.opentrafficsim.core.gtu.GTUException
create
in interface LaneBasedStrategicalPlannerFactory<LaneBasedStrategicalPlanner>
gtu
- GTUorg.opentrafficsim.core.gtu.GTUException
- if the gtu is not suitable in any way for the creation of the strategical plannerCopyright © 2014–2016 Delft University of Technology. All rights reserved.