Class AlarmConfigurationDiff
java.lang.Object
com.inductiveautomation.ignition.common.alarming.config.AlarmConfigurationDiff
- All Implemented Interfaces:
- AlarmConfiguration,- Countable,- Extendable<AlarmConfiguration>,- Intersectable<AlarmConfiguration>,- Mergable<AlarmConfiguration>,- Serializable
Keeps track of added, modified and removed alarm definitions. Will return a diff for any requested name, so get()
 should NOT be used to check if the alarm exists. Instead, use contains().
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidadd(AlarmDefinition definition) booleanprotected Map.Entry<String,AlarmDefinition> Returns a fresh AlarmDefinitionDiff when first called for a name, unless the name has been removed.intgetCount()In this case, count does not mean "alarms", but instead, number of edits present.In this case, returns the modified (or new) alarm definitions.Returns the names of the removed AlarmDefinitions.booleanbooleanisInherited(AlarmDefinition definition) booleanisModified(String name) booleanisOverridden(AlarmDefinition definition) booleanvoidtoString()Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.inductiveautomation.ignition.common.alarming.config.AlarmConfigurationextend, getExtension, intersect, merge, newExtension
- 
Constructor Details- 
AlarmConfigurationDiffpublic AlarmConfigurationDiff()
 
- 
- 
Method Details- 
getCountpublic int getCount()In this case, count does not mean "alarms", but instead, number of edits present.
- 
getRemovedReturns the names of the removed AlarmDefinitions.
- 
isRemoved
- 
isModified
- 
getDefinitionsIn this case, returns the modified (or new) alarm definitions.- Specified by:
- getDefinitionsin interface- AlarmConfiguration
 
- 
isOverridden- Specified by:
- isOverriddenin interface- AlarmConfiguration
 
- 
isInherited- Specified by:
- isInheritedin interface- AlarmConfiguration
 
- 
remove- Specified by:
- removein interface- AlarmConfiguration
 
- 
getReturns a fresh AlarmDefinitionDiff when first called for a name, unless the name has been removed.- Specified by:
- getin interface- AlarmConfiguration
 
- 
contains- Specified by:
- containsin interface- AlarmConfiguration
 
- 
find
- 
add- Specified by:
- addin interface- AlarmConfiguration
 
- 
hasChangespublic boolean hasChanges()
- 
toString
 
-