Package org.opentrafficsim.core.gtu
Class GtuDumper
java.lang.Object
org.opentrafficsim.core.gtu.GtuDumper
GTUDUmper; create a text file with the locations, directions and speeds of all GTUs at regular intervals.
Copyright (c) 2019-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 Summary
-
Method Summary
-
Constructor Details
-
GtuDumper
public GtuDumper(org.djunits.value.vdouble.scalar.Time firstDumpTime, org.djunits.value.vdouble.scalar.Duration interval, Network network, String fileNamePrefix) throws nl.tudelft.simulation.dsol.SimRuntimeException Construct a new GTUDumper.- Parameters:
firstDumpTime
- Time; the time of the first dumpinterval
- Duration; the interval until each subsequent dumpnetwork
- Network; the network (that will contain the GTUs to dump)fileNamePrefix
- String; directory and first part if the file names; the simulation time of the dump will be appended to the file name. The file type will be .txt- Throws:
nl.tudelft.simulation.dsol.SimRuntimeException
- when scheduling the first dump time fails
-
-
Method Details