Package org.opentrafficsim.draw.network
Class NetworkAnimationUtils
java.lang.Object
org.opentrafficsim.draw.network.NetworkAnimationUtils
NetworkAnimationUtils can make a deep clone of a network, including animation, and can destroy the animation.
Copyright (c) 2013-2023 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
destroy
(org.opentrafficsim.core.network.Network network, org.opentrafficsim.core.dsol.OtsSimulatorInterface simulator) Remove all objects and animation in the network.static void
removeAnimation
(Class<?> clazz, org.opentrafficsim.core.dsol.OtsSimulatorInterface oldSimulator) Remove all animation objects of the given class.
-
Method Details
-
destroy
public static void destroy(org.opentrafficsim.core.network.Network network, org.opentrafficsim.core.dsol.OtsSimulatorInterface simulator) Remove all objects and animation in the network.- Parameters:
network
- Network; the network to destroysimulator
- OtsSimulatorInterface; the simulator of the old network
-
removeAnimation
public static void removeAnimation(Class<?> clazz, org.opentrafficsim.core.dsol.OtsSimulatorInterface oldSimulator) Remove all animation objects of the given class.- Parameters:
clazz
- Class<?>; the class to remove the animation objects foroldSimulator
- OtsSimulatorInterface; the old simulator
-