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,Serializable,Iterable<PropertyValue>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.inductiveautomation.ignition.common.config.BasicPropertySet
BasicPropertySet.Builder -
Field Summary
Fields inherited from interface com.inductiveautomation.ignition.common.config.PropertySet
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionBasicAlarmEvent(AlarmEvent event) BasicAlarmEvent(AlarmEvent event, String notes) BasicAlarmEvent(QualifiedPath source, String displayPath, AlarmPriority priority) BasicAlarmEvent(QualifiedPath source, String displayPath, AlarmPriority priority, String notes) BasicAlarmEvent(UUID id, QualifiedPath source, StringPath displayPath, AlarmPriority priority, String notes) BasicAlarmEvent(UUID id, QualifiedPath source, String displayPath, AlarmPriority priority) BasicAlarmEvent(UUID id, QualifiedPath source, String displayPath, AlarmPriority priority, String notes) -
Method Summary
Modifier and TypeMethodDescriptionvoidacknowledge(EventData ackData) voidvoidbooleanboolean<T> TRetrieves the value of the property, or null if this set doesn't contain that property.protected <T> TgetId()The unique id for this event.getLabel()Returns the "Label" property, or "Name" if not defined.Returns the most recent transition, or if this event represents a single state, the particular state that it represents.getName()getNotes()<T> TgetOrDefault(Property<T> prop) Searches the various event datas for the specified property.Returns the priority of the alarm event.The path to the alarm that generated this event.getState()Returns the current state, as an enum.booleanisAcked()booleanbooleanReturns 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.toString()Methods inherited from class com.inductiveautomation.ignition.common.config.BasicPropertySet
addPropertyChangeListener, addPropertyChangeListener, change, coerceValue, firePropertyChange, getCount, getExtension, getOrElse, getProperties, getRaw, getRawValueMap, getValues, isExtended, isInherited, iterator, of, remove, removePropertyChangeListener, removePropertyChangeListener, set, set, setDirect, setImpl, setRawValueMapMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface com.inductiveautomation.ignition.common.config.MutablePropertyValueSource
merge, remove, set, setMethods inherited from interface com.inductiveautomation.ignition.common.config.PropertySet
extend, getExtension, isExtended, isInherited, newDefaultInstance, newExtensionMethods inherited from interface com.inductiveautomation.ignition.common.config.PropertyValueSource
getNonNull, getNonNull, getOrElse, getProperties, getValues
-
Constructor Details
-
BasicAlarmEvent
-
BasicAlarmEvent
public BasicAlarmEvent(QualifiedPath source, String displayPath, AlarmPriority priority, String notes) -
BasicAlarmEvent
-
BasicAlarmEvent
public BasicAlarmEvent(UUID id, QualifiedPath source, String displayPath, AlarmPriority priority, String notes) -
BasicAlarmEvent
public BasicAlarmEvent(UUID id, QualifiedPath source, StringPath displayPath, AlarmPriority priority, String notes) -
BasicAlarmEvent
-
BasicAlarmEvent
-
-
Method Details
-
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 interfaceAlarmEvent
-
getSource
The path to the alarm that generated this event.- Specified by:
getSourcein interfaceAlarmEvent
-
getName
- Specified by:
getNamein interfaceAlarmEvent
-
getPriority
Returns the priority of the alarm event.- Specified by:
getPriorityin interfaceAlarmEvent
-
getDisplayPath
- Specified by:
getDisplayPathin interfaceAlarmEvent
-
getDisplayPathOrSource
- Specified by:
getDisplayPathOrSourcein interfaceAlarmEvent
-
getLabel
Description copied from interface:AlarmEventReturns the "Label" property, or "Name" if not defined.- Specified by:
getLabelin interfaceAlarmEvent
-
active
- Specified by:
activein interfaceAlarmEvent
-
acknowledge
- Specified by:
acknowledgein interfaceAlarmEvent
-
clear
- Specified by:
clearin interfaceAlarmEvent
-
isCleared
public boolean isCleared()- Specified by:
isClearedin interfaceAlarmEvent
-
isAcked
public boolean isAcked()- Specified by:
isAckedin interfaceAlarmEvent
-
isShelved
public 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 interfaceAlarmEvent
-
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 interfaceAlarmEvent
-
getLastEventState
Returns the most recent transition, or if this event represents a single state, the particular state that it represents.- Specified by:
getLastEventStatein interfaceAlarmEvent
-
getActiveData
- Specified by:
getActiveDatain interfaceAlarmEvent
-
getClearedData
- Specified by:
getClearedDatain interfaceAlarmEvent
-
getAckData
- Specified by:
getAckDatain interfaceAlarmEvent
-
getNotes
- Specified by:
getNotesin interfaceAlarmEvent
-
getOrDefault
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 interfacePropertyValueSource- Overrides:
getOrDefaultin classBasicPropertySet- Returns:
- The value for prop or
Property.getDefaultValue()if not present. Can return null if the value is null.
-
get
Description copied from interface:PropertyValueSourceRetrieves the value of the property, or null if this set doesn't contain that property.- Specified by:
getin interfacePropertyValueSource- Overrides:
getin classBasicPropertySet
-
get
-
contains
- Specified by:
containsin interfacePropertyValueSource- Overrides:
containsin classBasicPropertySet- Returns:
- True if the source contains a value for prop.
-
toString
- Overrides:
toStringin classBasicPropertySet
-
equals
- Overrides:
equalsin classBasicPropertySet
-