public final class DefaultGTUCharacteristicsGeneratorOD extends Object implements GTUCharacteristicsGeneratorOD
LaneBasedGTUCharacteristics.
 
 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 | 
|---|
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<org.opentrafficsim.core.gtu.TemplateGTUType> templates)
Constructor using route supplier, provided GTU templates and LMRS. 
 | 
DefaultGTUCharacteristicsGeneratorOD(RouteSupplier routeSupplier,
                                    Set<org.opentrafficsim.core.gtu.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<org.opentrafficsim.core.gtu.TemplateGTUType> templates)
Constructor using null-routes, provided GTU templates and LMRS. 
 | 
DefaultGTUCharacteristicsGeneratorOD(Set<org.opentrafficsim.core.gtu.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(org.opentrafficsim.core.network.Node origin,
    org.opentrafficsim.core.network.Node destination,
    Category category,
    nl.tudelft.simulation.jstats.streams.StreamInterface randomStream)
Generate new  
LaneBasedGTUCharacteristics using given input from OD. | 
public DefaultGTUCharacteristicsGeneratorOD()
public DefaultGTUCharacteristicsGeneratorOD(RouteSupplier routeSupplier)
routeSupplier - RouteSupplier; route supplierpublic DefaultGTUCharacteristicsGeneratorOD(RouteSupplier routeSupplier, Set<org.opentrafficsim.core.gtu.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<org.opentrafficsim.core.gtu.TemplateGTUType> templates, StrategicalPlannerFactorySupplierOD factorySupplier)
routeSupplier - RouteSupplier; route suppliertemplates - Set<TemplateGTUType>; templatesfactorySupplier - StrategicalPlannerFactorySupplier; strategical factory supplierpublic DefaultGTUCharacteristicsGeneratorOD(Set<org.opentrafficsim.core.gtu.TemplateGTUType> templates)
templates - Set<TemplateGTUType>; templatespublic DefaultGTUCharacteristicsGeneratorOD(Set<org.opentrafficsim.core.gtu.TemplateGTUType> templates, StrategicalPlannerFactorySupplierOD factorySupplier)
templates - Set<TemplateGTUType>; templatesfactorySupplier - StrategicalPlannerFactorySupplier; strategical factory supplierpublic DefaultGTUCharacteristicsGeneratorOD(StrategicalPlannerFactorySupplierOD factorySupplier)
factorySupplier - StrategicalPlannerFactorySupplier; strategical factory supplierpublic LaneBasedGTUCharacteristics draw(org.opentrafficsim.core.network.Node origin, org.opentrafficsim.core.network.Node destination, Category category, nl.tudelft.simulation.jstats.streams.StreamInterface randomStream) throws org.opentrafficsim.core.gtu.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 numbersorg.opentrafficsim.core.gtu.GTUException - if characteristics could not be generated for the GTUExceptionCopyright © 2014–2018 Delft University of Technology. All rights reserved.