Class ODApplier.GeneratorObjects

  • Enclosing class:
    ODApplier

    public static class ODApplier.GeneratorObjects
    extends Object
    Class to contain created generator objects.

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

      • GeneratorObjects

        public GeneratorObjects​(LaneBasedGTUGenerator generator,
                                Generator<Duration> headwayGenerator,
                                LaneBasedGTUCharacteristicsGenerator characteristicsGenerator)
        Parameters:
        generator - LaneBasedGTUGenerator; main generator for GTU's
        headwayGenerator - Generator<Duration>; generator of headways
        characteristicsGenerator - LaneBasedGTUCharacteristicsGenerator; generator of GTU characteristics
    • Method Detail

      • getGenerator

        public LaneBasedGTUGenerator getGenerator()
        Returns the main generator for GTU's.
        Returns:
        LaneBasedGTUGenerator; main generator for GTU's
      • getHeadwayGenerator

        public Generator<Duration> getHeadwayGenerator()
        Returns the generator of headways.
        Returns:
        Generator<Duration> generator of headways
      • getCharachteristicsGenerator

        public LaneBasedGTUCharacteristicsGenerator getCharachteristicsGenerator()
        Returns the generator of GTU characteristics.
        Returns:
        LaneBasedGTUCharacteristicsGenerator; generator of GTU characteristics