All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class test.jcsp.AppletTest

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----jcsp.awt.ActiveApplet
                                           |
                                           +----test.jcsp.AppletTest

public class AppletTest
extends ActiveApplet

Applet

Process Diagram

External View

  ______________
 |              |
 |  AppletTest  |
 |______________|
 

Internal View

  ___________________
 |  _______________  |
 | |               | |
 | |               | |
 | |_______________| |
 |                   |
 |        AppletTest |
 |___________________|
 

Description

The AppletTest Applet has one process which sits in an infinite loop which appends the text "still running" to the TextArea messages once a second.

The stop and start methods have been overloaded to append to messages "Applet Stopped" and "Applet Started" when the methods are invoked.

The purpose of this test is to check to see if the processes are suspended and resumed when start and stop are called.

Author:
P.D.Austin

Constructor Index

 o AppletTest()

Method Index

 o getAppletInfo()
returns the name and author of the Applet.
 o init()
Initialises the Applet.
 o start()
Starts the Applet running.
 o stop()
Stops the Applet running.

Constructors

 o AppletTest
 public AppletTest()

Methods

 o start
 public void start()
Starts the Applet running.

Overrides:
start in class ActiveApplet
 o stop
 public void stop()
Stops the Applet running.

Overrides:
stop in class ActiveApplet
 o init
 public void init()
Initialises the Applet.

Overrides:
init in class Applet
 o getAppletInfo
 public String getAppletInfo()
returns the name and author of the Applet.

Overrides:
getAppletInfo in class Applet

All Packages  Class Hierarchy  This Package  Previous  Next  Index