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 Details

  • Method Details

    • 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