Class PyAlarmEventImpl
- java.lang.Object
- 
- org.python.core.PyObject
- 
- com.inductiveautomation.ignition.common.alarming.PyAlarmEventImpl
 
 
- 
- All Implemented Interfaces:
- AlarmEvent,- PyAlarmEvent,- Countable,- Extendable<PropertySet>,- Mergable<PropertySet>,- MutablePropertyValueSource,- PropertySet,- PropertyValueSource,- java.io.Serializable,- java.lang.Iterable<PropertyValue>
 
 public class PyAlarmEventImpl extends org.python.core.PyObject implements PyAlarmEvent - See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description static org.python.core.PyString__doc__- 
Fields inherited from interface com.inductiveautomation.ignition.common.config.PropertySetEMPTY
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description PyAlarmEventImpl(AlarmEvent event)protectedPyAlarmEventImpl(AlarmEvent event, org.python.core.PyType type)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description void__delitem__(org.python.core.PyObject key)org.python.core.PyObject__findattr_ex__(java.lang.String name)org.python.core.PyObject__finditem__(org.python.core.PyObject key)int__len__()Implements the python len() function.void__setattr__(java.lang.String name, org.python.core.PyObject value)void__setitem__(org.python.core.PyObject key, org.python.core.PyObject value)voidacknowledge(EventData ackData)voidactive(EventData activeData)voidclear(EventData clearData)booleancontains(Property<?> prop)java.lang.Booleancontains(java.lang.String property)booleancontains(org.python.core.PyObject prop)protected Property<?>findOrMakeProperty(java.lang.String propertyName)<T> Tget(Property<T> prop)Retrieves the value of the property, or null if this set doesn't contain that property.java.lang.Objectget(java.lang.String propertyName)EventDatagetAckData()EventDatagetActiveData()EventDatagetClearedData()intgetCount()StringPathgetDisplayPath()java.lang.StringgetDisplayPathOrSource()java.util.UUIDgetId()The unique id for this event.protected java.lang.ObjectgetJavaProxy()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)java.lang.ObjectgetOrDefault(java.lang.String property)<T> TgetOrElse(Property<T> prop, T value)Get the value for a givenProperty, or else fall back to value if it's not present.java.lang.ObjectgetOrElse(java.lang.String property, java.lang.Object defaultValue)AlarmPrioritygetPriority()Returns the priority of the alarm event.java.util.Collection<Property<?>>getProperties()QualifiedPathgetSource()The path to the alarm that generated this event.AlarmStategetState()Returns the current state, as an enum.java.util.List<PropertyValue>getValues()Returns the opaque PropertyValue objects.booleanisAcked()booleanisCleared()booleanisExtended(Property<?> prop)Returns whether this property set contains a value for the prop, and the prop was actually inherited.booleanisInherited(Property<?> prop)Indicates whether the property was inherited from a parent type.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.java.util.Iterator<PropertyValue>iterator()voidmerge(PropertySet other)voidremove(Property<?> prop)<T> voidset(Property<T> prop, T value)voidset(PropertyValue propValue)protected voidset(PropertyValue pv, boolean global)voidset(java.lang.String propertyName, java.lang.Object value)protected voidset(java.lang.String propertyName, java.lang.Object value, boolean global)voidsetGlobal(java.lang.String propertyName, java.lang.Object value)AlarmEventsourceEvent()This is only present in order to enable much more advanced scripting.java.lang.StringtoString()- 
Methods inherited from class org.python.core.PyObject__abs__, __add__, __and__, __call__, __call__, __call__, __call__, __call__, __call__, __call__, __call__, __call__, __call__, __call__, __call__, __call__, __call__, __call__, __call__, __cmp__, __coerce__, __coerce_ex__, __complex__, __contains__, __delattr__, __delattr__, __delete__, __delitem__, __delslice__, __delslice__, __dir__, __div__, __divmod__, __ensure_finalizer__, __eq__, __findattr__, __findattr__, __finditem__, __finditem__, __float__, __floordiv__, __format__, __ge__, __get__, __getattr__, __getattr__, __getitem__, __getitem__, __getnewargs__, __getslice__, __getslice__, __gt__, __hash__, __hex__, __iadd__, __iand__, __idiv__, __idivmod__, __ifloordiv__, __ilshift__, __imod__, __imul__, __index__, __int__, __invert__, __ior__, __ipow__, __irshift__, __isub__, __iter__, __iternext__, __itruediv__, __ixor__, __le__, __long__, __lshift__, __lt__, __mod__, __mul__, __ne__, __neg__, __nonzero__, __not__, __oct__, __or__, __pos__, __pow__, __pow__, __radd__, __rand__, __rawdir__, __rdiv__, __rdivmod__, __reduce__, __reduce_ex__, __reduce_ex__, __repr__, __rfloordiv__, __rlshift__, __rmod__, __rmul__, __ror__, __rpow__, __rrshift__, __rshift__, __rsub__, __rtruediv__, __rxor__, __set__, __setattr__, __setitem__, __setitem__, __setslice__, __setslice__, __str__, __sub__, __tojava__, __truediv__, __trunc__, __unicode__, __xor__, _add, _and, _callextra, _cmp, _div, _divmod, _doget, _doget, _doset, _eq, _floordiv, _ge, _gt, _iadd, _iand, _idiv, _idivmod, _ifloordiv, _ilshift, _imod, _imul, _in, _ior, _ipow, _irshift, _is, _isnot, _isub, _itruediv, _ixor, _jcall, _jcallexc, _jthrow, _le, _lshift, _lt, _mod, _mul, _ne, _notin, _or, _pow, _rshift, _sub, _truediv, _unsupportedop, _xor, adaptToCoerceTuple, asDouble, asIndex, asIndex, asInt, asInt, asIterable, asLong, asLong, asName, asName, asString, asString, asStringOrNull, asStringOrNull, bit_length, conjugate, delDict, delType, dispatch__init__, equals, fastGetClass, fastGetDict, finalize, getDict, getType, hashCode, impAttr, implementsDescrDelete, implementsDescrGet, implementsDescrSet, invoke, invoke, invoke, invoke, invoke, invoke, isCallable, isDataDescr, isIndex, isInteger, isMappingType, isNumberType, isSequenceType, mergeClassDict, mergeDictAttr, mergeListAttr, noAttributeError, object___subclasshook__, readonlyAttributeError, runsupportedopMessage, setDict, setType, unsupportedopMessage
 - 
