Class DefaultGTUCharacteristicsGeneratorOD.Factory
- java.lang.Object
-
- org.opentrafficsim.road.gtu.generator.od.DefaultGTUCharacteristicsGeneratorOD.Factory
-
- Enclosing class:
- DefaultGTUCharacteristicsGeneratorOD
public static class DefaultGTUCharacteristicsGeneratorOD.Factory extends java.lang.ObjectFactory forDefaultGTUCharacteristicsGeneratorOD.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
All Methods Instance Methods Concrete Methods 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(java.util.Set<TemplateGTUType> templates)DefaultGTUCharacteristicsGeneratorOD.FactorysetVehicleModelGenerator(VehicleModelFactory vehicleModelFactory)
-
-
-
Method Detail
-
setGtuTypeGenerator
public DefaultGTUCharacteristicsGeneratorOD.Factory setGtuTypeGenerator(Generator<GTUType> gtuTypeGenerator)
- Parameters:
gtuTypeGenerator- Generator<GTUType>; set gtuTypeGenerator.- Returns:
- Factory; this factory for method chaining
-
setTemplates
public DefaultGTUCharacteristicsGeneratorOD.Factory setTemplates(java.util.Set<TemplateGTUType> templates)
- 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
public DefaultGTUCharacteristicsGeneratorOD create()
Creates the default GTU characteristics generator based on OD information.- Returns:
- default GTU characteristics generator based on OD information
-
-