Class NetworkAnimationUtils

java.lang.Object
org.opentrafficsim.draw.network.NetworkAnimationUtils

public final class NetworkAnimationUtils extends Object
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 Type
    Method
    Description
    static 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 destroy
      simulator - 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 for
      oldSimulator - OtsSimulatorInterface; the old simulator