alma::acsplugins::alarmsystem::gui::CernSysPanel Class Reference

Inheritance diagram for alma::acsplugins::alarmsystem::gui::CernSysPanel:
Inheritance graph
[legend]
Collaboration diagram for alma::acsplugins::alarmsystem::gui::CernSysPanel:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CernSysPanel (AlarmPanel owner, AlSysNotAvailPanel notAvaiPnl)
void close ()
void pause () throws Exception
void resume () throws Exception
void showMessage (String mesg, boolean red)
void showAlarmDetails (Alarm alarm)
synchronized void addSpecialAlarm (Alarm alarm) throws Exception
void setModel (AlarmTableModel model)
void connect ()
void disconnect ()
boolean isConnecting ()
void setContainerServices (ContainerServices cs)
void start () throws Exception
void stop () throws Exception

Public Attributes

final boolean ACTIVATE_RDUCTION_RULES = true

Private Member Functions

void initialize ()

Private Attributes

Toolbar toolbar
StatusLine statusLine
AlarmTableModel model
AlarmTable alarmTable
AlarmDetailTable detailTable
AlarmSound alarmSound
JScrollPane tableScrollPane
JScrollPane detailsScrollPane
JSplitPane splitPane
final AlarmPanel alarmPanel
volatile boolean connecting = false
volatile boolean closed = false
ConnectionListener connectionListener
Thread connectThread
Thread disconnectThread
CategoryClient categoryClient = null
ContainerServices contSvc = null
final AlSysNotAvailPanel notAvaiPnl

Detailed Description

The panel shown while the CERN AS is in use and the alarm client is connected.

Author:
acaproni

Constructor & Destructor Documentation

alma::acsplugins::alarmsystem::gui::CernSysPanel::CernSysPanel ( AlarmPanel  owner,
AlSysNotAvailPanel  notAvaiPnl 
) [inline]

Constructor

Parameters:
owner The panel showing this container

References alarmPanel, and initialize().


Member Function Documentation

synchronized void alma::acsplugins::alarmsystem::gui::CernSysPanel::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

References model, and alma::acsplugins::alarmsystem::gui::table::AlarmTableModel::onAlarm().

Referenced by alma::acsplugins::alarmsystem::gui::AlarmPanel::addSpecialAlarm().

void alma::acsplugins::alarmsystem::gui::CernSysPanel::close (  )  [inline]
void alma::acsplugins::alarmsystem::gui::CernSysPanel::connect (  )  [inline]
void alma::acsplugins::alarmsystem::gui::CernSysPanel::disconnect (  )  [inline]
void alma::acsplugins::alarmsystem::gui::CernSysPanel::initialize (  )  [inline, private]
boolean alma::acsplugins::alarmsystem::gui::CernSysPanel::isConnecting (  )  [inline]
void alma::acsplugins::alarmsystem::gui::CernSysPanel::pause (  )  throws Exception [inline]
void alma::acsplugins::alarmsystem::gui::CernSysPanel::resume (  )  throws Exception [inline]
void alma::acsplugins::alarmsystem::gui::CernSysPanel::setContainerServices ( ContainerServices  cs  )  [inline]
void alma::acsplugins::alarmsystem::gui::CernSysPanel::setModel ( AlarmTableModel  model  )  [inline]
void alma::acsplugins::alarmsystem::gui::CernSysPanel::showAlarmDetails ( Alarm  alarm  )  [inline]

Show the alarm in the details table

Parameters:
alarm The alarm to show in the details panel; if null the details table is cleared.

References detailTable, and alma::acsplugins::alarmsystem::gui::detail::AlarmDetailTable::showAlarmDetails().

Referenced by alma::acsplugins::alarmsystem::gui::table::AlarmTable::changeSelection(), and alma::acsplugins::alarmsystem::gui::AlarmPanel::showAlarmDetails().

void alma::acsplugins::alarmsystem::gui::CernSysPanel::showMessage ( String  mesg,
boolean  red 
) [inline]
void alma::acsplugins::alarmsystem::gui::CernSysPanel::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

References categoryClient, closed, connectThread, and contSvc.

Referenced by alma::acsplugins::alarmsystem::gui::AlarmPanel::start().

void alma::acsplugins::alarmsystem::gui::CernSysPanel::stop (  )  throws Exception [inline]
See also:
SubsystemPlugin

References close(), closed, and disconnectThread.

Referenced by alma::acsplugins::alarmsystem::gui::AlarmPanel::stop().


Member Data Documentation

The startup option for reduction rules

Referenced by initialize().

The panel showing this container

Referenced by CernSysPanel(), and connect().

The object to play sounds for alarms

Referenced by close(), and initialize().

The table of alarms

Referenced by close(), and initialize().

The client to listen alarms from categories

Referenced by connect(), disconnect(), and start().

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

Referenced by connect(), start(), and stop().

Say if there is an attempt to connect

Referenced by connect(), and isConnecting().

The listener of the connection

Referenced by connect(), disconnect(), and initialize().

The thread to connect/disconnect

Referenced by disconnect(), and start().

The container services

Referenced by connect(), setContainerServices(), and start().

Initial value:
 new JScrollPane(
                        JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
                        JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED)

The scroll pane of the details table

Referenced by initialize().

The table with the details of an alarm

Referenced by initialize(), and showAlarmDetails().

Signal the thread to terminate

Referenced by stop().

The model of the table of alarms

Referenced by addSpecialAlarm(), close(), connect(), disconnect(), initialize(), pause(), and resume().

The panel to show messages while connecting

Referenced by connect().

The split pane dividing the table of alarms and the detail view

Referenced by initialize().

The status line

Referenced by connect(), disconnect(), initialize(), pause(), resume(), and showMessage().

Initial value:
 new JScrollPane(
                        JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
                        JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED)

The scroll pane of the table

Referenced by initialize().

The toolbar

Referenced by initialize(), pause(), and resume().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2