Class AgentLauncher
Class AgentLauncher
AgentLauncher
- public final class AgentLauncher
- extends Applet
- implements Runnable
-
run()
- The main loop for the main thread.
-
start()
- start - Whenever a user visits our page, Applet calls this.
-
stop()
- Stop this thread.
start
public void start()
- start - Whenever a user visits our page, Applet calls this. This is
an override of an Applet method. Creates a thread and passes this
AgentLauncher into it. Works because we implement the Runnable method.
stop
public void stop()
- Stop this thread. Only stops the animated displays, not the
socket reading or any other threads we may have created. This
is NOT the Thread.stop method, but the Applet.stop method.
Thread.stop should NOT be overridden because it actually does
something, (throwing a ThreadDeath) while Applet.stop CAN be
overridden, as we do here.
run
public void run()
- The main loop for the main thread.