Class IdGenerator

  • All Implemented Interfaces:
    Serializable

    public class IdGenerator
    extends Object
    implements Serializable
    Generate names for any kind of object.

    Copyright (c) 2013-2022 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 Mar 4, 2016
    Author:
    Peter Knoppers
    See Also:
    Serialized Form
    • Constructor Detail

      • IdGenerator

        public IdGenerator​(String baseName)
        Construct a new IdGenerator.
        Parameters:
        baseName - String; all generated names start with this string
    • Method Detail

      • nextId

        public final String nextId()
        Generate an id.
        Returns:
        String; the generated id