Class DefaultGTUCharacteristicsGeneratorOD.Factory
java.lang.Object
org.opentrafficsim.road.gtu.generator.od.DefaultGTUCharacteristicsGeneratorOD.Factory
- Enclosing class:
- DefaultGTUCharacteristicsGeneratorOD
public static class DefaultGTUCharacteristicsGeneratorOD.Factory extends Object
Factory for
DefaultGTUCharacteristicsGeneratorOD.
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.
- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 8 jan. 2019
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Constructor Summary
Constructors Constructor Description Factory() -
Method Summary
Modifier and Type Method Description DefaultGTUCharacteristicsGeneratorODcreate()Creates the default GTU characteristics generator based on OD information.DefaultGTUCharacteristicsGeneratorOD.FactorysetFactorySupplier(StrategicalPlannerFactorySupplierOD factorySupplier)DefaultGTUCharacteristicsGeneratorOD.FactorysetGtuTypeGenerator(Generator<GTUType> gtuTypeGenerator)DefaultGTUCharacteristicsGeneratorOD.FactorysetRouteSupplier(RouteGeneratorOD routeSupplier)DefaultGTUCharacteristicsGeneratorOD.FactorysetTemplates(Set<TemplateGTUType> templates)DefaultGTUCharacteristicsGeneratorOD.FactorysetVehicleModelGenerator(VehicleModelFactory vehicleModelFactory)
-
Constructor Details
-
Factory
public Factory()
-
-
Method Details
-
setGtuTypeGenerator
public DefaultGTUCharacteristicsGeneratorOD.Factory setGtuTypeGenerator(Generator<GTUType> gtuTypeGenerator)- Parameters:
gtuTypeGenerator- Generator<GTUType>; set gtuTypeGenerator.- Returns:
- Factory; this factory for method chaining
-
setTemplates
- Parameters:
templates- Set<TemplateGTUType>; set templates.- Returns:
- Factory; this factory for method chaining
-
setRouteSupplier
public DefaultGTUCharacteristicsGeneratorOD.Factory setRouteSupplier(RouteGeneratorOD routeSupplier)- Parameters:
routeSupplier- RouteGeneratorOD; set routeSupplier.- Returns:
- Factory; this factory for method chaining
-
setFactorySupplier
public DefaultGTUCharacteristicsGeneratorOD.Factory setFactorySupplier(StrategicalPlannerFactorySupplierOD factorySupplier)- Parameters:
factorySupplier- StrategicalPlannerFactorySupplierOD; set factorySupplier.- Returns:
- Factory; this factory for method chaining
-
setVehicleModelGenerator
public DefaultGTUCharacteristicsGeneratorOD.Factory setVehicleModelGenerator(VehicleModelFactory vehicleModelFactory)- Parameters:
vehicleModelFactory- VehicleModelFactory; set vehicleModelFactory.- Returns:
- Factory; this factory for method chaining
-
create
Creates the default GTU characteristics generator based on OD information.- Returns:
- default GTU characteristics generator based on OD information
-