alma::acs::alarm::source::gui::SourceTableModel Class Reference

Inheritance diagram for alma::acs::alarm::source::gui::SourceTableModel:
Inheritance graph
[legend]
Collaboration diagram for alma::acs::alarm::source::gui::SourceTableModel:
Collaboration graph
[legend]

List of all members.

Public Member Functions

String getColumnName (int column)
int getColumnCount ()
int getRowCount ()
Object getValueAt (int rowIndex, int columnIndex)
synchronized void addFS (FaultState faultState)
synchronized void clear ()
void showCompact (boolean compact)

Private Member Functions

String buildCompactTimestamp (Timestamp ts)

Private Attributes

List< FaultStatefaultStates = Collections.synchronizedList(new Vector<FaultState>())
volatile boolean isCompact = false

Static Private Attributes

static final int MAX_FAULTSTATES = 10000
static final String[] headerNames
static final String[] compactHdrNames

Member Function Documentation

synchronized void alma::acs::alarm::source::gui::SourceTableModel::addFS ( FaultState  faultState  )  [inline]

Add an alarm to the model.

Add an alarm to the vector of fault states. If the alarms in memory are more then the limit, an alarm is deleted from the vector.

Parameters:
faultState The alarm received
See also:
MAX_FAULTSTATES

References faultStates, and MAX_FAULTSTATES.

Referenced by alma::acs::alarm::source::gui::SourceTable::faultStateReceived().

String alma::acs::alarm::source::gui::SourceTableModel::buildCompactTimestamp ( Timestamp  ts  )  [inline, private]

Referenced by getValueAt().

synchronized void alma::acs::alarm::source::gui::SourceTableModel::clear (  )  [inline]

Clear the list of fault states shown in the table

References faultStates.

Referenced by alma::acs::alarm::source::gui::SourceTable::clear().

int alma::acs::alarm::source::gui::SourceTableModel::getColumnCount (  )  [inline]
String alma::acs::alarm::source::gui::SourceTableModel::getColumnName ( int  column  )  [inline]
int alma::acs::alarm::source::gui::SourceTableModel::getRowCount (  )  [inline]

References faultStates.

Object alma::acs::alarm::source::gui::SourceTableModel::getValueAt ( int  rowIndex,
int  columnIndex 
) [inline]
void alma::acs::alarm::source::gui::SourceTableModel::showCompact ( boolean  compact  )  [inline]

Show the table as compact

Parameters:
compact if true the table is compactedS

References isCompact.

Referenced by alma::acs::alarm::source::gui::SourceTable::compactTable().


Member Data Documentation

Initial value:
 {
                "Timestamp",
                "Triplet",
                "Activator"
        }

The name of the headers for the compact view

Referenced by getColumnCount(), and getColumnName().

List<FaultState> alma::acs::alarm::source::gui::SourceTableModel::faultStates = Collections.synchronizedList(new Vector<FaultState>()) [private]

The fault states received from the sources

Referenced by addFS(), clear(), getRowCount(), and getValueAt().

Initial value:
 {
                "Timestamp",
                "Family",
                "Member",
                "Code",
                "Activator"
        }

The names of the headers for the standard view

Referenced by getColumnCount(), and getColumnName().

If true the table appear in the compact form

Referenced by getColumnCount(), getColumnName(), getValueAt(), and showCompact().

The max number of fault states to show in the table

Referenced by addFS().


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

Generated by  doxygen 1.6.2