package org.opentrafficsim.road.network; import nl.tudelft.simulation.dsol.simulators.SimulatorInterface; /** * OTSRoadNetworkCloner makes a deep clone of a network. *
* Copyright (c) 2003-2021 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. * BSD-style license. See OpenTrafficSim License. *
* @author Alexander Verbraeck */ public final class RoadNetworkUtils { /** */ private RoadNetworkUtils() { // utility class } /** * Remove all objects and animation in the road network. * @param network OTSRoadNetwork; the network to destroy * @param simulator SimulatorInterface.TimeDoubleUnit; the simulator of the old network */ public static void destroy(final RoadNetwork network, final SimulatorInterface.TimeDoubleUnit simulator) { RoadNetworkUtils.destroy(network, simulator); } }