package mil.navy.nps.awt; import java.lang.Thread; /** UpdateThread is used to read PDUs from the BehaviorStreamBuffer class and update the display of PDU lists on the screen. This is a bare-bones class that basically just calls a method in the main AwtPduViewer applet class. It's just a way to kick off a thread.

HISTORY

11Apr97 DMcG New

@author Don McGregor ( http://www.npsnet.org/~mcgredo)

@version 1.0 @see AwtPduViewer */ public class SenderThread extends Thread { private AwtEspduSender espduSender; //pointer back to the thing we're updating public SenderThread(AwtEspduSender pSender) { espduSender = pSender; // set this up to be a daemon thread, vs. a user thread. This lets the // app terminate nicely when the main thread is killed. this.setDaemon(true); return; } public void run() { // calls an endlessly looping screen update in the applet viewer espduSender.sendPDUs(); } }