Package org.yamcs.alarms
Class ActiveAlarm<T>
java.lang.Object
org.yamcs.alarms.ActiveAlarm<T>
Keeps track of the alarm for one parameter or event.
This will only exist for an alarm that has been triggered. A parameter that has limits definition but never had an out of limits value, will not have an active alarm.
Note: generics parameter T can effectively be either ParameterValue or Db.Event
-
Method Summary
Modifier and TypeMethodDescriptionlonglongintgetId()longlonglongintintvoidvoidbooleanbooleanbooleanisNormal()Returns true if the alarm is back to normal: processOK=true, acknowledged=true and triggered=falsebooleanbooleanbooleanbooleanvoidsetCurrentValue(T value) setMostSevereValue(T mostSevereValue) voidsetPending(boolean pending) voidsetValueCount(int valueCount) toString()booleanvoidunshelve()
-
Method Details
-
isAutoAcknowledge
public boolean isAutoAcknowledge() -
isAcknowledged
public boolean isAcknowledged() -
isPending
public boolean isPending() -
getId
public int getId() -
getAckMessage
-
triggered
public boolean triggered() -
isShelved
public boolean isShelved() -
unshelve
public void unshelve() -
getShelveUsername
-
getShelveTime
public long getShelveTime() -
getShelveMessage
-
getShelveDuration
public long getShelveDuration() -
isNormal
public boolean isNormal()Returns true if the alarm is back to normal: processOK=true, acknowledged=true and triggered=falseNote that when latching is enabled, triggered can be true even if processOK=true
-
getShelveExpiration
public long getShelveExpiration() -
isProcessOK
public boolean isProcessOK() -
isTriggered
public boolean isTriggered() -
getClearTime
public long getClearTime() -
getUsernameThatShelved
-
getClearMessage
-
getUsernameThatCleared
-
getUsernameThatAcknowledged
-
getAcknowledgeTime
public long getAcknowledgeTime() -
getTriggerValue
-
getCurrentValue
-
setCurrentValue
-
getMostSevereValue
-
incrementValueCount
public void incrementValueCount() -
getValueCount
public int getValueCount() -
setValueCount
public void setValueCount(int valueCount) -
incrementViolations
public void incrementViolations() -
getViolations
public int getViolations() -
setMostSevereValue
-
setPending
public void setPending(boolean pending) -
toString
-