

Public Member Functions | |
| List< ReductionRule > | getNodeReductionRules () |
| List< ReductionRule > | getMultiReductionRules () |
| void | loadFromCDB () |
| 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 () |
Private Member Functions | |
| ReductionManager (AlarmDAO alarmDAO) | |
| boolean | deleteReductionRule (List< ReductionRule > rrL, ReductionRule rr, Alarm p, Alarm c) |
| void | addReductionRule (List< ReductionRule > rrL, ReductionRule rr, Alarm p, Alarm c, boolean isNodeReductionRule) throws IllegalOperationException, NullPointerException |
Private Attributes | |
| List< ReductionRule > | _nodeReductionRules |
| List< ReductionRule > | _multiReductionRules |
| HashMap< String, ObjectState > | _objState |
| HashMap< String, ObjectState > | _thrState |
| AlarmDAO | _alarmDAO |
Static Private Attributes | |
| static ReductionManager | _instance |
| cl::utfsm::acs::acg::core::ReductionManager::ReductionManager | ( | AlarmDAO | alarmDAO | ) | [inline, private] |
References _alarmDAO, _multiReductionRules, _nodeReductionRules, _objState, and _thrState.
Referenced by getInstance().
| void cl::utfsm::acs::acg::core::ReductionManager::addMultiReductionRule | ( | Alarm | p, | |
| Alarm | c | |||
| ) | throws IllegalOperationException, NullPointerException [inline] |
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 _multiReductionRules, _thrState, addReductionRule(), cl::utfsm::acs::acg::core::ObjectState::create(), getMRParentByTriplet(), cl::utfsm::acs::acg::core::ReductionRule::setIsNodeReduction(), cl::utfsm::acs::acg::core::ReductionRule::setThreshold(), and cl::utfsm::acs::acg::core::ObjectState::update().
Referenced by cl::utfsm::acs::acg::gui::ReductionsView::createMRParentWidgets(), and cl::utfsm::acs::acg::gui::ReductionsView::createViewWidgets().
| void cl::utfsm::acs::acg::core::ReductionManager::addNodeReductionRule | ( | Alarm | p, | |
| Alarm | c | |||
| ) | throws IllegalOperationException, NullPointerException [inline] |
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 _nodeReductionRules, addReductionRule(), getNRParentByTriplet(), and cl::utfsm::acs::acg::core::ReductionRule::setIsNodeReduction().
Referenced by cl::utfsm::acs::acg::gui::ReductionsView::createNRParentWidgets(), cl::utfsm::acs::acg::gui::ReductionsView::createViewWidgets(), and cl::utfsm::acs::acg::core::ReductionManagerTest::testSaveToCDB().
| void cl::utfsm::acs::acg::core::ReductionManager::addReductionRule | ( | List< ReductionRule > | rrL, | |
| ReductionRule | rr, | |||
| Alarm | p, | |||
| Alarm | c, | |||
| boolean | isNodeReductionRule | |||
| ) | throws IllegalOperationException, NullPointerException [inline, private] |
Adds a Reduction Rule
| rrL | List of Reduction Rules where the rule will be added (if it is null). | |
| rr | Reduction Rule to add to (if not null). | |
| p | Parent of the Rule to be added | |
| c | Child of the Rule to be added |
References _objState, cl::utfsm::acs::acg::core::ObjectState::create(), and cl::utfsm::acs::acg::core::ObjectState::update().
Referenced by addMultiReductionRule(), and addNodeReductionRule().
| boolean cl::utfsm::acs::acg::core::ReductionManager::deleteMultiReductionRule | ( | Alarm | p, | |
| Alarm | c | |||
| ) | throws IllegalOperationException [inline] |
Deletes a Node Reduction Rule
| p | Parent of the Rule to be deleted | |
| c | Child of the Rule to be deleted |
References _multiReductionRules, deleteReductionRule(), and getMRParentByTriplet().
Referenced by cl::utfsm::acs::acg::gui::ReductionsView::createMRParentWidgets(), and cl::utfsm::acs::acg::gui::ReductionsView::createViewWidgets().
| boolean cl::utfsm::acs::acg::core::ReductionManager::deleteNodeReductionRule | ( | Alarm | p, | |
| Alarm | c | |||
| ) | throws IllegalOperationException [inline] |
Deletes a Node Reduction Rule
| p | Parent of the Rule to be deleted | |
| c | Child of the Rule to be deleted |
References _nodeReductionRules, deleteReductionRule(), and getNRParentByTriplet().
Referenced by cl::utfsm::acs::acg::gui::ReductionsView::createNRParentWidgets(), and cl::utfsm::acs::acg::gui::ReductionsView::createViewWidgets().
| boolean cl::utfsm::acs::acg::core::ReductionManager::deleteReductionRule | ( | List< ReductionRule > | rrL, | |
| ReductionRule | rr, | |||
| Alarm | p, | |||
| Alarm | c | |||
| ) | [inline, private] |
Deletes a Reduction Rule
| rrL | List of Reduction Rules to remove from. | |
| rr | Reduction Rule to remove from. | |
| p | Parent of the Rule to be deleted | |
| c | Child of the Rule to be deleted |
References _objState, _thrState, cl::utfsm::acs::acg::core::ObjectState::delete(), cern::laser::business::data::Alarm::getAlarmId(), cl::utfsm::acs::acg::core::ReductionRule::getChildrenCount(), cl::utfsm::acs::acg::core::ReductionRule::getIsNodeReduction(), cl::utfsm::acs::acg::core::ReductionRule::getParent(), and cl::utfsm::acs::acg::core::ReductionRule::removeChild().
Referenced by deleteMultiReductionRule(), and deleteNodeReductionRule().
| static void cl::utfsm::acs::acg::core::ReductionManager::destroy | ( | ) | [inline, 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
References _instance.
| static ReductionManager cl::utfsm::acs::acg::core::ReductionManager::getInstance | ( | AlarmDAO | alarmDAO | ) | [inline, static] |
| ReductionRule cl::utfsm::acs::acg::core::ReductionManager::getMRParentByTriplet | ( | String | ff, | |
| String | fm, | |||
| int | fc | |||
| ) | [inline] |
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 _multiReductionRules, 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 addMultiReductionRule(), cl::utfsm::acs::acg::gui::ReductionsView::createMRParentWidgets(), cl::utfsm::acs::acg::gui::ReductionsView::createViewWidgets(), deleteMultiReductionRule(), cl::utfsm::acs::acg::gui::ReductionsView::fillMRParentChAlarmList(), cl::utfsm::acs::acg::gui::ReductionsView::fillMRParentWidgets(), saveToCDB(), and updateMultiThreshold().
| List<ReductionRule> cl::utfsm::acs::acg::core::ReductionManager::getMultiReductionRules | ( | ) | [inline] |
| List<ReductionRule> cl::utfsm::acs::acg::core::ReductionManager::getNodeReductionRules | ( | ) | [inline] |
References _nodeReductionRules.
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::gui::ReductionsView::refreshContents(), and cl::utfsm::acs::acg::core::ReductionManagerTest::testGetNodeReductionRules().
| ReductionRule cl::utfsm::acs::acg::core::ReductionManager::getNRParentByTriplet | ( | String | ff, | |
| String | fm, | |||
| int | fc | |||
| ) | [inline] |
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 _nodeReductionRules, 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 addNodeReductionRule(), cl::utfsm::acs::acg::gui::ReductionsView::createNRParentWidgets(), cl::utfsm::acs::acg::gui::ReductionsView::createViewWidgets(), deleteNodeReductionRule(), cl::utfsm::acs::acg::gui::ReductionsView::fillNRParentChAlarmList(), and cl::utfsm::acs::acg::gui::ReductionsView::fillNRParentWidgets().
| void cl::utfsm::acs::acg::core::ReductionManager::loadFromCDB | ( | ) | [inline] |
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 _alarmDAO, _multiReductionRules, _nodeReductionRules, _objState, _thrState, 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(), cl::utfsm::acs::acg::core::ReductionManagerTest::testGetMultiReductionRules(), cl::utfsm::acs::acg::core::ReductionManagerTest::testGetNodeReductionRules(), cl::utfsm::acs::acg::core::ReductionManagerTest::testReloadFromCDB(), and cl::utfsm::acs::acg::core::ReductionManagerTest::testSaveToCDB().
| void cl::utfsm::acs::acg::core::ReductionManager::saveToCDB | ( | ) | [inline] |
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 _alarmDAO, _multiReductionRules, _nodeReductionRules, _objState, _thrState, cl::utfsm::acs::acg::core::ObjectState::getAction(), getMRParentByTriplet(), and cl::utfsm::acs::acg::core::ReductionRule::getThreshold().
Referenced by cl::utfsm::acs::acg::core::AlarmSystemManager::saveToCDB(), and cl::utfsm::acs::acg::core::ReductionManagerTest::testSaveToCDB().
| void cl::utfsm::acs::acg::core::ReductionManager::updateMultiThreshold | ( | Alarm | p, | |
| int | v | |||
| ) | throws IllegalOperationException, NullPointerException [inline] |
References _thrState, getMRParentByTriplet(), cl::utfsm::acs::acg::core::ReductionRule::setThreshold(), and cl::utfsm::acs::acg::core::ObjectState::update().
Referenced by cl::utfsm::acs::acg::gui::ReductionsView::createMRParentWidgets(), and cl::utfsm::acs::acg::gui::ReductionsView::createViewWidgets().
Referenced by loadFromCDB(), ReductionManager(), and saveToCDB().
ReductionManager cl::utfsm::acs::acg::core::ReductionManager::_instance [static, private] |
The singleton instance shared across the project
Referenced by destroy(), and getInstance().
HashMap<String, ObjectState> cl::utfsm::acs::acg::core::ReductionManager::_objState [private] |
Referenced by addReductionRule(), deleteReductionRule(), loadFromCDB(), ReductionManager(), and saveToCDB().
HashMap<String, ObjectState> cl::utfsm::acs::acg::core::ReductionManager::_thrState [private] |
Referenced by addMultiReductionRule(), deleteReductionRule(), loadFromCDB(), ReductionManager(), saveToCDB(), and updateMultiThreshold().
1.6.2