When the categories are available, the alarms are assigned to the categories (this complete the alarms initialization initiated by ACSAlarmDAOImpl)
|
Constructor
|
|
Add the ROOT category This avoid the user to add this entry in the CDB |
|
Set the ID of this category in the children list of its parents A category contains a list of all its children. The first category is ROOT. If a category is child of another category is inferred by its name. If a category has no parents, it is set to be a ROOT child.
|
|
Assign the category to the all the alarms of a given FaultFamily. In the CDB each category has a list (eventually empty) of FaultFamily. If a FaultFamily appear in the definition of a Category then add such category to all the alarms of such FF.
|
|
Assign the default category to the alarms not assigned to any category Scans all the alarms to check for alarms without any category and assign the default category to them.
|
|
|
|
Dumps the category. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load the categories from the CDB. Loads all the category from the CDB and build an internal representation of category. The category is also added to all the alarms having the fault family specified in the XML. All the categories derive from ROOT that is built here as default (in this way the user does ot need to add the ROOT entry in the CDB).
|
|
|
|
|
|
|
|
Set the parent ID of the passed category Each category has a parent ID that can be evaluated by reading the name of the category. If the name does not contain ':' then the parent ID is the ROOT. Otherwise its parent is the category whose name is represented by the substring before the ':'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The default category used to publish alarms not assigned to any category. This is read by the CDB from the is-default attribute of a category. In the configuration files there should be only one default category but we can't consider an error if there is more then one (in this case a log message is submitted). If the default category is defined more then once, the first definition is used. If no default category is defined another log message is submitted. In this case alarms not assigned to any category will remain unassigned. |
|
|
|
|
|
|