edu.colorado.cs.ns2.animation
Class Animator

java.lang.Object
  extended by edu.colorado.cs.ns2.animation.Animator

public class Animator
extends java.lang.Object

The Animator Class spawns a new Thread to draw the animated Packets.

Author:
Kevin Bauer, Pushkar Sambhoos.

Field Summary
private  Animate animate
          A reference to the primary animation object.
private static long serialVersionUID
          Default serial version UID.
private static java.lang.Thread thread
          A thread in which to execute the simulation animation.
 
Constructor Summary
Animator(DrawableMover mover, java.awt.Container contentPane)
          Constructor.
 
Method Summary
static void stopAnimation()
          Kills the Animation Thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Default serial version UID.

See Also:
Constant Field Values

animate

private Animate animate
A reference to the primary animation object.


thread

private static java.lang.Thread thread
A thread in which to execute the simulation animation.

Constructor Detail

Animator

public Animator(DrawableMover mover,
                java.awt.Container contentPane)
Constructor.

Parameters:
mover - - Reference to the DrawableMover Object
contentPane - - Reference to the JFrame's Content Pane.
Method Detail

stopAnimation

public static void stopAnimation()
Kills the Animation Thread.