public class AlarmTableEntry extends java.lang.Object implements Alarm, java.lang.Cloneable
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.
| Constructor and Description |
|---|
AlarmTableEntry(Alarm alarm)
Build an AlarmTableEntry from the given alarm.
|
| Modifier and Type | Method and Description |
|---|---|
void |
alarmSeen()
The user saw the alarm and press one mouse button over its line
so the alarm is not new anymore
|
java.lang.Object |
clone()
Cloning method.
|
java.lang.String |
getAction()
Accessor method.
|
java.lang.String |
getAlarmId()
Accessor method.
|
AlarmGUIType |
getAlarmType() |
java.util.Collection |
getCategories()
Accessor method.
|
java.lang.String |
getCause()
Accessor method.
|
java.lang.String |
getConsequence()
Accessor method.
|
Alarm |
getEncapsulatedAlarm() |
java.net.URL |
getHelpURL()
Accessor method.
|
java.lang.String |
getIdentifier()
Accessor method.
|
Location |
getLocation()
Accessor method.
|
java.lang.String |
getPiquetEmail()
Accessor method.
|
java.lang.String |
getPiquetGSM()
Accessor method.
|
java.lang.Integer |
getPriority()
Accessor method.
|
java.lang.String |
getProblemDescription()
Return the description of the alarm.
|
ResponsiblePerson |
getResponsiblePerson()
Accessor method.
|
Source |
getSource()
Accessor method.
|
Status |
getStatus()
Accessor method.
|
java.lang.String |
getSystemName()
Accessor method.
|
Triplet |
getTriplet()
Accessor method.
|
boolean |
isChild() |
boolean |
isInstant()
Accessor method.
|
boolean |
isMultiplicityChild()
Accessor method.
|
boolean |
isMultiplicityParent()
Accessor method.
|
boolean |
isNew()
Return true if the alarm is new
|
boolean |
isNodeChild()
Accessor method.
|
boolean |
isNodeParent()
Accessor method.
|
boolean |
isParent() |
boolean |
isReduced() |
java.lang.String |
toString() |
void |
updateAlarm(AlarmTableEntry newAlarm)
Update the alarm with the new one.
|
public AlarmTableEntry(Alarm alarm)
The passed alarm can't be an AlarmTableEntry otherwise
we are nesting alarms on alarms. In that case an exception is thrown.
alarm - The alarm in the entrypublic void updateAlarm(AlarmTableEntry newAlarm)
newAlarm - The not null new alarmpublic Alarm getEncapsulatedAlarm()
public AlarmGUIType getAlarmType()
public boolean isNew()
public void alarmSeen()
public boolean isReduced()
true if the alarm is reducedpublic boolean isChild()
true if the alarm is a node or multiplicity childpublic boolean isParent()
true if the alarm is a node or multiplicity parentpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
Alarmclone in interface Alarmclone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionAlarm.clone()public java.lang.String getAction()
AlarmgetAction in interface AlarmAlarm.getAction()public java.lang.String getAlarmId()
AlarmgetAlarmId in interface AlarmAlarm.getAlarmId()public java.util.Collection getCategories()
AlarmgetCategories in interface AlarmAlarm.getCategories()public java.lang.String getCause()
AlarmgetCause in interface AlarmAlarm.getCause()public java.lang.String getConsequence()
AlarmgetConsequence in interface AlarmAlarm.getConsequence()public java.net.URL getHelpURL()
AlarmgetHelpURL in interface AlarmAlarm.getHelpURL()public java.lang.String getIdentifier()
AlarmgetIdentifier in interface AlarmAlarm.getIdentifier()public Location getLocation()
AlarmgetLocation in interface AlarmAlarm.getLocation()public java.lang.String getPiquetEmail()
AlarmgetPiquetEmail in interface AlarmAlarm.getPiquetEmail()public java.lang.String getPiquetGSM()
AlarmgetPiquetGSM in interface AlarmAlarm.getPiquetGSM()public java.lang.Integer getPriority()
AlarmgetPriority in interface AlarmAlarm.getPriority()public java.lang.String getProblemDescription()
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.
getProblemDescription in interface AlarmAlarm.getProblemDescription()public ResponsiblePerson getResponsiblePerson()
AlarmgetResponsiblePerson in interface AlarmAlarm.getResponsiblePerson()public Source getSource()
AlarmgetSource in interface AlarmAlarm.getSource()public Status getStatus()
AlarmgetStatus in interface AlarmAlarm.getStatus()public java.lang.String getSystemName()
AlarmgetSystemName in interface AlarmAlarm.getSystemName()public Triplet getTriplet()
AlarmgetTriplet in interface AlarmAlarm.getTriplet()public boolean isInstant()
AlarmisInstant in interface AlarmAlarm.isInstant()public boolean isMultiplicityChild()
AlarmisMultiplicityChild in interface AlarmAlarm.isMultiplicityChild()public boolean isMultiplicityParent()
AlarmisMultiplicityParent in interface AlarmAlarm.isMultiplicityParent()public boolean isNodeChild()
AlarmisNodeChild in interface AlarmAlarm.isNodeChild()public boolean isNodeParent()
AlarmisNodeParent in interface AlarmAlarm.isNodeParent()public java.lang.String toString()
toString in class java.lang.Object