public final class OTSNetworkUtils extends Object
Copyright (c) 2013-2018 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
- the network to copypublic static String toXml(OTSNetwork network)
network
- the network to create an xml-version frompublic static void toXml(OTSNetwork network, OutputStream out)
network
- the network to create an xml-version fromout
- the stream to write the xml-string with the network topublic static void toXml(OTSNetwork network, Writer writer)
network
- the network to create an xml-version fromwriter
- the writer to write the xml-string with the network toCopyright © 2014–2018 Delft University of Technology. All rights reserved.