alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry Class Reference

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

List of all members.

Public Member Functions

 AlarmTableEntry (Alarm alarm)
void updateAlarm (AlarmTableEntry newAlarm)
Alarm getEncapsulatedAlarm ()
AlarmGUIType getAlarmType ()
boolean isNew ()
void alarmSeen ()
boolean isReduced ()
boolean isChild ()
boolean isParent ()
Object clone () throws CloneNotSupportedException
String getAction ()
String getAlarmId ()
Collection getCategories ()
String getCause ()
String getConsequence ()
URL getHelpURL ()
String getIdentifier ()
Location getLocation ()
String getPiquetEmail ()
String getPiquetGSM ()
Integer getPriority ()
synchronized String getProblemDescription ()
ResponsiblePerson getResponsiblePerson ()
Source getSource ()
Status getStatus ()
String getSystemName ()
Triplet getTriplet ()
boolean isInstant ()
boolean isMultiplicityChild ()
boolean isMultiplicityParent ()
boolean isNodeChild ()
boolean isNodeParent ()

Private Attributes

volatile boolean isNew
Alarm alarm
AlarmGUIType alarmType

Static Private Attributes

static final String baciLevelPropName = "BACI_Level"
static final String baciDescPropName = "BACI_Description"
static final String baciValuePropName = "BACI_Value"
static final String baciPropName = "BACI_Property"

Detailed Description

An entry in the alarm table i.e. a row in the table

It consists of the alarm plus other information to represent the alarm in the table. The AlarmTablemodel finds here all it needs to show an alarm in a row.

Author:
acaproni

Constructor & Destructor Documentation

alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry::AlarmTableEntry ( Alarm  alarm  )  [inline]

Build an AlarmTableEntry from the given alarm.

The passed alarm can't be an AlarmTableEntry otherwise we are nesting alarms on alarms. In that case an exception is thrown.

Parameters:
alarm The alarm in the entry
Exceptions:
 

References alarmType, and isNew().


Member Function Documentation

void alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry::alarmSeen (  )  [inline]

The user saw the alarm and press one mouse button over its line so the alarm is not new anymore

References isNew().

Referenced by alma::acsplugins::alarmsystem::gui::table::AlarmTableModel::alarmSelected().

Object alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry::clone (  )  throws CloneNotSupportedException [inline]
Returns:
Exceptions:
CloneNotSupportedException 
See also:
cern.laser.client.data.Alarm::clone()

Implements cern::laser::client::data::Alarm.

References alarm, and cern::laser::client::data::Alarm::clone().

String alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry::getAction (  )  [inline]
String alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry::getAlarmId (  )  [inline]
AlarmGUIType alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry::getAlarmType (  )  [inline]
Collection alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry::getCategories (  )  [inline]
String alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry::getCause (  )  [inline]
String alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry::getConsequence (  )  [inline]
Alarm alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry::getEncapsulatedAlarm (  )  [inline]
Returns:
The CERN alarm encapsulated in this object.

References alarm.

Referenced by updateAlarm().

URL alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry::getHelpURL (  )  [inline]
String alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry::getIdentifier (  )  [inline]
Location alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry::getLocation (  )  [inline]
String alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry::getPiquetEmail (  )  [inline]
String alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry::getPiquetGSM (  )  [inline]
Integer alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry::getPriority (  )  [inline]
synchronized String alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry::getProblemDescription (  )  [inline]

Return the description of the alarm.

The description is usually contained in the Alarms branch of the CDB. However, if the alarm is generated by BACY then we take some of the user properties added by baci to build a more readable description of the alarm.

Returns:
The description of the alarm
See also:
cern.laser.client.data.Alarm::getProblemDescription()

Implements cern::laser::client::data::Alarm.

References alarm, baciDescPropName, baciValuePropName, cern::laser::client::data::Alarm::getProblemDescription(), cern::laser::client::data::Alarm::getStatus(), and cern::laser::client::data::Status::getUserProperties().

Referenced by alma::acsplugins::alarmsystem::gui::table::AlarmTableModel::getCellContent().

ResponsiblePerson alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry::getResponsiblePerson (  )  [inline]
Source alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry::getSource (  )  [inline]
Status alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry::getStatus (  )  [inline]
String alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry::getSystemName (  )  [inline]
Triplet alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry::getTriplet (  )  [inline]
boolean alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry::isChild (  )  [inline]
Returns:
true if the alarm is a node or multiplicity child

References alarm, cern::laser::client::data::Alarm::isMultiplicityChild(), and cern::laser::client::data::Alarm::isNodeChild().

boolean alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry::isInstant (  )  [inline]
boolean alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry::isMultiplicityChild (  )  [inline]
boolean alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry::isMultiplicityParent (  )  [inline]

Return true if the alarm is new

Returns:
true if the alarm is new

Referenced by alarmSeen(), AlarmTableEntry(), and updateAlarm().

boolean alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry::isNodeChild (  )  [inline]
boolean alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry::isNodeParent (  )  [inline]
boolean alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry::isParent (  )  [inline]
boolean alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry::isReduced (  )  [inline]
void alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry::updateAlarm ( AlarmTableEntry  newAlarm  )  [inline]

Update the alarm with the new one.

Replace the alarm with the one but only if they have the same ID

Parameters:
newAlarm The not null new alarm

References alarm, alarmType, cern::laser::client::data::Alarm::getAlarmId(), getAlarmId(), getEncapsulatedAlarm(), getStatus(), cern::laser::client::data::Status::isActive(), and isNew().

Referenced by alma::acsplugins::alarmsystem::gui::table::AlarmsContainer::replace().


Member Data Documentation

The type of the alarm

Referenced by AlarmTableEntry(), getAlarmType(), and updateAlarm().

final String alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry::baciDescPropName = "BACI_Description" [static, private]

The property set by baci to define the description

Referenced by getProblemDescription().

The property set by baci to define the priority

Referenced by getPriority().

final String alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry::baciPropName = "BACI_Property" [static, private]

The property set by baci to define the name of the property

The property set by baci to define the value of the property

Referenced by getProblemDescription().


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

Generated by  doxygen 1.6.2