AMS Applet Parameters

A summary with descriptions of all the parameters that can be specified for the Applet version of AMS


AMS menu
AMS Home
Install Guide
Applet Parameters
Sample HTML
Sample Config
Alert manager
License
Support
Languages
Future plans



 

Class AMSClientApplet

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----AMSClientApplet

public class AMSClientApplet
extends Applet
implements Runnable
Provides framework for an Applet version of AMSPanel
The applet can read the following parameters from the applet PARAM tags;
  • ALARM_CLIP Absolute URL of sound clip. Formats supported depend on version of Java in use. Prior to Java2 only .au format is supported. Note: The value of this parameter must begin with http://
  • ALARM_LEVEL Severity level at which sound is triggered
  • BGCOLOUR Colour to use as the background.
  • BUFFER Number of lines to buffer on display, defaults to 100.
    Note that this has no effect on the socket reader, the buffer for which is separate and dynamic.
  • COUNTERGROUPS Boolean, TRUE/FALSE determines whether the counters operate in group mode or not. Default is false.
  • DB_CONNECT_STRING The JDBC connect string to be used to connect to database. This includes the hostname and database name. Note that in applet mode the database must be on the same host that the applet was loaded from.
  • DB_USER user name to use connecting to database.
  • DB_PWD password to use connecting to database.
  • DB_TABLE table name to search using database searches
  • DB_TIME_COLUMN Name of time column in Database - must be SQL type TIMESTAMP
  • DB_SEVERITY_COLUMN Name of Severity column in Database - must be SQL type INT
  • DB_FACILITY_COLUMN Name of facility column in Database - must be SQL type INT
  • DB_MESSAGE_COLUMN Name of message column in Database - must be CHAR or VARCHAR
  • DEBUG Integer debug level, 9 being the highest. 0 = no debugging
    Note: The higher debug levels ( > 5 ) produces a lot of output and are known to cause certain browsers problems after running for a while.
  • FGCOLOUR Colour to use as the foreground - text labels etc.
  • GIF_COLOUR_MATCHINGBoolean, TRUE/FALSE. Attempt to match the colours of GIF images to the components they relate to. Currently this only effects the embedded icons used in the severity counter panels. The function works by modifying the GIF colour map such that colour id 0 id the severity background colour and colour id 1 is set to the severity foreground colour. Default is TRUE
  • HOST String, hostname or IP address where ams_server is running. Defaults to the host where applet was loaded from - This is usually the only host the applet can connect to without first disabling the Java security manager.
  • JDBCDRIVER String, name of JDBC driver to be used to connect to database. Must be in client or browser's CLASSPATH.
  • LAYOUT Integer display layout code, in the range 0-7. Only 0-3 are currently defined:
    LAYOUT=0.
    Full title layout with status, counters, and text area on a card layout with switch button. Also optional left OR right animation panels.
    LAYOUT=1.
    Minimal title layout with only counters and severity chooser. Currently no animation panels.
    LAYOUT=2.
    Minimal title layout with only severity chooser. Currently no animation panels.
    LAYOUT=3.
    Counter only mode. No status, logos, or message panel, only counters displayed in a panel occupying the whole size of the applet.
  • PORT integer port number to connect to on server. Defaults to 4000
  • SEVERITY Severity level to filter on. This can be changed by the user so effectively this parameter only sets the starting level
  • SEVERITYnBG Background colour of messages at severity n. Where n is a digit in the range 0-7.
  • SEVERITYnFG Foreground colour of messages at severity n.
  • SCROLLSPEED Integer in range 0-5 determines speed of message panel scrolling. 0=Instant (effectively no smoothing), 5=very slow. The performance of this is heavily dependant on the underlying client platform
  • TOP_FGCOLOUR Foreground colour of top panel
  • TOP_BGCOLOUR Background colour of top panel

Some display layouts support an animated image panel. In order to realise an animated image panel ALL of the following parameters must be specified;
  • ANIMATION_PREFIX Absolute URL of animation file - prefix Note: This must start with the string http://
  • ANIMATION_SUFFIX Suffix to append after frame number. E.g ".gif"
  • ANIMATION_FRAMES Integer number of frames in animation sequence
  • ANIMATION_POSITION Integer position id. Either 0 (top left), or 1 (top right)
Note: Attempting to specify an animation for a layout which does not support one will result in undefined behaviour.


All diagnostics go to the Java console. In Internet Explorer this needs to be explicitly enabled.



Home Thai Guide   Great Circle Calculator WorldClock AMS Services Contact us