Package org.opentrafficsim.road.gtu.lane
Interface VehicleModelFactory
-
public interface VehicleModelFactory
Factory for vehicle models.Copyright (c) 2013-2020 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
-
-
Field Summary
Fields Modifier and Type Field Description static VehicleModelFactory
MINMAX
Acceleration bounded vehicle model.static VehicleModelFactory
NONE
No vehicle model.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description VehicleModel
create(GTUType gtuType)
Create next vehicle model for given GTU type.static VehicleModelFactory
fixed(VehicleModel vehicleModel)
Factory returning the same instance always.
-
-
-
Field Detail
-
NONE
static final VehicleModelFactory NONE
No vehicle model.
-
MINMAX
static final VehicleModelFactory MINMAX
Acceleration bounded vehicle model.
-
-
Method Detail
-
fixed
static VehicleModelFactory fixed(VehicleModel vehicleModel)
Factory returning the same instance always.- Parameters:
vehicleModel
- VehicleModel; vehicle model- Returns:
- fixed vehicle model
-
create
VehicleModel create(GTUType gtuType)
Create next vehicle model for given GTU type.- Parameters:
gtuType
- GTUType; GTU type- Returns:
- next vehicle model for given GTU type
-
-