Public Member Functions | |
List< ReductionRule > | getNodeReductionRules () |
List< ReductionRule > | getMultiReductionRules () |
void | loadFromCDB () |
String | checkCDB () |
ReductionRule | getNRParentByTriplet (String ff, String fm, int fc) |
ReductionRule | getMRParentByTriplet (String ff, String fm, int fc) |
boolean | deleteNodeReductionRule (Alarm p, Alarm c) throws IllegalOperationException |
boolean | deleteMultiReductionRule (Alarm p, Alarm c) throws IllegalOperationException |
void | addNodeReductionRule (Alarm p, Alarm c) throws IllegalOperationException, NullPointerException |
void | addMultiReductionRule (Alarm p, Alarm c) throws IllegalOperationException, NullPointerException |
void | updateMultiThreshold (Alarm p, int v) throws IllegalOperationException, NullPointerException |
void | saveToCDB () |
Static Public Member Functions | |
static ReductionManager | getInstance (AlarmDAO alarmDAO) |
static void | destroy () |
void cl.utfsm.acs.acg.core.ReductionManager.addMultiReductionRule | ( | Alarm | p, | |
Alarm | c | |||
) | throws IllegalOperationException, NullPointerException |
Adds a Multiplicity Reduction Rule
p | Alarm parent of this Multi Reduction Rule | |
a | Alarm child of this Multi Reduction Rule |
IllegalOperationException | if is not a Multi Reduction Rule |
References cl.utfsm.acs.acg.core.ObjectState.create(), cern.laser.business.data.Alarm.getAlarmId(), cern.laser.business.data.Triplet.getFaultCode(), cern.laser.business.data.Triplet.getFaultFamily(), cern.laser.business.data.Triplet.getFaultMember(), cl.utfsm.acs.acg.core.ReductionManager.getMRParentByTriplet(), cern.laser.business.data.Alarm.getTriplet(), cl.utfsm.acs.acg.core.ReductionRule.setIsNodeReduction(), cl.utfsm.acs.acg.core.ReductionRule.setThreshold(), and cl.utfsm.acs.acg.core.ObjectState.update().
void cl.utfsm.acs.acg.core.ReductionManager.addNodeReductionRule | ( | Alarm | p, | |
Alarm | c | |||
) | throws IllegalOperationException, NullPointerException |
Adds a Node Reduction Rule
p | Alarm parent of this Node Reduction Rule | |
a | Alarm child of this Node Reduction Rule |
IllegalOperationException | if is not a Node Reduction Rule |
References cern.laser.business.data.Triplet.getFaultCode(), cern.laser.business.data.Triplet.getFaultFamily(), cern.laser.business.data.Triplet.getFaultMember(), cl.utfsm.acs.acg.core.ReductionManager.getNRParentByTriplet(), cern.laser.business.data.Alarm.getTriplet(), and cl.utfsm.acs.acg.core.ReductionRule.setIsNodeReduction().
String cl.utfsm.acs.acg.core.ReductionManager.checkCDB | ( | ) |
boolean cl.utfsm.acs.acg.core.ReductionManager.deleteMultiReductionRule | ( | Alarm | p, | |
Alarm | c | |||
) | throws IllegalOperationException |
Deletes a Node Reduction Rule
p | Parent of the Rule to be deleted | |
c | Child of the Rule to be deleted |
References cern.laser.business.data.Triplet.getFaultCode(), cern.laser.business.data.Triplet.getFaultFamily(), cern.laser.business.data.Triplet.getFaultMember(), cl.utfsm.acs.acg.core.ReductionManager.getMRParentByTriplet(), and cern.laser.business.data.Alarm.getTriplet().
boolean cl.utfsm.acs.acg.core.ReductionManager.deleteNodeReductionRule | ( | Alarm | p, | |
Alarm | c | |||
) | throws IllegalOperationException |
Deletes a Node Reduction Rule
p | Parent of the Rule to be deleted | |
c | Child of the Rule to be deleted |
References cern.laser.business.data.Triplet.getFaultCode(), cern.laser.business.data.Triplet.getFaultFamily(), cern.laser.business.data.Triplet.getFaultMember(), cl.utfsm.acs.acg.core.ReductionManager.getNRParentByTriplet(), and cern.laser.business.data.Alarm.getTriplet().
static void cl.utfsm.acs.acg.core.ReductionManager.destroy | ( | ) | [static] |
Destroys the singleton instance of this class. This is needed to renew the internal reference to the AlarmDAO if a new connection to the DAL and the ACS Manager has been performed
static ReductionManager cl.utfsm.acs.acg.core.ReductionManager.getInstance | ( | AlarmDAO | alarmDAO | ) | [static] |
ReductionRule cl.utfsm.acs.acg.core.ReductionManager.getMRParentByTriplet | ( | String | ff, | |
String | fm, | |||
int | fc | |||
) |
Returns an Alarm which is parent in a Multiplicity Reduction Rule, constrained to the given triplet values.
ff | The Fault Family of the Alarm | |
fm | The Fault Member of the Alarm | |
fc | The Fault Code of the Alarm |
References cern.laser.business.data.Triplet.getFaultCode(), cern.laser.business.data.Triplet.getFaultFamily(), cern.laser.business.data.Triplet.getFaultMember(), cl.utfsm.acs.acg.core.ReductionRule.getParent(), and cern.laser.business.data.Alarm.getTriplet().
Referenced by cl.utfsm.acs.acg.core.ReductionManager.addMultiReductionRule(), cl.utfsm.acs.acg.core.ReductionManager.deleteMultiReductionRule(), cl.utfsm.acs.acg.gui.ReductionsView.fillMRParentChAlarmList(), cl.utfsm.acs.acg.core.ReductionManager.saveToCDB(), and cl.utfsm.acs.acg.core.ReductionManager.updateMultiThreshold().
List<ReductionRule> cl.utfsm.acs.acg.core.ReductionManager.getMultiReductionRules | ( | ) |
List<ReductionRule> cl.utfsm.acs.acg.core.ReductionManager.getNodeReductionRules | ( | ) |
Referenced by cl.utfsm.acs.acg.core.AlarmManager.deleteFaultCode(), cl.utfsm.acs.acg.core.AlarmManager.deleteFaultFamily(), cl.utfsm.acs.acg.core.AlarmManager.deleteFaultMember(), cl.utfsm.acs.acg.core.AlarmManager.setFaultMemberDefault(), and cl.utfsm.acs.acg.gui.ReductionsView.sortNodeReductionRuleList().
ReductionRule cl.utfsm.acs.acg.core.ReductionManager.getNRParentByTriplet | ( | String | ff, | |
String | fm, | |||
int | fc | |||
) |
Returns an Alarm which is parent in a Node Reduction Rule, constrained to the given triplet values.
ff | The Fault Family of the Alarm | |
fm | The Fault Member of the Alarm | |
fc | The Fault Code of the Alarm |
References cern.laser.business.data.Triplet.getFaultCode(), cern.laser.business.data.Triplet.getFaultFamily(), cern.laser.business.data.Triplet.getFaultMember(), cl.utfsm.acs.acg.core.ReductionRule.getParent(), and cern.laser.business.data.Alarm.getTriplet().
Referenced by cl.utfsm.acs.acg.core.ReductionManager.addNodeReductionRule(), cl.utfsm.acs.acg.core.ReductionManager.deleteNodeReductionRule(), and cl.utfsm.acs.acg.gui.ReductionsView.fillNRParentChAlarmList().
void cl.utfsm.acs.acg.core.ReductionManager.loadFromCDB | ( | ) |
Performs a full reload of the contents of the Manager. All the current internal contents of the EntityManager are cleared, and replaced by the ones that are currently available on the CDB. Therefore, this call should be done with great care.
Implements cl.utfsm.acs.acg.core.EntityManager.
References cl.utfsm.acs.acg.core.ReductionRule.addChild(), cern.laser.business.data.Alarm.getMultiplicityChildren(), cern.laser.business.data.Alarm.getMultiplicityThreshold(), cern.laser.business.data.Alarm.getNodeChildren(), cl.utfsm.acs.acg.core.ReductionRule.setIsNodeReduction(), and cl.utfsm.acs.acg.core.ReductionRule.setThreshold().
Referenced by cl.utfsm.acs.acg.core.AlarmSystemManager.loadFromCDB().
void cl.utfsm.acs.acg.core.ReductionManager.saveToCDB | ( | ) |
Performs a full save of the contents of the Manager to the CDB. All the modified contents of the CDB are updated, and replaced by the ones that are currently available on the EntityManager. Therefore, this call should be done with great care.
Implements cl.utfsm.acs.acg.core.EntityManager.
References cl.utfsm.acs.acg.core.ObjectState.getAction(), cern.laser.business.data.Alarm.getAlarmId(), cl.utfsm.acs.acg.core.ReductionRule.getChildren(), cl.utfsm.acs.acg.core.ReductionRule.getIsNodeReduction(), cl.utfsm.acs.acg.core.ReductionManager.getMRParentByTriplet(), cl.utfsm.acs.acg.core.ReductionRule.getParent(), cl.utfsm.acs.acg.core.ReductionRule.getThreshold(), and org.exolab.castor.core.exceptions.CastorException.printStackTrace().
Referenced by cl.utfsm.acs.acg.core.AlarmSystemManager.saveToCDB().
void cl.utfsm.acs.acg.core.ReductionManager.updateMultiThreshold | ( | Alarm | p, | |
int | v | |||
) | throws IllegalOperationException, NullPointerException |
References cern.laser.business.data.Alarm.getAlarmId(), cern.laser.business.data.Triplet.getFaultCode(), cern.laser.business.data.Triplet.getFaultFamily(), cern.laser.business.data.Triplet.getFaultMember(), cl.utfsm.acs.acg.core.ReductionManager.getMRParentByTriplet(), cern.laser.business.data.Alarm.getTriplet(), cl.utfsm.acs.acg.core.ReductionRule.setThreshold(), and cl.utfsm.acs.acg.core.ObjectState.update().