Methods inherited from interface com.inductiveautomation.ignition.common.config.MutablePropertyValueSourcemerge
 - 
Methods inherited from interface com.inductiveautomation.ignition.common.config.PropertySetextend, getExtension, newDefaultInstance, newExtension
 - 
Methods inherited from interface com.inductiveautomation.ignition.common.config.PropertyValueSourcegetNonNull, getNonNull
 
- 
 
- 
- 
- 
Constructor Detail- 
PyAlarmEventImplprotected PyAlarmEventImpl(AlarmEvent event, org.python.core.PyType type) 
 - 
PyAlarmEventImplpublic PyAlarmEventImpl(AlarmEvent event) 
 
- 
 - 
Method Detail- 
sourceEventpublic AlarmEvent sourceEvent() Description copied from interface:PyAlarmEventThis is only present in order to enable much more advanced scripting. It should not normally be used. *- Specified by:
- sourceEventin interface- PyAlarmEvent
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- org.python.core.PyObject
 
 - 
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
 
 - 
findOrMakePropertyprotected Property<?> findOrMakeProperty(java.lang.String propertyName) 
 - 
get@Nullable public java.lang.Object get(java.lang.String propertyName) - Specified by:
- getin interface- PyAlarmEvent
 
 - 
getOrDefault@Nullable public java.lang.Object getOrDefault(java.lang.String property) - Specified by:
- getOrDefaultin interface- PyAlarmEvent
 
 - 
getOrElse@Nullable public java.lang.Object getOrElse(java.lang.String property, java.lang.Object defaultValue)- Specified by:
- getOrElsein interface- PyAlarmEvent
 
 - 
containspublic java.lang.Boolean contains(java.lang.String property) - Specified by:
- containsin interface- PyAlarmEvent
 
 - 
setpublic void set(java.lang.String propertyName, java.lang.Object value)- Specified by:
- setin interface- PyAlarmEvent
 
 - 
setGlobalpublic void setGlobal(java.lang.String propertyName, java.lang.Object value)- Specified by:
- setGlobalin interface- PyAlarmEvent
 
 - 
setprotected void set(java.lang.String propertyName, java.lang.Object value, boolean global)
 - 
setprotected void set(PropertyValue pv, boolean global) 
 - 
