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 TypeMethodDescriptionvoid
add
(AlarmDefinition definition) boolean
default AlarmConfiguration
extend
(AlarmConfiguration parent) If called on a child, gets the extension with the given parent.default AlarmConfiguration
This returns an object that represents the value only for the most "local" level.default AlarmConfiguration
intersect
(List<AlarmConfiguration> values) boolean
isInherited
(AlarmDefinition definition) boolean
isOverridden
(AlarmDefinition definition) default void
merge
(AlarmConfiguration other, boolean localOnly) Merges the values from other collection into this one.default AlarmConfiguration
Called 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:Extendable
Called on a base object, gets a new extension with a default config object for the child.- Specified by:
newExtension
in interfaceExtendable<AlarmConfiguration>
-
extend
Description copied from interface:Extendable
If called on a child, gets the extension with the given parent.- Specified by:
extend
in interfaceExtendable<AlarmConfiguration>
-
getExtension
Description copied from interface:Extendable
This 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:
getExtension
in interfaceExtendable<AlarmConfiguration>
-
intersect
- Specified by:
intersect
in interfaceIntersectable<AlarmConfiguration>
-
merge
Description copied from interface:Mergable
Merges the values from other collection into this one. Replaces any currently existing value with those from the other set.- Specified by:
merge
in interfaceMergable<AlarmConfiguration>
-