Interface AlarmEvent
- 
- All Superinterfaces:
- Countable,- Extendable<PropertySet>,- java.lang.Iterable<PropertyValue>,- Mergable<PropertySet>,- MutablePropertyValueSource,- PropertySet,- PropertyValueSource,- java.io.Serializable
 - All Known Subinterfaces:
- PyAlarmEvent
 - All Known Implementing Classes:
- AlarmEventInstance,- BasicAlarmEvent,- PyAlarmEventImpl
 
 public interface AlarmEvent extends PropertySet The alarm event transports all information about a particular alarm instance. It is generally generated when the alarm goes active, and then updated during the lifecycle of the event. The Alarm Event object contains details for each stage of the alarm cycle - active, clear, ack. However, the object itself extends from PropertySet, and contains properties that pertain to its overall lifecycle. These might be updated by the pipeline system, for example. The calls to getOrDefault and contains first search through the event data (ack to clear to active), and then to the base data, and therefore can be used in most cases that a property is required.
- 
- 
Field Summary- 
Fields inherited from interface com.inductiveautomation.ignition.common.config.PropertySetEMPTY
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidacknowledge(EventData ackData)voidactive(EventData activeData)voidclear(EventData clearData)EventDatagetAckData()EventDatagetActiveData()EventDatagetClearedData()StringPathgetDisplayPath()java.lang.StringgetDisplayPathOrSource()java.util.UUIDgetId()The unique id for this event.java.lang.StringgetLabel()Returns the "Label" property, or "Name" if not defined.AlarmStateTransitiongetLastEventState()Returns the most recent transition, or if this event represents a single state, the particular state that it represents.java.lang.StringgetName()java.lang.StringgetNotes()AlarmPrioritygetPriority()Returns the priority of the alarm event.QualifiedPathgetSource()The path to the alarm that generated this event.AlarmStategetState()Returns the current state, as an enum.booleanisAcked()booleanisCleared()booleanisShelved()Returns whether this is event is currently shelved, if the ShelfExpiration property is set, or whether the event was shelved, for journaled events, based on whether the IsShelved property is set.- 
Methods inherited from interface com.inductiveautomation.ignition.common.config.MutablePropertyValueSourcemerge, remove, set, set
 - 
Methods inherited from interface com.inductiveautomation.ignition.common.config.PropertySetextend, getExtension, isExtended, isInherited, newDefaultInstance, newExtension
 - 
Methods inherited from interface com.inductiveautomation.ignition.common.config.PropertyValueSourcecontains, get, getNonNull, getNonNull, getOrDefault, getOrElse, getProperties, getValues
 
- 
 
- 
- 
- 
Method Detail- 
getIdjava.util.UUID getId() The unique id for this event. Generated when the alarm is first generated, and then maintained for the life of the alarm event cycle.
 - 
getSourceQualifiedPath getSource() The path to the alarm that generated this event.
 - 
getNamejava.lang.String getName() 
 - 
getPriorityAlarmPriority getPriority() Returns the priority of the alarm event.
 - 
getDisplayPathStringPath getDisplayPath() 
 - 
getDisplayPathOrSourcejava.lang.String getDisplayPathOrSource() 
 - 
getLabeljava.lang.String getLabel() Returns the "Label" property, or "Name" if not defined.
 - 
activevoid active(EventData activeData) 
 - 
acknowledgevoid acknowledge(EventData ackData) 
 - 
clearvoid clear(EventData clearData) 
 - 
isClearedboolean isCleared() 
 - 
isAckedboolean isAcked() 
 - 
isShelvedboolean isShelved() Returns whether this is event is currently shelved, if the ShelfExpiration property is set, or whether the event was shelved, for journaled events, based on whether the IsShelved property is set.
 - 
getStateAlarmState getState() Returns the current state, as an enum. If this event represents a single state, such as the result from a journal query, this value will be misleading. In that case, getLastEventState() is the more accurate state function to use.
 - 
getLastEventStateAlarmStateTransition getLastEventState() Returns the most recent transition, or if this event represents a single state, the particular state that it represents.
 - 
getActiveDataEventData getActiveData() 
 - 
getClearedDataEventData getClearedData() 
 - 
getAckDataEventData getAckData() 
 - 
getNotesjava.lang.String getNotes() 
 
- 
 
-