Public Member Functions | Static Public Member Functions

cl.utfsm.acs.acg.core.ReductionManager Class Reference

Inheritance diagram for cl.utfsm.acs.acg.core.ReductionManager:
cl.utfsm.acs.acg.core.EntityManager

List of all members.

Public Member Functions

List< ReductionRulegetNodeReductionRules ()
List< ReductionRulegetMultiReductionRules ()
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 ()

Detailed Description

Author:
rtobar

Member Function Documentation

void cl.utfsm.acs.acg.core.ReductionManager.addNodeReductionRule ( Alarm  p,
Alarm  c 
) throws IllegalOperationException, NullPointerException
String cl.utfsm.acs.acg.core.ReductionManager.checkCDB (  ) 
boolean cl.utfsm.acs.acg.core.ReductionManager.deleteMultiReductionRule ( Alarm  p,
Alarm  c 
) throws IllegalOperationException
boolean cl.utfsm.acs.acg.core.ReductionManager.deleteNodeReductionRule ( Alarm  p,
Alarm  c 
) throws IllegalOperationException
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.

Parameters:
ff The Fault Family of the Alarm
fm The Fault Member of the Alarm
fc The Fault Code of the Alarm
Returns:
The Alarm described by the triplet, and which is a parent alarm in a Multiplicity 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.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 (  ) 
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.

Parameters:
ff The Fault Family of the Alarm
fm The Fault Member of the Alarm
fc The Fault Code of the Alarm
Returns:
The Alarm described by the triplet, and which is a parent alarm in 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.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 (  ) 

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties