Class BasicAlarmDefinition
- java.lang.Object
-
- com.inductiveautomation.ignition.common.config.BasicPropertySet
-
- com.inductiveautomation.ignition.common.alarming.config.BasicAlarmDefinition
-
- All Implemented Interfaces:
AlarmDefinition,Countable,Extendable<PropertySet>,Mergable<PropertySet>,MutablePropertyValueSource,ObservablePropertySet,PropertySet,PropertyValueSource,java.io.Serializable,java.lang.Iterable<PropertyValue>
public class BasicAlarmDefinition extends BasicPropertySet implements AlarmDefinition
- See Also:
- Serialized Form
-
-
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
Constructors Constructor Description BasicAlarmDefinition()BasicAlarmDefinition(AlarmDefinition copy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.Map<Property<?>,BoundAlarmProperty>getBoundProperties()BoundAlarmPropertygetBoundProperty(Property<?> property)java.lang.StringgetName()java.util.Collection<Property<?>>getProperties()protected java.lang.ObjectgetRaw(Property<?> prop)booleanisPropertyBound(Property<?> prop)voidmerge(PropertySet other, boolean localOnly)Merges the values from other collection into this one.voidremove(Property<?> prop)<T> voidset(Property<T> prop, T value)voidset(PropertyValue propValue)voidsetBoundProperties(java.util.Map<Property<?>,BoundAlarmProperty> boundProperties)voidsetBoundProperty(Property<?> property, BoundAlarmProperty value)voidsetName(java.lang.String name)java.lang.StringtoString()-
Methods inherited from class com.inductiveautomation.ignition.common.config.BasicPropertySet
addPropertyChangeListener, addPropertyChangeListener, change, coerceValue, contains, firePropertyChange, get, getCount, getExtension, getOrDefault, getOrElse, getRawValueMap, getValues, isExtended, isInherited, iterator, of, removePropertyChangeListener, removePropertyChangeListener, setDirect, setImpl, setRawValueMap
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.inductiveautomation.ignition.common.config.PropertySet
extend, getExtension, isExtended, isInherited, newDefaultInstance, newExtension
-
Methods inherited from interface com.inductiveautomation.ignition.common.config.PropertyValueSource
contains, get, getNonNull, getNonNull, getOrDefault, getOrElse, getValues
-
-
-
-
Constructor Detail
-
BasicAlarmDefinition
public BasicAlarmDefinition()
-
BasicAlarmDefinition
public BasicAlarmDefinition(AlarmDefinition copy)
-
-
Method Detail
-
getBoundProperties
public java.util.Map<Property<?>,BoundAlarmProperty> getBoundProperties()
-
setBoundProperties
public void setBoundProperties(java.util.Map<Property<?>,BoundAlarmProperty> boundProperties)
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceAlarmDefinition
-
setName
public void setName(java.lang.String name)
- Specified by:
setNamein interfaceAlarmDefinition
-
getRaw
protected java.lang.Object getRaw(Property<?> prop)
- Overrides:
getRawin classBasicPropertySet
-
isPropertyBound
public boolean isPropertyBound(Property<?> prop)
- Specified by:
isPropertyBoundin interfaceAlarmDefinition
-
set
public <T> void set(Property<T> prop, T value)
- Specified by:
setin interfaceMutablePropertyValueSource- Overrides:
setin classBasicPropertySet
-
set
public void set(PropertyValue propValue)
- Specified by:
setin interfaceMutablePropertyValueSource- Overrides:
setin classBasicPropertySet
-
setBoundProperty
public void setBoundProperty(Property<?> property, BoundAlarmProperty value)
- Specified by:
setBoundPropertyin interfaceAlarmDefinition
-
getBoundProperty
public BoundAlarmProperty getBoundProperty(Property<?> property)
- Specified by:
getBoundPropertyin interfaceAlarmDefinition
-
remove
public void remove(Property<?> prop)
- Specified by:
removein interfaceMutablePropertyValueSource- Overrides:
removein classBasicPropertySet
-
getProperties
public java.util.Collection<Property<?>> getProperties()
- Specified by:
getPropertiesin interfacePropertyValueSource- Overrides:
getPropertiesin classBasicPropertySet
-
toString
public java.lang.String toString()
- Overrides:
toStringin classBasicPropertySet
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classBasicPropertySet
-
merge
public void merge(PropertySet other, boolean localOnly)
Description copied from interface:MergableMerges the values from other collection into this one. Replaces any currently existing value with those from the other set.- Specified by:
mergein interfaceMergable<PropertySet>- Specified by:
mergein interfaceMutablePropertyValueSource
-
-