public final class DefaultGTUCharacteristicsGeneratorOD extends Object implements GTUCharacteristicsGeneratorOD
LaneBasedGTUCharacteristics.
Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Constructor and Description |
|---|
DefaultGTUCharacteristicsGeneratorOD()
Constructor using null-routes, default GTU characteristics and LMRS.
|
DefaultGTUCharacteristicsGeneratorOD(RouteSupplier routeSupplier)
Constructor using route supplier, default GTU characteristics and LMRS.
|
DefaultGTUCharacteristicsGeneratorOD(RouteSupplier routeSupplier,
Set<TemplateGTUType> templates)
Constructor using route supplier, provided GTU templates and LMRS.
|
DefaultGTUCharacteristicsGeneratorOD(RouteSupplier routeSupplier,
Set<TemplateGTUType> templates,
StrategicalPlannerFactorySupplierOD factorySupplier)
Constructor using route supplier, provided GTU templates and provided strategical planner factory supplier.
|
DefaultGTUCharacteristicsGeneratorOD(RouteSupplier routeSupplier,
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(RouteSupplier routeSupplier)
routeSupplier - RouteSupplier; route supplierpublic DefaultGTUCharacteristicsGeneratorOD(RouteSupplier routeSupplier, Set<TemplateGTUType> templates)
routeSupplier - RouteSupplier; route suppliertemplates - Set<TemplateGTUType>; templatespublic DefaultGTUCharacteristicsGeneratorOD(RouteSupplier routeSupplier, StrategicalPlannerFactorySupplierOD factorySupplier)
routeSupplier - RouteSupplier; route supplierfactorySupplier - StrategicalPlannerFactorySupplier; strategical factory supplierpublic DefaultGTUCharacteristicsGeneratorOD(RouteSupplier routeSupplier, Set<TemplateGTUType> templates, StrategicalPlannerFactorySupplierOD factorySupplier)
routeSupplier - RouteSupplier; route suppliertemplates - Set<TemplateGTUType>; templatesfactorySupplier - StrategicalPlannerFactorySupplier; strategical factory supplierpublic DefaultGTUCharacteristicsGeneratorOD(Set<TemplateGTUType> templates)
templates - Set<TemplateGTUType>; templatespublic DefaultGTUCharacteristicsGeneratorOD(Set<TemplateGTUType> templates, StrategicalPlannerFactorySupplierOD factorySupplier)
templates - Set<TemplateGTUType>; templatesfactorySupplier - StrategicalPlannerFactorySupplier; strategical factory supplierpublic DefaultGTUCharacteristicsGeneratorOD(StrategicalPlannerFactorySupplierOD factorySupplier)
factorySupplier - StrategicalPlannerFactorySupplier; 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–2018 Delft University of Technology. All rights reserved.