Class RunParser


  • public final class RunParser
    extends Object
    RunParser parses the XML nodes of the RUN tag, including the RANDOMSTREAM tags.

    Copyright (c) 2003-2020 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. BSD-style license. See OpenTrafficSim License.

    Author:
    Alexander Verbraeck
    • Method Detail

      • parseRun

        public static ExperimentRunControl.TimeDoubleUnit parseRun​(String networkId,
                                                                   RUN run,
                                                                   StreamSeedInformation streamInformation,
                                                                   OTSSimulatorInterface simulator)
                                                            throws XmlParserException
        Parse the RUN tag in the OTS XML file.
        Parameters:
        run - RUN; the RUN tag
        networkId - String; id of the network or the model
        streamInformation - StreamInformation; the stream information that will be passed to the model
        simulator - OTSSimulatorInterface; the simulator to defined the experiment for
        Returns:
        experiment on the basis of the information in the RUN tag
        Throws:
        XmlParserException - on parsing error