Class HeadwayGenerator

java.lang.Object
org.opentrafficsim.road.gtu.generator.headway.HeadwayGenerator
All Implemented Interfaces:
Supplier<Duration>

public class HeadwayGenerator extends Object implements Supplier<Duration>
Headway supplier using independent arrivals (exponential distribution) at a fixed average rate.

Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
  • Constructor Details

    • HeadwayGenerator

      public HeadwayGenerator(Frequency demand, nl.tudelft.simulation.jstats.streams.StreamInterface stream)
      Constructor.
      Parameters:
      demand - demand.
      stream - the stream to use for generation.
  • Method Details