Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

alma::acsplugins::alarmsystem::gui::AlarmPanel Class Reference

Collaboration diagram for alma::acsplugins::alarmsystem::gui::AlarmPanel:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 AlarmPanel ()
 AlarmPanel (JFrame frame)
void pause () throws Exception
void resume () throws Exception
void start () throws Exception
void stop () throws Exception
void setServices (ContainerServices ctrl)
boolean runRestricted (boolean restricted) throws Exception
void setACSContainerServices (ContainerServices cs)
boolean isOMCPlugin ()
void connect ()
void disconnect ()
boolean isConencting ()
CategoryClient getCategoryClient ()
synchronized void addSpecialAlarm (Alarm alarm) throws Exception

Public Attributes

final boolean ACTIVATE_RDUCTION_RULES = true

Private Member Functions

void initialize ()

Private Attributes

ContainerServices contSvc = null
AlarmTableModel model
AlarmTable alarmTable
JScrollPane tableScrollPane
JFrame frame = null
CategoryClient categoryClient = null
Toolbar toolbar
StatusLine statusLine
ConnectionListener connectionListener
volatile boolean connecting = false
volatile boolean closed = false
Thread connectThread
Thread disconnectThread

Detailed Description

The panel showing alarms


Constructor & Destructor Documentation

alma::acsplugins::alarmsystem::gui::AlarmPanel::AlarmPanel  )  [inline]
 

Constructor

alma::acsplugins::alarmsystem::gui::AlarmPanel::AlarmPanel JFrame  frame  )  [inline]
 

Constructor

Parameters:
frame The window that owns this panel


Member Function Documentation

synchronized void alma::acsplugins::alarmsystem::gui::AlarmPanel::addSpecialAlarm Alarm  alarm  )  throws Exception [inline]
 

A method to send alarms to the GUI outside of the alarm service.

At the present it is used by the OMC GUI to send alarms before the alarm service is started.

Deprecated:
this method will be deleted when the alarm system will run as a daemon or as an ACS service.
Parameters:
alarm The alarm to show in the table (can't be null)
Exceptions:
Exception In case the alarm is not well formed

void alma::acsplugins::alarmsystem::gui::AlarmPanel::connect  )  [inline]
 

Connect

Try to connect to the alarm service until it becomes available

void alma::acsplugins::alarmsystem::gui::AlarmPanel::disconnect  )  [inline]
 

Disconnect

CategoryClient alma::acsplugins::alarmsystem::gui::AlarmPanel::getCategoryClient  )  [inline]
 

Returns:
the categoryClient

void alma::acsplugins::alarmsystem::gui::AlarmPanel::initialize  )  [inline, private]
 

Init the GUI

boolean alma::acsplugins::alarmsystem::gui::AlarmPanel::isConencting  )  [inline]
 

Returns:
true if an attempt to connect is running

boolean alma::acsplugins::alarmsystem::gui::AlarmPanel::isOMCPlugin  )  [inline]
 

Return true if the panel is running inside OMC

See also:
alma.acs.gui.util.panel.IPanel

void alma::acsplugins::alarmsystem::gui::AlarmPanel::pause  )  throws Exception [inline]
 

See also:
IpauseResume

void alma::acsplugins::alarmsystem::gui::AlarmPanel::resume  )  throws Exception [inline]
 

See also:
IPauseResume

boolean alma::acsplugins::alarmsystem::gui::AlarmPanel::runRestricted boolean  restricted  )  throws Exception [inline]
 

See also:
SubsystemPlugin

void alma::acsplugins::alarmsystem::gui::AlarmPanel::setACSContainerServices ContainerServices  cs  )  [inline]
 

Set the ContainerServices

See also:
alma.acs.gui.util.panel.IPanel

void alma::acsplugins::alarmsystem::gui::AlarmPanel::setServices ContainerServices  ctrl  )  [inline]
 

See also:
SubsystemPlugin

void alma::acsplugins::alarmsystem::gui::AlarmPanel::start  )  throws Exception [inline]
 

Connect the Client and listens to the categories.

The CategoryClient is built only if its reference is null. Otherwise it means that the client is still trying to connect and the user restarted the plugin.

See also:
SubsystemPlugin

void alma::acsplugins::alarmsystem::gui::AlarmPanel::stop  )  throws Exception [inline]
 

See also:
SubsystemPlugin


Member Data Documentation

final boolean alma::acsplugins::alarmsystem::gui::AlarmPanel::ACTIVATE_RDUCTION_RULES = true
 

The startup option for reduction rules

AlarmTable alma::acsplugins::alarmsystem::gui::AlarmPanel::alarmTable [private]
 

The table of alarms

CategoryClient alma::acsplugins::alarmsystem::gui::AlarmPanel::categoryClient = null [private]
 

The client to listen alarms from categories

volatile boolean alma::acsplugins::alarmsystem::gui::AlarmPanel::closed = false [private]
 

true if the panel has been closed. It helps stopping the connection thread

volatile boolean alma::acsplugins::alarmsystem::gui::AlarmPanel::connecting = false [private]
 

Say if there is an attempt to connect

ConnectionListener alma::acsplugins::alarmsystem::gui::AlarmPanel::connectionListener [private]
 

The listener of the connection

Thread alma::acsplugins::alarmsystem::gui::AlarmPanel::connectThread [private]
 

The thread to connect/disconnect

ContainerServices alma::acsplugins::alarmsystem::gui::AlarmPanel::contSvc = null [private]
 

The container services

Thread alma::acsplugins::alarmsystem::gui::AlarmPanel::disconnectThread [private]
 

Signal the thread to teminate

JFrame alma::acsplugins::alarmsystem::gui::AlarmPanel::frame = null [private]
 

The window that shows this panel

AlarmTableModel alma::acsplugins::alarmsystem::gui::AlarmPanel::model [private]
 

The model of the table of alarms

StatusLine alma::acsplugins::alarmsystem::gui::AlarmPanel::statusLine [private]
 

The status line

JScrollPane alma::acsplugins::alarmsystem::gui::AlarmPanel::tableScrollPane [private]
 

Initial value:

new JScrollPane( JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED)
The scroll pane of the table

Toolbar alma::acsplugins::alarmsystem::gui::AlarmPanel::toolbar [private]
 

The toolbar


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:00:35 2009 for ACS Java API by doxygen 1.3.8