Class TemplateGTUType

  • All Implemented Interfaces:
    java.io.Serializable, Generator<GTUCharacteristics>

    public class TemplateGTUType
    extends java.lang.Object
    implements java.io.Serializable, Generator<GTUCharacteristics>
    TemplateGTUType stores some of the information that is needed to generate a GTU.

    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.

    $LastChangedDate: 2020-01-23 11:14:19 +0100 (Thu, 23 Jan 2020) $, @version $Revision: 6010 $, by $Author: averbraeck $, initial version Jul 8, 2014

    Author:
    Alexander Verbraeck
    See Also:
    Serialized Form
    • Constructor Detail

      • TemplateGTUType

        public TemplateGTUType​(GTUType gtuType,
                               Generator<Length> lengthGenerator,
                               Generator<Length> widthGenerator,
                               Generator<Speed> maximumSpeedGenerator)
                        throws java.lang.NullPointerException
        Parameters:
        gtuType - GTUType; GTUType, the GTUType to make it identifiable.
        lengthGenerator - Generator<Length>; generator for the length of the GTU type (parallel with driving direction).
        widthGenerator - Generator<Length>; generator for the width of the GTU type (perpendicular to driving direction).
        maximumSpeedGenerator - Generator<Speed>; generator for the maximum speed of the GTU type (in the driving direction).
        Throws:
        java.lang.NullPointerException - when one of the arguments is null
      • TemplateGTUType

        public TemplateGTUType​(GTUType gtuType,
                               Generator<Length> lengthGenerator,
                               Generator<Length> widthGenerator,
                               Generator<Speed> maximumSpeedGenerator,
                               Generator<Acceleration> maximumAccelerationGenerator,
                               Generator<Acceleration> maximumDecelerationGenerator)
                        throws java.lang.NullPointerException
        Parameters:
        gtuType - GTUType; GTUType, the GTUType to make it identifiable.
        lengthGenerator - Generator<Length>; generator for the length of the GTU type (parallel with driving direction).
        widthGenerator - Generator<Length>; generator for the width of the GTU type (perpendicular to driving direction).
        maximumSpeedGenerator - Generator<Speed>; generator for the maximum speed of the GTU type (in the driving direction).
        maximumAccelerationGenerator - Generator<Acceleration>; generator for the maximum acceleration of the GTU type
        maximumDecelerationGenerator - Generator<Acceleration>; generator for the maximum deceleration of the GTU type
        Throws:
        java.lang.NullPointerException - when one of the arguments is null