Class BasicAlarmEvent
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.config.BasicPropertySet
- 
- com.inductiveautomation.ignition.common.alarming.BasicAlarmEvent
 
 
- 
- All Implemented Interfaces:
- AlarmEvent,- Countable,- Extendable<PropertySet>,- Mergable<PropertySet>,- MutablePropertyValueSource,- ObservablePropertySet,- PropertySet,- PropertyValueSource,- java.io.Serializable,- java.lang.Iterable<PropertyValue>
 
 public class BasicAlarmEvent extends BasicPropertySet implements AlarmEvent - See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.inductiveautomation.ignition.common.config.BasicPropertySetBasicPropertySet.Builder
 
- 
 - 
Field Summary- 
Fields inherited from interface com.inductiveautomation.ignition.common.config.PropertySetEMPTY
 
- 
 - 
Constructor SummaryConstructors Constructor Description BasicAlarmEvent(AlarmEvent event)BasicAlarmEvent(QualifiedPath source, java.lang.String displayPath, AlarmPriority priority)BasicAlarmEvent(QualifiedPath source, java.lang.String displayPath, AlarmPriority priority, java.lang.String notes)BasicAlarmEvent(java.util.UUID id, QualifiedPath source, StringPath displayPath, AlarmPriority priority, java.lang.String notes)BasicAlarmEvent(java.util.UUID id, QualifiedPath source, java.lang.String displayPath, AlarmPriority priority)BasicAlarmEvent(java.util.UUID id, QualifiedPath source, java.lang.String displayPath, AlarmPriority priority, java.lang.String notes)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidacknowledge(EventData ackData)voidactive(EventData activeData)voidclear(EventData clearData)booleancontains(Property<?> prop)booleanequals(java.lang.Object obj)<T> Tget(Property<T> prop)Retrieves the value of the property, or null if this set doesn't contain that property.protected <T> Tget(Property<T> prop, boolean retDefault)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()<T> TgetOrDefault(Property<T> prop)Searches the various event datas for the specified property.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, base on whether the IsShelved property is set.java.lang.StringtoString()- 
Methods inherited from class com.inductiveautomation.ignition.common.config.BasicPropertySetaddPropertyChangeListener, addPropertyChangeListener, change, coerceValue, firePropertyChange, getCount, getExtension, getOrElse, getProperties, getRaw, getRawValueMap, getValues, isExtended, isInherited, iterator, of, remove, removePropertyChangeListener, removePropertyChangeListener, set, set, setDirect, setImpl, setRawValueMap
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
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.PropertyValueSourcegetNonNull, getNonNull, getOrElse, getProperties, getValues
 
- 
 
- 
- 
- 
Constructor Detail- 
BasicAlarmEventpublic BasicAlarmEvent(QualifiedPath source, java.lang.String displayPath, AlarmPriority priority) 
 - 
BasicAlarmEventpublic BasicAlarmEvent(QualifiedPath source, java.lang.String displayPath, AlarmPriority priority, java.lang.String notes) 
 - 
BasicAlarmEventpublic BasicAlarmEvent(java.util.UUID id, QualifiedPath source, java.lang.String displayPath, AlarmPriority priority)
 - 
BasicAlarmEventpublic BasicAlarmEvent(java.util.UUID id, QualifiedPath source, java.lang.String displayPath, AlarmPriority priority, java.lang.String notes)
 - 
BasicAlarmEventpublic BasicAlarmEvent(java.util.UUID id, QualifiedPath source, StringPath displayPath, AlarmPriority priority, java.lang.String notes)
 - 
BasicAlarmEventpublic BasicAlarmEvent(AlarmEvent event) 
 
- 
 - 
Method Detail- 
getIdpublic java.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.- Specified by:
- getIdin interface- AlarmEvent
 
 - 
getSourcepublic QualifiedPath getSource() The path to the alarm that generated this event.- Specified by:
- getSourcein interface- AlarmEvent
 
 - 
getNamepublic java.lang.String getName() - Specified by:
- getNamein interface- AlarmEvent
 
 - 
getPrioritypublic AlarmPriority getPriority() Returns the priority of the alarm event.- Specified by:
- getPriorityin interface- AlarmEvent
 
 - 
getDisplayPathpublic StringPath getDisplayPath() - Specified by:
- getDisplayPathin interface- AlarmEvent
 
 - 
getDisplayPathOrSourcepublic java.lang.String getDisplayPathOrSource() - Specified by:
- getDisplayPathOrSourcein interface- AlarmEvent
 
 - 
getLabelpublic java.lang.String getLabel() Description copied from interface:AlarmEventReturns the "Label" property, or "Name" if not defined.- Specified by:
- getLabelin interface- AlarmEvent
 
 - 
activepublic void active(EventData activeData) - Specified by:
- activein interface- AlarmEvent
 
 - 
acknowledgepublic void acknowledge(EventData ackData) - Specified by:
- acknowledgein interface- AlarmEvent
 
 - 
clearpublic void clear(EventData clearData) - Specified by:
- clearin interface- AlarmEvent
 
 - 
isClearedpublic boolean isCleared() - Specified by:
- isClearedin interface- AlarmEvent
 
 - 
isAckedpublic boolean isAcked() - Specified by:
- isAckedin interface- AlarmEvent
 
 - 
isShelvedpublic boolean isShelved() Returns whether this is event is currently shelved, if the ShelfExpiration property is set, or whether the event was shelved, for journaled events, base on whether the IsShelved property is set.- Specified by:
- isShelvedin interface- AlarmEvent
 
 - 
getStatepublic AlarmState 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.- Specified by:
- getStatein interface- AlarmEvent
 
 - 
getLastEventStatepublic AlarmStateTransition getLastEventState() Returns the most recent transition, or if this event represents a single state, the particular state that it represents.- Specified by:
- getLastEventStatein interface- AlarmEvent
 
 - 
getActiveDatapublic EventData getActiveData() - Specified by:
- getActiveDatain interface- AlarmEvent
 
 - 
getClearedDatapublic EventData getClearedData() - Specified by:
- getClearedDatain interface- AlarmEvent
 
 - 
getAckDatapublic EventData getAckData() - Specified by:
- getAckDatain interface- AlarmEvent
 
 - 
getNotespublic java.lang.String getNotes() - Specified by:
- getNotesin interface- AlarmEvent
 
 - 
getOrDefaultpublic <T> T getOrDefault(Property<T> prop) Searches the various event datas for the specified property. Looks in the order: Ack, Clear, Active, according to the state the event is in. If not found, the default is returned.- Specified by:
- getOrDefaultin interface- PropertyValueSource
- Overrides:
- getOrDefaultin class- BasicPropertySet
- Returns:
- The value for prop or Property.getDefaultValue()if not present. Can return null if the value is null.
 
 - 
getpublic <T> T get(Property<T> prop) Description copied from interface:PropertyValueSourceRetrieves the value of the property, or null if this set doesn't contain that property.- Specified by:
- getin interface- PropertyValueSource
- Overrides:
- getin class- BasicPropertySet
 
 - 
getprotected <T> T get(Property<T> prop, boolean retDefault) 
 - 
containspublic boolean contains(Property<?> prop) - Specified by:
- containsin interface- PropertyValueSource
- Overrides:
- containsin class- BasicPropertySet
- Returns:
- True if the source contains a value for prop.
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- BasicPropertySet
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- BasicPropertySet
 
 
- 
 
-