Class LoadXml

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class LoadXml extends OtsSimulationApplication<org.opentrafficsim.core.dsol.OtsModelInterface>
Select a OTS-network XML file, load it and run it.

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
See Also:
  • Constructor Details

    • LoadXml

      public LoadXml(org.opentrafficsim.core.dsol.OtsModelInterface model, OtsAnimationPanel animationPanel) throws org.opentrafficsim.draw.OtsDrawingException
      Parameters:
      model - OtsModelInterface; the model
      animationPanel - OtsAnimationPanel; the animation panel
      Throws:
      org.opentrafficsim.draw.OtsDrawingException - on drawing error
  • Method Details

    • main

      public static void main(String[] args) throws IOException, nl.tudelft.simulation.dsol.SimRuntimeException, NamingException, org.opentrafficsim.core.dsol.OtsSimulationException, nl.tudelft.simulation.dsol.model.inputparameters.InputParameterException, nl.tudelft.simulation.language.DsolException
      Load a network from an XML file; program entry point.
      Parameters:
      args - String[]; the command line arguments; optional name of file to load
      Throws:
      IOException - when the file could not be read
      nl.tudelft.simulation.dsol.model.inputparameters.InputParameterException - should never happen
      org.opentrafficsim.core.dsol.OtsSimulationException - when an error occurs during simulation
      NamingException - when a name collision is detected
      nl.tudelft.simulation.dsol.SimRuntimeException - should never happen
      nl.tudelft.simulation.language.DsolException - when simulator does not implement AnimatorInterface