Class ListHeadways
- java.lang.Object
-
- org.opentrafficsim.road.gtu.generator.headway.ListHeadways
-
public class ListHeadways extends Object implements Generator<Duration>
Headway generator that takes it's input from a file.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 11 jan. 2018
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Constructor Summary
Constructors Constructor Description ListHeadways(String fileName)
Constructor using file.
-
-
-
Constructor Detail
-
ListHeadways
public ListHeadways(String fileName)
Constructor using file.- Parameters:
fileName
- String; file with arrival times
-
-
Method Detail
-
draw
public Duration draw() throws ProbabilityException, org.opentrafficsim.base.parameters.ParameterException
- Specified by:
draw
in interfaceGenerator<Duration>
- Throws:
ProbabilityException
org.opentrafficsim.base.parameters.ParameterException
-
-