package mil.navy.nps.bridge; 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 mil.navy.nps.awt.AwtPduViewer */ public class RelayThread extends Thread { private AwtMulticastRelayClient relayClient; //pointer back to the thing we're updating public RelayThread(AwtMulticastRelayClient pRelayClient) { relayClient = pRelayClient; // 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 relayClient.relayPackets(); } }