public class PyAlarmEventImpl extends org.python.core.PyObject implements AlarmEvent, PyAlarmEvent
Modifier and Type | Field and Description |
---|---|
static org.python.core.PyString |
__doc__ |
Modifier | Constructor and Description |
---|---|
|
PyAlarmEventImpl(AlarmEvent event) |
protected |
PyAlarmEventImpl(AlarmEvent event,
org.python.core.PyType type) |
Modifier and Type | Method and 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) |
void |
acknowledge(EventData ackData) |
void |
active(EventData activeData) |
void |
clear(EventData clearData) |
boolean |
contains(Property<?> prop) |
boolean |
contains(org.python.core.PyObject prop) |
java.lang.Boolean |
contains(java.lang.String property) |
protected Property<?> |
findOrMakeProperty(java.lang.String propertyName) |
<T> T |
get(Property<T> prop)
Retrieves the value of the property, or null if this set doesn't contain that property.
|
java.lang.Object |
get(java.lang.String propertyName) |
EventData |
getAckData() |
EventData |
getActiveData() |
EventData |
getClearedData() |
int |
getCount()
The number of properties contained in this PropertySet
|
StringPath |
getDisplayPath() |
java.lang.String |
getDisplayPathOrSource() |
java.util.UUID |
getId()
The unique id for this event.
|
AlarmStateTransition |
getLastEventState()
Returns the most recent transition, or if this event represents a single state, the particular state that it
represents.
|
java.lang.String |
getName() |
java.lang.String |
getNotes() |
<T> T |
getOrDefault(Property<T> prop) |
java.lang.Object |
getOrDefault(java.lang.String property) |
<T> T |
getOrElse(Property<T> prop,
T value)
Get the value for a given
Property , or else fall back to value if it's not present. |
java.lang.Object |
getOrElse(java.lang.String property,
java.lang.Object defaultValue) |
AlarmPriority |
getPriority()
Returns the priority of the alarm event.
|
java.util.Collection<Property<?>> |
getProperties() |
QualifiedPath |
getSource()
The path to the alarm that generated this event.
|
AlarmState |
getState()
Returns the current state, as an enum.
|
java.util.List<PropertyValue> |
getValues() |
boolean |
isAcked() |
boolean |
isCleared() |
boolean |
isExtended(Property<?> prop)
Returns whether this property set contains a value for the prop, and the prop was actually inherited.
|
boolean |
isInherited(Property<?> prop)
Indicates whether the property was inherited from a parent type.
|
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.
|
java.util.Iterator<PropertyValue> |
iterator() |
void |
merge(PropertySet other)
Merges the values from other into this set.
|
void |
remove(Property<?> prop) |
<T> void |
set(Property<T> prop,
T value) |
void |
set(PropertyValue propValue) |
protected void |
set(PropertyValue pv,
boolean global) |
void |
set(java.lang.String propertyName,
java.lang.Object value) |
protected void |
set(java.lang.String propertyName,
java.lang.Object value,
boolean global) |
void |
setGlobal(java.lang.String propertyName,
java.lang.Object value) |
AlarmEvent |
sourceEvent()
This is only present in order to enable much more advanced scripting.
|
java.lang.String |
toString() |
__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__, __eq__, __findattr__, __findattr__, __finditem__, __finditem__, __float__, __floordiv__, __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__, __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, delDict, delType, dispatch__init__, equals, fastGetClass, fastGetDict, getDict, getJavaProxy, getType, hashCode, impAttr, implementsDescrDelete, implementsDescrGet, implementsDescrSet, invoke, invoke, invoke, invoke, invoke, invoke, isCallable, isDataDescr, isIndex, isMappingType, isNumberType, isSequenceType, mergeClassDict, mergeDictAttr, mergeListAttr, noAttributeError, readonlyAttributeError, runsupportedopMessage, setDict, setType, unsupportedopMessage
protected PyAlarmEventImpl(AlarmEvent event, org.python.core.PyType type)
public PyAlarmEventImpl(AlarmEvent event)
public AlarmEvent sourceEvent()
PyAlarmEvent
sourceEvent
in interface PyAlarmEvent
public java.lang.String toString()
toString
in class org.python.core.PyObject
public <T> T get(Property<T> prop)
PropertyValueSource
get
in interface PropertyValueSource
protected Property<?> findOrMakeProperty(java.lang.String propertyName)
public java.lang.Object get(java.lang.String propertyName)
get
in interface PyAlarmEvent
public java.lang.Object getOrDefault(java.lang.String property)
getOrDefault
in interface PyAlarmEvent
public java.lang.Object getOrElse(java.lang.String property, java.lang.Object defaultValue)
getOrElse
in interface PyAlarmEvent
public java.lang.Boolean contains(java.lang.String property)
contains
in interface PyAlarmEvent
public void set(java.lang.String propertyName, java.lang.Object value)
set
in interface PyAlarmEvent
public void setGlobal(java.lang.String propertyName, java.lang.Object value)
setGlobal
in interface PyAlarmEvent
protected void set(java.lang.String propertyName, java.lang.Object value, boolean global)
protected void set(PropertyValue pv, boolean global)
public <T> void set(Property<T> prop, T value)
set
in interface MutablePropertyValueSource
public void set(PropertyValue propValue)
set
in interface MutablePropertyValueSource
public void remove(Property<?> prop)
remove
in interface MutablePropertyValueSource
public int getCount()
PropertySet
getCount
in interface PropertySet
public java.util.Collection<Property<?>> getProperties()
getProperties
in interface PropertySet
public java.util.List<PropertyValue> getValues()
getValues
in interface PropertySet
public boolean isExtended(Property<?> prop)
PropertyValueSource
isExtended
in interface PropertyValueSource
public boolean isInherited(Property<?> prop)
PropertyValueSource
isInherited
in interface PropertyValueSource
public void merge(PropertySet other)
MutablePropertyValueSource
merge
in interface MutablePropertyValueSource
public java.util.Iterator<PropertyValue> iterator()
iterator
in interface java.lang.Iterable<PropertyValue>
public boolean contains(Property<?> prop)
contains
in interface PropertyValueSource
public boolean contains(org.python.core.PyObject prop)
public <T> T getOrDefault(Property<T> prop)
getOrDefault
in interface PropertyValueSource
Property.getDefaultValue()
if not present.public <T> T getOrElse(Property<T> prop, T value)
PropertyValueSource
Property
, or else fall back to value if it's not present.getOrElse
in interface PropertyValueSource
value
- The value to default to if property isn't present.public java.util.UUID getId()
AlarmEvent
getId
in interface AlarmEvent
public QualifiedPath getSource()
AlarmEvent
getSource
in interface AlarmEvent
public java.lang.String getName()
getName
in interface AlarmEvent
public AlarmPriority getPriority()
AlarmEvent
getPriority
in interface AlarmEvent
public StringPath getDisplayPath()
getDisplayPath
in interface AlarmEvent
public java.lang.String getDisplayPathOrSource()
getDisplayPathOrSource
in interface AlarmEvent
public void active(EventData activeData)
active
in interface AlarmEvent
public void acknowledge(EventData ackData)
acknowledge
in interface AlarmEvent
public void clear(EventData clearData)
clear
in interface AlarmEvent
public boolean isCleared()
isCleared
in interface AlarmEvent
public boolean isAcked()
isAcked
in interface AlarmEvent
public boolean isShelved()
AlarmEvent
isShelved
in interface AlarmEvent
public AlarmState getState()
AlarmEvent
getState
in interface AlarmEvent
public AlarmStateTransition getLastEventState()
AlarmEvent
getLastEventState
in interface AlarmEvent
public EventData getActiveData()
getActiveData
in interface AlarmEvent
public EventData getClearedData()
getClearedData
in interface AlarmEvent
public EventData getAckData()
getAckData
in interface AlarmEvent
public java.lang.String getNotes()
getNotes
in interface AlarmEvent
public int __len__()
__len__
in class org.python.core.PyObject
public org.python.core.PyObject __finditem__(org.python.core.PyObject key)
__finditem__
in class org.python.core.PyObject
public org.python.core.PyObject __findattr_ex__(java.lang.String name)
__findattr_ex__
in class org.python.core.PyObject
public void __setattr__(java.lang.String name, org.python.core.PyObject value)
__setattr__
in class org.python.core.PyObject
public void __setitem__(org.python.core.PyObject key, org.python.core.PyObject value)
__setitem__
in class org.python.core.PyObject
public void __delitem__(org.python.core.PyObject key)
__delitem__
in class org.python.core.PyObject