Class BasicAlarmStateSummary
java.lang.Object
com.inductiveautomation.ignition.gateway.alarming.evaluation.BasicAlarmStateSummary
- All Implemented Interfaces:
AlarmStateSummary
-
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic AlarmStateSummaryfromEvents(List<AlarmEvent> events, AlarmEvalState evalState) static AlarmStateSummaryfromStates(List<AlarmStateSummary> states) intintintintintintintintReturns the highest active alarm, either acknowledged or not.intintintintintintbooleanbooleanbooleanbooleanbooleanbooleaninthashCode()booleanvoidsetActiveAcked(int activeAcked) voidsetActiveUnacked(int activeUnacked) voidsetClearedUnacked(int clearedUnacked) voidsetHighestAcked(AlarmPriority highestAcked) voidsetHighestAckedName(String highestAckedName) voidsetHighestUnacked(AlarmPriority highestUnacked) voidsetHighestUnackedName(String highestUnackedName) voidsetShelvedCount(int shelvedCount) voidupdateHighestAcked(String name, AlarmPriority prio) voidupdateHighestUnacked(String name, AlarmPriority prio)
-
Method Details
-
fromStates
-
fromEvents
-
getEvaluationStatus
- Specified by:
getEvaluationStatusin interfaceAlarmStateSummary
-
getActiveCountCritical
public int getActiveCountCritical()- Specified by:
getActiveCountCriticalin interfaceAlarmStateSummary
-
getActiveCountHigh
public int getActiveCountHigh()- Specified by:
getActiveCountHighin interfaceAlarmStateSummary
-
getActiveCountMedium
public int getActiveCountMedium()- Specified by:
getActiveCountMediumin interfaceAlarmStateSummary
-
getActiveCountLow
public int getActiveCountLow()- Specified by:
getActiveCountLowin interfaceAlarmStateSummary
-
getActiveCountDiagnostic
public int getActiveCountDiagnostic()- Specified by:
getActiveCountDiagnosticin interfaceAlarmStateSummary
-
getUnackCountCritical
public int getUnackCountCritical()- Specified by:
getUnackCountCriticalin interfaceAlarmStateSummary
-
getUnackCountHigh
public int getUnackCountHigh()- Specified by:
getUnackCountHighin interfaceAlarmStateSummary
-
getUnackCountMedium
public int getUnackCountMedium()- Specified by:
getUnackCountMediumin interfaceAlarmStateSummary
-
getUnackCountLow
public int getUnackCountLow()- Specified by:
getUnackCountLowin interfaceAlarmStateSummary
-
getUnackCountDiagnostic
public int getUnackCountDiagnostic()- Specified by:
getUnackCountDiagnosticin interfaceAlarmStateSummary
-
hasActiveUnackedCritical
public boolean hasActiveUnackedCritical()- Specified by:
hasActiveUnackedCriticalin interfaceAlarmStateSummary
-
hasActiveUnackedHigh
public boolean hasActiveUnackedHigh()- Specified by:
hasActiveUnackedHighin interfaceAlarmStateSummary
-
hasActiveUnackedMedium
public boolean hasActiveUnackedMedium()- Specified by:
hasActiveUnackedMediumin interfaceAlarmStateSummary
-
hasActiveUnackedLow
public boolean hasActiveUnackedLow()- Specified by:
hasActiveUnackedLowin interfaceAlarmStateSummary
-
hasActiveUnackedDiagnostic
public boolean hasActiveUnackedDiagnostic()- Specified by:
hasActiveUnackedDiagnosticin interfaceAlarmStateSummary
-
getMostRecentActiveTime
- Specified by:
getMostRecentActiveTimein interfaceAlarmStateSummary
-
getActiveUnacked
public int getActiveUnacked()- Specified by:
getActiveUnackedin interfaceAlarmStateSummary
-
setActiveUnacked
public void setActiveUnacked(int activeUnacked) -
getActiveAcked
public int getActiveAcked()- Specified by:
getActiveAckedin interfaceAlarmStateSummary
-
setActiveAcked
public void setActiveAcked(int activeAcked) -
getShelvedCount
public int getShelvedCount()- Specified by:
getShelvedCountin interfaceAlarmStateSummary
-
setShelvedCount
public void setShelvedCount(int shelvedCount) -
hasActive
public boolean hasActive()- Specified by:
hasActivein interfaceAlarmStateSummary
-
hasUnacknowledged
public boolean hasUnacknowledged()- Specified by:
hasUnacknowledgedin interfaceAlarmStateSummary
-
getClearedUnacked
public int getClearedUnacked()- Specified by:
getClearedUnackedin interfaceAlarmStateSummary
-
setClearedUnacked
public void setClearedUnacked(int clearedUnacked) -
getHighestUnacked
- Specified by:
getHighestUnackedin interfaceAlarmStateSummary
-
setHighestUnacked
-
getHighestAcked
- Specified by:
getHighestAckedin interfaceAlarmStateSummary
-
setHighestAcked
-
getHighestUnackedName
- Specified by:
getHighestUnackedNamein interfaceAlarmStateSummary
-
setHighestUnackedName
-
getHighestAckedName
- Specified by:
getHighestAckedNamein interfaceAlarmStateSummary
-
setHighestAckedName
-
updateHighestAcked
-
updateHighestUnacked
-
getHighestActiveName
Description copied from interface:AlarmStateSummaryReturns the highest active alarm, either acknowledged or not.- Specified by:
getHighestActiveNamein interfaceAlarmStateSummary
-
getHighestActivePriority
- Specified by:
getHighestActivePriorityin interfaceAlarmStateSummary
-
hashCode
public int hashCode() -
equals
-