alma::acsplugins::alarmsystem::gui::reduced::ReducedChainDlg Class Reference

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

List of all members.

Public Member Functions

 ReducedChainDlg (CategoryClient client, AlarmTableEntry rootAlarm, CernSysPanel panel)
void close ()
void actionPerformed (ActionEvent e)
void setRootAlarm (AlarmTableEntry rootAlarm)

Private Member Functions

void initialize ()
void refreshContent ()
void getAlarmChain (Alarm al, DefaultMutableTreeNode parentNode)

Private Attributes

final JButton closeBtn = new JButton("Close")
final JButton refreshBtn = new JButton("Refresh")
final AlarmTable table
final AlarmTree tree = new AlarmTree()
final AlarmTableModel model
final CernSysPanel panel
final CategoryClient categoryClient
AlarmTableEntry alarm

Detailed Description

The dialog showing all the alarms involved in a reduction.

The dialog has a table, one row for each alarm. The alarms shown in this dialog are a snapshot of those involved in a reduction.

Author:
acaproni

Constructor & Destructor Documentation

alma::acsplugins::alarmsystem::gui::reduced::ReducedChainDlg::ReducedChainDlg ( CategoryClient  client,
AlarmTableEntry  rootAlarm,
CernSysPanel  panel 
) [inline]

Constructor

Parameters:
client The CategoryClient to get the children of the alarm to show in the table
rootAlarm The root alarm whose children appear in the table
panel The alarm panel

References alarm, categoryClient, initialize(), model, refreshContent(), and table.


Member Function Documentation

void alma::acsplugins::alarmsystem::gui::reduced::ReducedChainDlg::actionPerformed ( ActionEvent  e  )  [inline]
See also:
java.awt.event.ActionListener::actionPerformed(java.awt.event.ActionEvent)

References close(), closeBtn, refreshBtn, and refreshContent().

void alma::acsplugins::alarmsystem::gui::reduced::ReducedChainDlg::close (  )  [inline]

Close the dialog and frees its resources

Referenced by actionPerformed(), and alma::acsplugins::alarmsystem::gui::table::AlarmTable::close().

void alma::acsplugins::alarmsystem::gui::reduced::ReducedChainDlg::getAlarmChain ( Alarm  al,
DefaultMutableTreeNode  parentNode 
) [inline, private]

Get the chain of reduction of the given alarm.

Implementation note: this method is recursive and therefore could lead to an out of memory if the chain is very deep.

Parameters:
al The alarm to get reduced nodes
parentNode The parent node of the tree

References alma::acsplugins::alarmsystem::gui::tree::AlarmTree::add(), alarm, categoryClient, alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry::getAlarmId(), cern::laser::client::data::Alarm::getAlarmId(), alma::alarmsystem::clients::CategoryClient::getChildren(), cern::laser::client::data::Alarm::isNodeParent(), model, alma::acsplugins::alarmsystem::gui::table::AlarmTableModel::onAlarm(), table, and tree.

Referenced by refreshContent().

void alma::acsplugins::alarmsystem::gui::reduced::ReducedChainDlg::initialize (  )  [inline, private]
void alma::acsplugins::alarmsystem::gui::reduced::ReducedChainDlg::refreshContent (  )  [inline, private]
void alma::acsplugins::alarmsystem::gui::reduced::ReducedChainDlg::setRootAlarm ( AlarmTableEntry  rootAlarm  )  [inline]

Set a new alarm as root of the displayed chain of a reduction.

By setting a new root alarm, the content of the dialog is replaced by a new chain of reduction having the passed alarm as root.

Parameters:
rootAlarm The new alarm root of a reduction chain

References alarm, and refreshContent().

Referenced by alma::acsplugins::alarmsystem::gui::table::AlarmTable::showReductionChain().


Member Data Documentation

The rot alarm, whose children are displayed in the table

Referenced by getAlarmChain(), ReducedChainDlg(), refreshContent(), and setRootAlarm().

The CategoryClient to get the children of the root alarm from the alarm service

Referenced by getAlarmChain(), and ReducedChainDlg().

final JButton alma::acsplugins::alarmsystem::gui::reduced::ReducedChainDlg::closeBtn = new JButton("Close") [private]

The button to close the dialog

Referenced by actionPerformed(), and initialize().

The model

Referenced by getAlarmChain(), ReducedChainDlg(), and refreshContent().

The panel showing this table

final JButton alma::acsplugins::alarmsystem::gui::reduced::ReducedChainDlg::refreshBtn = new JButton("Refresh") [private]

The button to refresh the content of the table

Referenced by actionPerformed(), initialize(), and refreshContent().

The table of alarms

Referenced by getAlarmChain(), initialize(), and ReducedChainDlg().

The tree of alarms

Referenced by getAlarmChain(), initialize(), and refreshContent().


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

Generated by  doxygen 1.6.2