Class DefaultAlertEvent

java.lang.Object
com.inductiveautomation.ignition.common.alert.AbstractAlertEvent
com.inductiveautomation.ignition.common.alert.DefaultAlertEvent
All Implemented Interfaces:
AlertEvent, Serializable

public class DefaultAlertEvent extends AbstractAlertEvent
A simple immutable implementation of AlertEvent
See Also:
  • Constructor Details

  • Method Details

    • getAcknowledgedTimestamp

      public Date getAcknowledgedTimestamp()
      Description copied from interface: AlertEvent
      Returns the active timestamp of the alert or null if not acknowledged.
    • getActiveTimestamp

      public Date getActiveTimestamp()
      Description copied from interface: AlertEvent
      Returns the active timestamp of the alert or null if not active.
    • getActiveValue

      public Double getActiveValue()
      Description copied from interface: AlertEvent
      Returns the active value of the alert or null if not active.
    • getClearedTimestamp

      public Date getClearedTimestamp()
      Description copied from interface: AlertEvent
      Returns the cleared timestamp of the alert or null if not cleared.
    • getClearedValue

      public Double getClearedValue()
      Description copied from interface: AlertEvent
      Returns the cleared value of the alert or null if not cleared.
    • getPath

      public String getPath()
      Description copied from interface: AlertEvent
      Returns 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
    • getDisplayPath

      public String getDisplayPath()
      Description copied from interface: AlertEvent
      Returns a user-entered path for the alert.
    • getNotes

      public String getNotes()
      Description copied from interface: AlertEvent
      Returns user-entered notes for the alert.
    • getStateName

      public String getStateName()
      Description copied from interface: AlertEvent
      Returns the name of the alert state that was triggered
    • getStateSeverity

      public AlertSeverity getStateSeverity()
      Description copied from interface: AlertEvent
      Returns the severity of the alert state
    • getSystem

      public String getSystem()
      Description copied from interface: AlertEvent
      Returns the name of the SCADARail system responsible for the alert
    • getUser

      public String getUser()
      Description copied from interface: AlertEvent
      Returns a username associated with the message or null if not set. Mostly used for Acknowledgements.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object