Interface GTUCharacteristicsGeneratorOD

  • All Known Implementing Classes:
    DefaultGTUCharacteristicsGeneratorOD

    public interface GTUCharacteristicsGeneratorOD
    Interface for classes that generate GTU characteristics based on an OD. Contrary to lower-level vehicle generation, the OD can pre-determine some information, such as GTU type and route.

    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 9 dec. 2017
    Author:
    Alexander Verbraeck, Peter Knoppers, Wouter Schakel
    • Method Detail

      • draw

        LaneBasedGTUCharacteristics draw​(Node origin,
                                         Node destination,
                                         Category category,
                                         StreamInterface randomStream)
                                  throws GTUException
        Generate new LaneBasedGTUCharacteristics using given input from OD.
        Parameters:
        origin - Node; origin
        destination - Node; destination
        category - Category; category (GTU type, route, or more)
        randomStream - StreamInterface; stream for random numbers
        Returns:
        LaneBasedGTUCharacteristics
        Throws:
        GTUException - if characteristics could not be generated for the GTUException