

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< FaultState > | faultStates = 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 |
| 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.
| faultState | The alarm received |
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] |
References compactHdrNames, headerNames, and isCompact.
| String alma::acs::alarm::source::gui::SourceTableModel::getColumnName | ( | int | column | ) | [inline] |
References compactHdrNames, headerNames, and isCompact.
| int alma::acs::alarm::source::gui::SourceTableModel::getRowCount | ( | ) | [inline] |
References faultStates.
| Object alma::acs::alarm::source::gui::SourceTableModel::getValueAt | ( | int | rowIndex, | |
| int | columnIndex | |||
| ) | [inline] |
References buildCompactTimestamp(), faultStates, cern::laser::source::alarmsysteminterface::FaultState::getCode(), cern::laser::source::alarmsysteminterface::FaultState::getDescriptor(), cern::laser::source::alarmsysteminterface::FaultState::getFamily(), cern::laser::source::alarmsysteminterface::FaultState::getMember(), cern::laser::source::alarmsysteminterface::FaultState::getUserTimestamp(), and isCompact.
| void alma::acs::alarm::source::gui::SourceTableModel::showCompact | ( | boolean | compact | ) | [inline] |
Show the table as compact
| compact | if true the table is compactedS |
References isCompact.
Referenced by alma::acs::alarm::source::gui::SourceTable::compactTable().
final String [] alma::acs::alarm::source::gui::SourceTableModel::compactHdrNames [static, private] |
{
"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().
final String [] alma::acs::alarm::source::gui::SourceTableModel::headerNames [static, private] |
{
"Timestamp",
"Family",
"Member",
"Code",
"Activator"
}
The names of the headers for the standard view
Referenced by getColumnCount(), and getColumnName().
volatile boolean alma::acs::alarm::source::gui::SourceTableModel::isCompact = false [private] |
If true the table appear in the compact form
Referenced by getColumnCount(), getColumnName(), getValueAt(), and showCompact().
final int alma::acs::alarm::source::gui::SourceTableModel::MAX_FAULTSTATES = 10000 [static, private] |
The max number of fault states to show in the table
Referenced by addFS().
1.6.2