|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttwaver.alarm.AlarmStateStatistics
public class AlarmStateStatistics
The AlarmStateStatistics
class is designed to calculate
alarm state of elements in connected data box.
Constructor Summary | |
---|---|
AlarmStateStatistics()
Creates a AlarmStateStatistics instance with a default
data box created inside the initialization. |
|
AlarmStateStatistics(ElementBox box)
Creates a a AlarmStateStatistics instance with a given data box object. |
|
AlarmStateStatistics(ElementBox box,
java.util.List<AlarmSeverity> alarmSeverities)
Creates a a AlarmStateStatistics instance with a given data box object. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(IListener<PropertyChangeEvent> listener)
|
protected void |
fireAlarmStateChange()
Fire alarm state change event. |
protected void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
|
ElementBox |
geElementBox()
Gets the connected data box. |
int |
getAcknowledgedAlarmCount()
Gets the acknowledged alarm count of elements in connected data box. |
int |
getAcknowledgedAlarmCount(AlarmSeverity severity)
Get acknowledged alarm count for specified alarm severity. |
int |
getNewAlarmCount()
Gets the new alarm count of elements in connected data box. |
int |
getNewAlarmCount(AlarmSeverity severity)
Get new alarm count for specified alarm severity. |
IDispatcher<PropertyChangeEvent> |
getPropertyChangeDispatcher()
|
java.util.List<AlarmSeverity> |
getSeverityList()
Gets a list contains all alarm severities that are interested. |
int |
getTotalAlarmCount()
Gets the total alarm count of elements in connected data box, including new and acknowledged alarm. |
int |
getTotalAlarmCount(AlarmSeverity severity)
Get alarm total count for specified alarm severity. |
IFilter<Element> |
getVisibleFilter()
Gets the visible filter for this alarm statistic. |
boolean |
isVisible(Element element)
Checks whether the given element is needed to be calculated for this alarm statistic. |
void |
removePropertyChangeListener(IListener<PropertyChangeEvent> listener)
|
void |
reset()
Calls this method to recalculate all alarm count of elements in data box. |
void |
seElementBox(ElementBox box)
Sets a new data box for this alarm state statistic. |
void |
setVisibleFilter(IFilter<Element> visibleFilter)
Sets a new visible filter for this alarm statistic. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AlarmStateStatistics()
AlarmStateStatistics
instance with a default
data box created inside the initialization.
public AlarmStateStatistics(ElementBox box)
AlarmStateStatistics
instance with a given data box object.
box
- the connected data box object.public AlarmStateStatistics(ElementBox box, java.util.List<AlarmSeverity> alarmSeverities)
AlarmStateStatistics
instance with a given data box object.
box
- the connected data box object.alarmSeverities
- a list contains alarm severities that need to be calculated.Method Detail |
---|
public IDispatcher<PropertyChangeEvent> getPropertyChangeDispatcher()
protected void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
public void addPropertyChangeListener(IListener<PropertyChangeEvent> listener)
public void removePropertyChangeListener(IListener<PropertyChangeEvent> listener)
public ElementBox geElementBox()
public void seElementBox(ElementBox box)
box
- a new data box to be calculated.protected void fireAlarmStateChange()
public int getNewAlarmCount()
public int getTotalAlarmCount()
public int getAcknowledgedAlarmCount()
public int getTotalAlarmCount(AlarmSeverity severity)
severity
- AlarmSeverity an alarm severity to be calculate
public int getNewAlarmCount(AlarmSeverity severity)
severity
- AlarmSeverity alarm severity to be check
getAcknowledgedAlarmCount()
public int getAcknowledgedAlarmCount(AlarmSeverity severity)
severity
- AlarmSeverity alarm severity to be check
getNewAlarmCount()
public void reset()
public IFilter<Element> getVisibleFilter()
public void setVisibleFilter(IFilter<Element> visibleFilter)
visibleFilter
- a new visible filter.public boolean isVisible(Element element)
element
- the element to be checked.
public java.util.List<AlarmSeverity> getSeverityList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |