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
    • 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