public class ChatteringAlarmsContainer extends DocumentBase implements SourceListener, java.lang.Runnable
Each chattering alarms is an entry of the table. If the same alarm at a certain minute chatters more then it happened previously, its number and dates are updated to show the peak.
While counting for chattering alarms, this containers remember the last registered state because if an alarm is terminated three times but never activated this is not a chatter.
The number of activation/termination can instead be investigated in the MFA table.
This container has one list for the ChatteringAlrms (chatteringAlarms) to be sent to the table model,
and another one (tempAlarms) where received alarms are updated every minute.
At the end of the time interval, this new list is flushed in the the list for the view.
| Modifier and Type | Class and Description |
|---|---|
class |
ChatteringAlarmsContainer.ChatteringAlarm
A chattering alarm.
|
colNames, containerTitle, shutdown, tableViewer| Modifier and Type | Method and Description |
|---|---|
void |
faultStateReceived(FaultState faultState)
Each received
FaultState is stored in tempAlarms. |
static ChatteringAlarmsContainer |
getInstance() |
java.util.Collection<?> |
getNumbers() |
void |
run()
Automatically refresh the view
|
void |
setTableContent(TableData tData)
Add the text of the cells of the table
|
void |
setTableViewer(TableViewer table)
Ovveride to start the thread to refresh the vie
|
void |
sourceXMLMsgReceived(java.lang.String asiMessage)
An XML has been received from the source NC.
|
getDataToSave, shutdownContainerpublic static ChatteringAlarmsContainer getInstance()
public void setTableViewer(TableViewer table)
setTableViewer in class DocumentBasetable - the table viewer showing these alarmspublic java.util.Collection<?> getNumbers()
getNumbers in class DocumentBasepublic void run()
DocumentBaserun in interface java.lang.Runnablerun in class DocumentBasepublic void faultStateReceived(FaultState faultState)
FaultState is stored in tempAlarms.faultStateReceived in interface SourceListenerpublic void sourceXMLMsgReceived(java.lang.String asiMessage)
SourceListenerThe XML follows the ASIMessage.xsd schema definition and therefore it might have one or more fault states.
sourceXMLMsgReceived in interface SourceListenerasiMessage - The ASIMessage received from an alarm sourcepublic void setTableContent(TableData tData)
DocumentBasesetTableContent in class DocumentBasetData - The table data to set the string of the rows