public final class OTSNetworkUtils extends Object
 Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. 
 BSD-style license. See OpenTrafficSim License.
 
| Modifier and Type | Method and Description | 
|---|---|
static OTSNetwork | 
copy(OTSNetwork network)
Make a copy of the network, without GTUs and listeners. 
 | 
static String | 
toXml(OTSNetwork network)
Create an xml-version of the network. 
 | 
static void | 
toXml(OTSNetwork network,
     OutputStream out)
Create an xml-version of the network. 
 | 
static void | 
toXml(OTSNetwork network,
     Writer writer)
Create an xml-version of the network. 
 | 
public static OTSNetwork copy(OTSNetwork network)
network - OTSNetwork; the network to copypublic static String toXml(OTSNetwork network)
network - OTSNetwork; the network to create an xml-version frompublic static void toXml(OTSNetwork network, OutputStream out)
network - OTSNetwork; the network to create an xml-version fromout - OutputStream; the stream to write the xml-string with the network topublic static void toXml(OTSNetwork network, Writer writer)
network - OTSNetwork; the network to create an xml-version fromwriter - Writer; the writer to write the xml-string with the network toCopyright © 2014–2019 Delft University of Technology. All rights reserved.