Class RoadNetworkUtils
java.lang.Object
org.opentrafficsim.road.network.factory.RoadNetworkUtils
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic RoadNetwork
copy
(RoadNetwork network) Make a copy of the network, without GTUs and listeners.static String
toXml
(RoadNetwork network) Create an xml-version of the network.static void
toXml
(RoadNetwork network, OutputStream out) Create an xml-version of the network.static void
toXml
(RoadNetwork network, Writer writer) Create an xml-version of the network.
-
Method Details
-
copy
Make a copy of the network, without GTUs and listeners.- Parameters:
network
- RoadNetwork; the network to copy- Returns:
- a copy of the network
-
toXml
Create an xml-version of the network.- Parameters:
network
- RoadNetwork; the network to create an xml-version from- Returns:
- an xml-string with the network
-
toXml
Create an xml-version of the network.- Parameters:
network
- RoadNetwork; the network to create an xml-version fromout
- OutputStream; the stream to write the xml-string with the network to
-
toXml
Create an xml-version of the network.- Parameters:
network
- RoadNetwork; the network to create an xml-version fromwriter
- Writer; the writer to write the xml-string with the network to
-