public final class DefaultGTUCharacteristicsGeneratorOD extends Object implements GTUCharacteristicsGeneratorOD
LaneBasedGTUCharacteristics.
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.
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultGTUCharacteristicsGeneratorOD.Factory
Factory for
DefaultGTUCharacteristicsGeneratorOD. |
| Constructor and Description |
|---|
DefaultGTUCharacteristicsGeneratorOD()
Constructor using null-routes, default GTU characteristics and LMRS.
|
DefaultGTUCharacteristicsGeneratorOD(Generator<GTUType> gtuTypeGenerator,
RouteGeneratorOD routeGenerator,
Set<TemplateGTUType> templates,
StrategicalPlannerFactorySupplierOD factorySupplier)
Constructor using route supplier, provided GTU templates and provided strategical planner factory supplier.
|
DefaultGTUCharacteristicsGeneratorOD(RouteGeneratorOD routeGenerator)
Constructor using route generator, default GTU characteristics and LMRS.
|
DefaultGTUCharacteristicsGeneratorOD(RouteGeneratorOD routeSupplier,
Set<TemplateGTUType> templates)
Constructor using route supplier, provided GTU templates and LMRS.
|
DefaultGTUCharacteristicsGeneratorOD(RouteGeneratorOD routeGenerator,
StrategicalPlannerFactorySupplierOD factorySupplier)
Constructor using route supplier, default GTU characteristics and provided strategical planner factory supplier.
|
DefaultGTUCharacteristicsGeneratorOD(Set<TemplateGTUType> templates)
Constructor using null-routes, provided GTU templates and LMRS.
|
DefaultGTUCharacteristicsGeneratorOD(Set<TemplateGTUType> templates,
StrategicalPlannerFactorySupplierOD factorySupplier)
Constructor using null-routes, provided GTU templates and provided strategical planner factory supplier.
|
DefaultGTUCharacteristicsGeneratorOD(StrategicalPlannerFactorySupplierOD factorySupplier)
Constructor using using null-routes, default GTU characteristics and provided GTU templates and provided strategical
planner factory supplier.
|
| Modifier and Type | Method and Description |
|---|---|
LaneBasedGTUCharacteristics |
draw(Node origin,
Node destination,
Category category,
StreamInterface randomStream)
Generate new
LaneBasedGTUCharacteristics using given input from OD. |
public DefaultGTUCharacteristicsGeneratorOD()
public DefaultGTUCharacteristicsGeneratorOD(RouteGeneratorOD routeGenerator)
routeGenerator - RouteGeneratorOD; route generatorpublic DefaultGTUCharacteristicsGeneratorOD(RouteGeneratorOD routeSupplier, Set<TemplateGTUType> templates)
routeSupplier - RouteGeneratorOD; route suppliertemplates - Set<TemplateGTUType>; templatespublic DefaultGTUCharacteristicsGeneratorOD(RouteGeneratorOD routeGenerator, StrategicalPlannerFactorySupplierOD factorySupplier)
routeGenerator - RouteGeneratorOD; route generatorfactorySupplier - StrategicalPlannerFactorySupplierOD; strategical factory supplierpublic DefaultGTUCharacteristicsGeneratorOD(Generator<GTUType> gtuTypeGenerator, RouteGeneratorOD routeGenerator, Set<TemplateGTUType> templates, StrategicalPlannerFactorySupplierOD factorySupplier)
gtuTypeGenerator - Generator<GTUType>; GTU type generatorrouteGenerator - RouteGeneratorOD; route generatortemplates - Set<TemplateGTUType>; templatesfactorySupplier - StrategicalPlannerFactorySupplierOD; strategical factory supplierpublic DefaultGTUCharacteristicsGeneratorOD(Set<TemplateGTUType> templates)
templates - Set<TemplateGTUType>; templatespublic DefaultGTUCharacteristicsGeneratorOD(Set<TemplateGTUType> templates, StrategicalPlannerFactorySupplierOD factorySupplier)
templates - Set<TemplateGTUType>; templatesfactorySupplier - StrategicalPlannerFactorySupplierOD; strategical factory supplierpublic DefaultGTUCharacteristicsGeneratorOD(StrategicalPlannerFactorySupplierOD factorySupplier)
factorySupplier - StrategicalPlannerFactorySupplierOD; strategical factory supplierpublic LaneBasedGTUCharacteristics draw(Node origin, Node destination, Category category, StreamInterface randomStream) throws GTUException
LaneBasedGTUCharacteristics using given input from OD.draw in interface GTUCharacteristicsGeneratorODorigin - Node; origindestination - Node; destinationcategory - Category; category (GTU type, route, or more)randomStream - StreamInterface; stream for random numbersGTUException - if characteristics could not be generated for the GTUExceptionCopyright © 2014–2019 Delft University of Technology. All rights reserved.