

The panel shown while the CERN AS is in use and the alarm client is connected.
| alma::acsplugins::alarmsystem::gui::CernSysPanel::CernSysPanel | ( | AlarmPanel | owner, | |
| AlSysNotAvailPanel | notAvaiPnl | |||
| ) | [inline] |
Constructor
| owner | The panel showing this container |
References alarmPanel, and initialize().
| 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.
| alarm | The alarm to show in the table (can't be null) |
| 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] |
Closes the panel
References alarmSound, alarmTable, alma::acsplugins::alarmsystem::gui::table::AlarmTable::close(), alma::acsplugins::alarmsystem::gui::table::AlarmTableModel::close(), alma::acsplugins::alarmsystem::gui::sound::AlarmSound::close(), and model.
Referenced by stop().
| void alma::acsplugins::alarmsystem::gui::CernSysPanel::connect | ( | ) | [inline] |
Connect
Try to connect to the alarm service until it becomes available
References alma::acsplugins::alarmsystem::gui::AlSysNotAvailPanel::addMessage(), alarmPanel, categoryClient, closed, alma::alarmsystem::clients::CategoryClient::connect(), alma::acsplugins::alarmsystem::gui::ConnectionListener::connected(), alma::acsplugins::alarmsystem::gui::ConnectionListener::connecting(), connecting, connectionListener, contSvc, alma::acsplugins::alarmsystem::gui::ConnectionListener::disconnected(), model, notAvaiPnl, alma::acsplugins::alarmsystem::gui::table::AlarmTableModel::setCategoryClient(), alma::acsplugins::alarmsystem::gui::AlarmPanel::showPanel(), alma::acsplugins::alarmsystem::gui::statusline::StatusLine::start(), and statusLine.
Referenced by alma::acsplugins::alarmsystem::gui::statusline::ConnectionWidget::actionPerformed().
| void alma::acsplugins::alarmsystem::gui::CernSysPanel::disconnect | ( | ) | [inline] |
Disconnect
References categoryClient, alma::alarmsystem::clients::CategoryClient::close(), connectionListener, connectThread, alma::acsplugins::alarmsystem::gui::ConnectionListener::disconnected(), model, alma::acsplugins::alarmsystem::gui::table::AlarmTableModel::setCategoryClient(), statusLine, and alma::acsplugins::alarmsystem::gui::statusline::StatusLine::stop().
Referenced by alma::acsplugins::alarmsystem::gui::statusline::ConnectionWidget::actionPerformed().
| void alma::acsplugins::alarmsystem::gui::CernSysPanel::initialize | ( | ) | [inline, private] |
Init the GUI
References ACTIVATE_RDUCTION_RULES, alarmSound, alarmTable, connectionListener, detailsScrollPane, detailTable, model, alma::acsplugins::alarmsystem::gui::table::AlarmTableModel::setConnectionListener(), splitPane, statusLine, tableScrollPane, and toolbar.
Referenced by CernSysPanel().
| boolean alma::acsplugins::alarmsystem::gui::CernSysPanel::isConnecting | ( | ) | [inline] |
true if an attempt to connect is running References connecting.
Referenced by alma::acsplugins::alarmsystem::gui::AlarmPanel::isConnecting(), and alma::acsplugins::alarmsystem::gui::statusline::ConnectionWidget::StatusLineMouseAdapter::showPopup().
| void alma::acsplugins::alarmsystem::gui::CernSysPanel::pause | ( | ) | throws Exception [inline] |
References model, alma::acsplugins::alarmsystem::gui::statusline::StatusLine::pause(), alma::acsplugins::alarmsystem::gui::table::AlarmTableModel::pause(), statusLine, toolbar, and alma::acsplugins::alarmsystem::gui::toolbar::Toolbar::updatePauseBtn().
Referenced by alma::acsplugins::alarmsystem::gui::toolbar::Toolbar::actionPerformed(), and alma::acsplugins::alarmsystem::gui::AlarmPanel::pause().
| void alma::acsplugins::alarmsystem::gui::CernSysPanel::resume | ( | ) | throws Exception [inline] |
References model, alma::acsplugins::alarmsystem::gui::table::AlarmTableModel::pause(), alma::acsplugins::alarmsystem::gui::statusline::StatusLine::resume(), statusLine, toolbar, and alma::acsplugins::alarmsystem::gui::toolbar::Toolbar::updatePauseBtn().
Referenced by alma::acsplugins::alarmsystem::gui::toolbar::Toolbar::actionPerformed(), and alma::acsplugins::alarmsystem::gui::AlarmPanel::resume().
| void alma::acsplugins::alarmsystem::gui::CernSysPanel::setContainerServices | ( | ContainerServices | cs | ) | [inline] |
Set the ContainerServices
References contSvc.
Referenced by alma::acsplugins::alarmsystem::gui::AlarmPanel::setACSContainerServices(), and alma::acsplugins::alarmsystem::gui::AlarmPanel::setServices().
| 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
| 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] |
Show a message in the status line
| mesg | ||
| red |
References alma::acsplugins::alarmsystem::gui::statusline::StatusLine::showMessage(), and statusLine.
Referenced by alma::acsplugins::alarmsystem::gui::table::AlarmTable::search(), and alma::acsplugins::alarmsystem::gui::AlarmPanel::showMessage().
| 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.
References categoryClient, closed, connectThread, and contSvc.
Referenced by alma::acsplugins::alarmsystem::gui::AlarmPanel::start().
| void alma::acsplugins::alarmsystem::gui::CernSysPanel::stop | ( | ) | throws Exception [inline] |
References close(), closed, and disconnectThread.
Referenced by alma::acsplugins::alarmsystem::gui::AlarmPanel::stop().
| final boolean alma::acsplugins::alarmsystem::gui::CernSysPanel::ACTIVATE_RDUCTION_RULES = true |
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().
volatile boolean alma::acsplugins::alarmsystem::gui::CernSysPanel::closed = false [private] |
volatile boolean alma::acsplugins::alarmsystem::gui::CernSysPanel::connecting = false [private] |
Say if there is an attempt to connect
Referenced by connect(), and isConnecting().
The listener of the connection
Referenced by connect(), disconnect(), and initialize().
Thread alma::acsplugins::alarmsystem::gui::CernSysPanel::connectThread [private] |
The thread to connect/disconnect
Referenced by disconnect(), and start().
The container services
Referenced by connect(), setContainerServices(), and start().
JScrollPane alma::acsplugins::alarmsystem::gui::CernSysPanel::detailsScrollPane [private] |
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().
Thread alma::acsplugins::alarmsystem::gui::CernSysPanel::disconnectThread [private] |
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().
JSplitPane alma::acsplugins::alarmsystem::gui::CernSysPanel::splitPane [private] |
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().
JScrollPane alma::acsplugins::alarmsystem::gui::CernSysPanel::tableScrollPane [private] |
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().
1.6.2