Interface StrategicalPlannerFactorySupplierOD
-
public interface StrategicalPlannerFactorySupplierOD
Supplies a strategical planner factory within DefaultGTUCharacteristicsGeneratorOD.Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 26 mrt. 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
StrategicalPlannerFactorySupplierOD.TacticalPlannerFactorySupplierOD
Interface for tactical factory supplier based on OD information.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description LaneBasedStrategicalPlannerFactory<?>
getFactory(Node origin, Node destination, Category category, StreamInterface randomStream)
Supplies a strategical factory.static StrategicalPlannerFactorySupplierOD
lmrs()
Returns a standard implementation for LMRS.static StrategicalPlannerFactorySupplierOD
route(StrategicalPlannerFactorySupplierOD.TacticalPlannerFactorySupplierOD tacticalPlannerFactorySupplierOD)
Returns aStrategicalPlannerFactorySupplierOD
using aLaneBasedStrategicalRoutePlannerFactory
with a tactical planner factory based on the given supplier.
-
-
-
Method Detail
-
getFactory
LaneBasedStrategicalPlannerFactory<?> getFactory(Node origin, Node destination, Category category, StreamInterface randomStream) throws GTUException
Supplies a strategical factory.- Parameters:
origin
- Node; origindestination
- Node; destinationcategory
- Category; category (GTU type, route, or more)randomStream
- StreamInterface; stream for random numbers- Returns:
- LaneBasedGTUCharacteristics
- Throws:
GTUException
- if characteristics could not be generated for the GTUException
-
lmrs
static StrategicalPlannerFactorySupplierOD lmrs()
Returns a standard implementation for LMRS.- Returns:
- standard implementation for LMRS
-
route
static StrategicalPlannerFactorySupplierOD route(StrategicalPlannerFactorySupplierOD.TacticalPlannerFactorySupplierOD tacticalPlannerFactorySupplierOD)
Returns aStrategicalPlannerFactorySupplierOD
using aLaneBasedStrategicalRoutePlannerFactory
with a tactical planner factory based on the given supplier. Simulations using this strategical level can be more easily specified in this manner.- Parameters:
tacticalPlannerFactorySupplierOD
- TacticalPlannerFactorySupplierOD; tactical planner factory based on OD information- Returns:
- strategical factory with default strategical layer and specified tactical layer
-
-