public final class OTSNetworkUtils extends Object
Copyright (c) 2013-2017 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 org.opentrafficsim.core.network.OTSNetwork |
copy(org.opentrafficsim.core.network.OTSNetwork network)
Make a copy of the network, without GTUs and listeners.
|
static String |
toXml(org.opentrafficsim.core.network.OTSNetwork network)
Create an xml-version of the network.
|
static void |
toXml(org.opentrafficsim.core.network.OTSNetwork network,
OutputStream out)
Create an xml-version of the network.
|
static void |
toXml(org.opentrafficsim.core.network.OTSNetwork network,
Writer writer)
Create an xml-version of the network.
|
public static org.opentrafficsim.core.network.OTSNetwork copy(org.opentrafficsim.core.network.OTSNetwork network)
network
- the network to copypublic static String toXml(org.opentrafficsim.core.network.OTSNetwork network)
network
- the network to create an xml-version frompublic static void toXml(org.opentrafficsim.core.network.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(org.opentrafficsim.core.network.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–2017 Delft University of Technology. All rights reserved.