Package org.opentrafficsim.road.gtu.lane
Interface VehicleModelFactory
public interface VehicleModelFactory
Factory for vehicle models.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Field Summary
Modifier and TypeFieldDescriptionstatic final VehicleModelFactory
Acceleration bounded vehicle model.static final VehicleModelFactory
No vehicle model. -
Method Summary
Modifier and TypeMethodDescriptionCreate next vehicle model for given GTU type.static VehicleModelFactory
fixed
(VehicleModel vehicleModel) Factory returning the same instance always.
-
Field Details
-
NONE
No vehicle model. -
MINMAX
Acceleration bounded vehicle model.
-
-
Method Details
-
fixed
Factory returning the same instance always.- Parameters:
vehicleModel
- VehicleModel; vehicle model- Returns:
- fixed vehicle model
-
create
Create next vehicle model for given GTU type.- Parameters:
gtuType
- GtuType; GTU type- Returns:
- next vehicle model for given GTU type
-