public class FloodContainer extends DocumentBase implements AlarmCategoryListener
| Modifier and Type | Class and Description |
|---|---|
static class |
FloodContainer.FloodItem |
colNames, containerTitle, shutdown, tableViewer| Modifier and Type | Method and Description |
|---|---|
void |
doneFlood() |
float |
getAvgAlarmsInFloods() |
int |
getHighestAlarmsCountInFloods() |
static FloodContainer |
getInstance() |
java.util.Collection<FloodContainer.FloodItem> |
getNumbers() |
int |
getNumOfFloods() |
int |
getTotAlarmsInFloods() |
long |
getTotTimeInFloods() |
void |
onAlarm(Alarm alarm)
Called on alarm change arrival.
|
void |
setTableContent(TableData tData)
Add the text of the cells of the table
|
void |
setTableViewer(TableViewer table)
Set the table viewer showing these alarms
|
void |
shutdownContainer()
Shut down the container and free the resources
|
getDataToSave, runpublic static FloodContainer getInstance()
public int getTotAlarmsInFloods()
public long getTotTimeInFloods()
public float getAvgAlarmsInFloods()
public int getHighestAlarmsCountInFloods()
public int getNumOfFloods()
public java.util.Collection<FloodContainer.FloodItem> getNumbers()
getNumbers in class DocumentBasepublic void shutdownContainer()
DocumentBaseshutdownContainer in class DocumentBasepublic void setTableViewer(TableViewer table)
DocumentBasesetTableViewer in class DocumentBasetable - the table viewer showing these alarmspublic void doneFlood()
public void onAlarm(Alarm alarm)
AlarmCategoryListeneronAlarm in interface AlarmCategoryListeneralarm - The alarmpublic void setTableContent(TableData tData)
DocumentBasesetTableContent in class DocumentBasetData - The table data to set the string of the rows