Class OTSRoadNetworkUtils


  • public final class OTSRoadNetworkUtils
    extends Object
    OTSRoadNetworkCloner makes a deep clone of a network.

    Copyright (c) 2003-2020 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. BSD-style license. See OpenTrafficSim License.

    Author:
    Alexander Verbraeck
    • Method Detail

      • destroy

        public static void destroy​(OTSRoadNetwork network,
                                   SimulatorInterface.TimeDoubleUnit simulator)
        Remove all objects and animation in the road network.
        Parameters:
        network - OTSRoadNetwork; the network to destroy
        simulator - SimulatorInterface.TimeDoubleUnit; the simulator of the old network