setpublic <T> void set(Property<T> prop, T value) - Specified by:
- setin interface- MutablePropertyValueSource
 
 - 
setpublic void set(PropertyValue propValue) - Specified by:
- setin interface- MutablePropertyValueSource
 
 - 
removepublic void remove(Property<?> prop) - Specified by:
- removein interface- MutablePropertyValueSource
 
 - 
getPropertiespublic java.util.Collection<Property<?>> getProperties() - Specified by:
- getPropertiesin interface- PropertyValueSource
 
 - 
getValuespublic java.util.List<PropertyValue> getValues() Description copied from interface:PropertyValueSourceReturns the opaque PropertyValue objects. This can be useful when you want to avoid the strict type checking of the value, and it's important to note that if the property is bound, the value will be a BoundValue. Be very careful about overriding, and make sure to maintain the methodology of using getProperties to iterate and get (or getOrDefault), to get the value, because those are all handled differently by BoundPropertySets, ExtendedPropertySets, etc.- Specified by:
- getValuesin interface- PropertyValueSource
 
 - 
isExtendedpublic boolean isExtended(Property<?> prop) Description copied from interface:PropertySetReturns whether this property set contains a value for the prop, and the prop was actually inherited. In other words, this is true if the property is inherited, and an override value is present.- Specified by:
- isExtendedin interface- PropertySet
 
 - 
isInheritedpublic boolean isInherited(Property<?> prop) Description copied from interface:PropertySetIndicates whether the property was inherited from a parent type.- Specified by:
- isInheritedin interface- PropertySet
 
 - 
mergepublic void merge(PropertySet other) - Specified by:
- mergein interface- Mergable<PropertySet>
 
 - 
iteratorpublic java.util.Iterator<PropertyValue> iterator() - Specified by:
- iteratorin interface- java.lang.Iterable<PropertyValue>
 
 - 
containspublic boolean contains(Property<?> prop) - Specified by:
- containsin interface- PropertyValueSource
- Returns:
- True if the source contains a value for prop.
 
 - 
containspublic boolean contains(org.python.core.PyObject prop) 
 - 
getOrDefaultpublic <T> T getOrDefault(Property<T> prop) - Specified by:
- getOrDefaultin interface- PropertyValueSource
- Returns:
- The value for prop or Property.getDefaultValue()if not present. Can return null if the value is null.
 
 - 
getOrElsepublic <T> T getOrElse(Property<T> prop, T value) Description copied from interface:PropertyValueSourceGet the value for a givenProperty, or else fall back to value if it's not present.- Specified by:
- getOrElsein interface- PropertyValueSource
- Parameters:
- prop- The- Propertyfor which a value is to be retrieved.
- value- The value to default to if property isn't present.
- Returns:
- The value of property if present, value if not. Can return null if the value is null.
 
 - 
getIdpublic java.util.UUID getId() Description copied from interface:AlarmEventThe 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() Description copied from interface:AlarmEventThe 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() Description copied from interface:AlarmEventReturns 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() Description copied from interface:AlarmEventReturns 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.- Specified by:
- isShelvedin interface- AlarmEvent
 
 - 
getStatepublic AlarmState getState() Description copied from interface:AlarmEventReturns 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() Description copied from interface:AlarmEventReturns 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
 
 - 
__len__public int __len__() Implements the python len() function. Can this be made more useful?- Overrides:
- __len__in class- org.python.core.PyObject
 
 - 
__finditem__public org.python.core.PyObject __finditem__(org.python.core.PyObject key) - Overrides:
- __finditem__in class- org.python.core.PyObject
 
 - 
__findattr_ex__@Nullable public org.python.core.PyObject __findattr_ex__(java.lang.String name) - Overrides:
- __findattr_ex__in class- org.python.core.PyObject
 
 - 
__setattr__public void __setattr__(java.lang.String name, org.python.core.PyObject value)- Overrides:
- __setattr__in class- org.python.core.PyObject
 
 - 
__setitem__public void __setitem__(org.python.core.PyObject key, org.python.core.PyObject value)- Overrides:
- __setitem__in class- org.python.core.PyObject
 
 - 
__delitem__public void __delitem__(org.python.core.PyObject key) - Overrides:
- __delitem__in class- org.python.core.PyObject
 
 - 
getJavaProxyprotected java.lang.Object getJavaProxy() - Overrides:
- getJavaProxyin class- org.python.core.PyObject
 
 
- 
 
-