Interface AlarmConfiguration
- All Superinterfaces:
Countable,Extendable<AlarmConfiguration>,Intersectable<AlarmConfiguration>,Mergable<AlarmConfiguration>,Serializable
- All Known Implementing Classes:
AlarmConfigurationConfig,AlarmConfigurationDiff,BasicAlarmConfiguration,ExtendedAlarmConfiguration,IntersectedAlarmConfiguration
public interface AlarmConfiguration
extends Serializable, Countable, Mergable<AlarmConfiguration>, Extendable<AlarmConfiguration>, Intersectable<AlarmConfiguration>
An alarm configuration is simply a set of AlarmDefinitions (that is, the definitions for various alarms) for a
specific object. However, the definition is an interface, because the AlarmConfiguration supports the Config pattern
of editing, and individual alarm config overridding for UDTs.
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(AlarmDefinition definition) booleandefault AlarmConfigurationextend(AlarmConfiguration parent) If called on a child, gets the extension with the given parent.default AlarmConfigurationThis returns an object that represents the value only for the most "local" level.default AlarmConfigurationintersect(List<AlarmConfiguration> values) booleanisInherited(AlarmDefinition definition) booleanisOverridden(AlarmDefinition definition) default voidmerge(AlarmConfiguration other, boolean localOnly) Merges the values from other collection into this one.default AlarmConfigurationCalled on a base object, gets a new extension with a default config object for the child.void
-
Method Details
-
getDefinitions
List<AlarmDefinition> getDefinitions() -
get
-
add
-
remove
-
contains
-
isOverridden
-
isInherited
-
newExtension
Description copied from interface:ExtendableCalled on a base object, gets a new extension with a default config object for the child.- Specified by:
newExtensionin interfaceExtendable<AlarmConfiguration>
-
extend
Description copied from interface:ExtendableIf called on a child, gets the extension with the given parent.- Specified by:
extendin interfaceExtendable<AlarmConfiguration>
-
getExtension
Description copied from interface:ExtendableThis returns an object that represents the value only for the most "local" level. That is, this is the difference between the inherited base and the current extension. Complex objects should ensure that trait is true for all aspects of the returned value.- Specified by:
getExtensionin interfaceExtendable<AlarmConfiguration>
-
intersect
- Specified by:
intersectin interfaceIntersectable<AlarmConfiguration>
-
merge
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<AlarmConfiguration>
-