Class OTSRoadNetworkUtils

java.lang.Object
org.opentrafficsim.road.network.factory.OTSRoadNetworkUtils

public final class OTSRoadNetworkUtils
extends java.lang.Object

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

$LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $, initial version Aug 28, 2016
Author:
Alexander Verbraeck, Peter Knoppers
  • Method Summary

    Modifier and Type Method Description
    static OTSRoadNetwork copy​(OTSRoadNetwork network)
    Make a copy of the network, without GTUs and listeners.
    static java.lang.String toXml​(OTSRoadNetwork network)
    Create an xml-version of the network.
    static void toXml​(OTSRoadNetwork network, java.io.OutputStream out)
    Create an xml-version of the network.
    static void toXml​(OTSRoadNetwork network, java.io.Writer writer)
    Create an xml-version of the network.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • copy

      public static OTSRoadNetwork copy​(OTSRoadNetwork network)
      Make a copy of the network, without GTUs and listeners.
      Parameters:
      network - OTSRoadNetwork; the network to copy
      Returns:
      a copy of the network
    • toXml

      public static java.lang.String toXml​(OTSRoadNetwork network)
      Create an xml-version of the network.
      Parameters:
      network - OTSRoadNetwork; the network to create an xml-version from
      Returns:
      an xml-string with the network
    • toXml

      public static void toXml​(OTSRoadNetwork network, java.io.OutputStream out)
      Create an xml-version of the network.
      Parameters:
      network - OTSRoadNetwork; the network to create an xml-version from
      out - OutputStream; the stream to write the xml-string with the network to
    • toXml

      public static void toXml​(OTSRoadNetwork network, java.io.Writer writer)
      Create an xml-version of the network.
      Parameters:
      network - OTSRoadNetwork; the network to create an xml-version from
      writer - Writer; the writer to write the xml-string with the network to