Class DefaultAlertEvent
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.alert.AbstractAlertEvent
- 
- com.inductiveautomation.ignition.common.alert.DefaultAlertEvent
 
 
- 
- All Implemented Interfaces:
- AlertEvent,- java.io.Serializable
 
 public class DefaultAlertEvent extends AbstractAlertEvent A simple immutable implementation of AlertEvent- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description DefaultAlertEvent(AlertEvent event)DefaultAlertEvent(java.lang.String system, java.lang.String path, java.lang.String stateName, AlertSeverity stateSeverity, java.lang.Double activeValue, java.util.Date activeTimestamp, java.lang.Double clearedValue, java.util.Date clearedTimestamp, java.lang.String user, java.util.Date acknowledgedTimestamp, java.lang.String displayPath, java.lang.String notes)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.DategetAcknowledgedTimestamp()Returns the active timestamp of the alert ornullif not acknowledged.java.util.DategetActiveTimestamp()Returns the active timestamp of the alert ornullif not active.java.lang.DoublegetActiveValue()Returns the active value of the alert ornullif not active.java.util.DategetClearedTimestamp()Returns the cleared timestamp of the alert ornullif not cleared.java.lang.DoublegetClearedValue()Returns the cleared value of the alert ornullif not cleared.java.lang.StringgetDisplayPath()Returns a user-entered path for the alert.java.lang.StringgetNotes()Returns user-entered notes for the alert.java.lang.StringgetPath()Returns the path of the source, such as the path to a SQLTag, which should be reasonably unique.java.lang.StringgetStateName()Returns the name of the alert state that was triggeredAlertSeveritygetStateSeverity()Returns the severity of the alert statejava.lang.StringgetSystem()Returns the name of the SCADARail system responsible for the alertjava.lang.StringgetUser()Returns a username associated with the message ornullif not set.inthashCode()java.lang.StringtoString()- 
Methods inherited from class com.inductiveautomation.ignition.common.alert.AbstractAlertEventisAcked, isActive, isClear
 
- 
 
- 
- 
- 
Constructor Detail- 
DefaultAlertEventpublic DefaultAlertEvent(AlertEvent event) 
 - 
DefaultAlertEventpublic DefaultAlertEvent(java.lang.String system, java.lang.String path, java.lang.String stateName, AlertSeverity stateSeverity, java.lang.Double activeValue, java.util.Date activeTimestamp, java.lang.Double clearedValue, java.util.Date clearedTimestamp, java.lang.String user, java.util.Date acknowledgedTimestamp, java.lang.String displayPath, java.lang.String notes)
 
- 
 - 
Method Detail- 
getAcknowledgedTimestamppublic java.util.Date getAcknowledgedTimestamp() Description copied from interface:AlertEventReturns the active timestamp of the alert ornullif not acknowledged.
 - 
getActiveTimestamppublic java.util.Date getActiveTimestamp() Description copied from interface:AlertEventReturns the active timestamp of the alert ornullif not active.
 - 
getActiveValuepublic java.lang.Double getActiveValue() Description copied from interface:AlertEventReturns the active value of the alert ornullif not active.
 - 
getClearedTimestamppublic java.util.Date getClearedTimestamp() Description copied from interface:AlertEventReturns the cleared timestamp of the alert ornullif not cleared.
 - 
getClearedValuepublic java.lang.Double getClearedValue() Description copied from interface:AlertEventReturns the cleared value of the alert ornullif not cleared.
 - 
getPathpublic java.lang.String getPath() Description copied from interface:AlertEventReturns the path of the source, such as the path to a SQLTag, which should be reasonably unique. That is, there should not be another alert with the same path in the same SCADARail system. This path lets alert handlers correlate ACKS and CLEARS with their initial ALERTs
 - 
getDisplayPathpublic java.lang.String getDisplayPath() Description copied from interface:AlertEventReturns a user-entered path for the alert.
 - 
getNotespublic java.lang.String getNotes() Description copied from interface:AlertEventReturns user-entered notes for the alert.
 - 
getStateNamepublic java.lang.String getStateName() Description copied from interface:AlertEventReturns the name of the alert state that was triggered
 - 
getStateSeveritypublic AlertSeverity getStateSeverity() Description copied from interface:AlertEventReturns the severity of the alert state
 - 
getSystempublic java.lang.String getSystem() Description copied from interface:AlertEventReturns the name of the SCADARail system responsible for the alert
 - 
getUserpublic java.lang.String getUser() Description copied from interface:AlertEventReturns a username associated with the message ornullif not set. Mostly used for Acknowledgements.
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-