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 forDefaultGTUCharacteristicsGeneratorOD
.Copyright (c) 2013-2022 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 DefaultGTUCharacteristicsGeneratorOD
create()
Creates the default GTU characteristics generator based on OD information.DefaultGTUCharacteristicsGeneratorOD.Factory
setFactorySupplier(StrategicalPlannerFactorySupplierOD factorySupplier)
DefaultGTUCharacteristicsGeneratorOD.Factory
setGtuTypeGenerator(Generator<GTUType> gtuTypeGenerator)
DefaultGTUCharacteristicsGeneratorOD.Factory
setRouteSupplier(RouteGeneratorOD routeSupplier)
DefaultGTUCharacteristicsGeneratorOD.Factory
setTemplates(Set<TemplateGTUType> templates)
DefaultGTUCharacteristicsGeneratorOD.Factory
setVehicleModelGenerator(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(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
-
-