

Public Member Functions | |
| AlarmNodeManagerImpl (String listName, Collection list) | |
| void | initChildrenMap (ACChildrenMap nodeMap) |
| void | addAlarm (AlarmBean alarm) |
| void | addAlarms (Collection als) |
| void | removeAlarm (AlarmBean alarm) |
| void | removeAlarm (String alarmId) |
| void | removeAlarms (Collection als) |
| void | removeAllAlarms () |
| void | initNodeManager (Collection activeAlarms) |
| void | initNodeManager (Collection activeAlarms, CommentedAlarmMap list) |
Private Member Functions | |
| void | customizeBean (AlarmBean alarmBean) |
Static Private Attributes | |
| static Logger | logger = LogFactory.getLogger(AlarmNodeManagerImpl.class.getName()) |
This is manager for all alarm explorers This manager is created by AlarmContainer.getAlarmManager(Constants.<which_list>); and internally by AlarmNodeManagerFactory.createNodeManager(Constants.<which_list>, CommnetedAlarmMap initlist);
Implementation is defferent for each node manager (different initNodeManager(..) method) for each list (inhibit, mask, etc);
| cern::laser::guiplatform::alarms::AlarmNodeManagerImpl::AlarmNodeManagerImpl | ( | String | listName, | |
| Collection | list | |||
| ) | [inline] |
Creates a new instance of AlarmNodeManager
| list | this list should be used to initiazlie node manager | |
| listName | this should be one of: Constants.ACTIVE_LISTENER_KEY, Constants.INHIBIT_LISTENER_KEY, |
| void cern::laser::guiplatform::alarms::AlarmNodeManagerImpl::addAlarm | ( | AlarmBean | alarm | ) | [inline] |
add an alarm to the children list
| al | The alarm bean to added |
Implements cern::laser::guiplatform::alarms::AlarmListener.
References cern::laser::guiplatform::explorer::ACChildrenMap::addNode(), cern::laser::guiplatform::alarms::AlarmNodeManager::getMap(), and logger.
Referenced by addAlarms().
| void cern::laser::guiplatform::alarms::AlarmNodeManagerImpl::addAlarms | ( | Collection | als | ) | [inline] |
add an alarm collection to the children list
| als | The alarm bean collection to added |
Implements cern::laser::guiplatform::alarms::AlarmListener.
References addAlarm(), cern::laser::guiplatform::alarms::AlarmNodeManager::getMap(), and logger.
| void cern::laser::guiplatform::alarms::AlarmNodeManagerImpl::customizeBean | ( | AlarmBean | alarmBean | ) | [inline, private] |
This method set suitable AlarmBean parameters, like isAlarmInhibited, depending on list on which this alarm is. In this case could be used Factory mehthod but this is good solution as well. Used for different AlarmNodeManager initialization.
| alarmBean | bean to be customized |
References cern::laser::guiplatform::alarms::AlarmNodeManager::listName, cern::laser::guiplatform::alarms::AlarmBean::setIsAlarmNodeHighlightedAndKlaxon(), cern::laser::guiplatform::alarms::AlarmBean::setIsAlarmNodeInhibited(), cern::laser::guiplatform::alarms::AlarmBean::setIsAlarmNodeMasked(), and cern::laser::guiplatform::alarms::AlarmBean::setIsOnHighlightedList().
| void cern::laser::guiplatform::alarms::AlarmNodeManagerImpl::initChildrenMap | ( | ACChildrenMap | nodeMap | ) | [inline] |
References cern::laser::guiplatform::explorer::ACChildrenMap::addNode(), cern::laser::guiplatform::alarms::AlarmBean::getAlarmId(), cern::laser::guiplatform::alarms::AlarmNodeManager::getMap(), cern::laser::guiplatform::alarms::AlarmNodeManager::initList, logger, and cern::laser::guiplatform::alarms::AlarmNodeManager::root.
| void cern::laser::guiplatform::alarms::AlarmNodeManagerImpl::initNodeManager | ( | Collection | activeAlarms, | |
| CommentedAlarmMap | list | |||
| ) | [inline, virtual] |
| void cern::laser::guiplatform::alarms::AlarmNodeManagerImpl::initNodeManager | ( | Collection | activeAlarms | ) | [inline, virtual] |
| void cern::laser::guiplatform::alarms::AlarmNodeManagerImpl::removeAlarm | ( | String | alarmId | ) | [inline] |
remove alarm using alarmId
Implements cern::laser::guiplatform::alarms::AlarmListener.
References cern::laser::guiplatform::alarms::AlarmNodeManager::getMap(), and cern::laser::guiplatform::explorer::ACChildrenMap::removeNode().
| void cern::laser::guiplatform::alarms::AlarmNodeManagerImpl::removeAlarm | ( | AlarmBean | alarm | ) | [inline] |
remove an alarm
| al | The alarm bean to be removed |
Implements cern::laser::guiplatform::alarms::AlarmListener.
References cern::laser::guiplatform::alarms::AlarmBean::getAlarmId().
| void cern::laser::guiplatform::alarms::AlarmNodeManagerImpl::removeAlarms | ( | Collection | als | ) | [inline] |
remove an alarm collection
| al | The alarm bean collection to be removed |
Implements cern::laser::guiplatform::alarms::AlarmListener.
| void cern::laser::guiplatform::alarms::AlarmNodeManagerImpl::removeAllAlarms | ( | ) | [inline, virtual] |
This method removes all alarms from this nodeNamager
Implements cern::laser::guiplatform::alarms::AlarmNodeManager.
References cern::laser::guiplatform::explorer::ACChildrenMap::clear(), and cern::laser::guiplatform::alarms::AlarmNodeManager::getMap().
Logger cern::laser::guiplatform::alarms::AlarmNodeManagerImpl::logger = LogFactory.getLogger(AlarmNodeManagerImpl.class.getName()) [static, private] |
logger
Reimplemented from cern::laser::guiplatform::alarms::AlarmNodeManager.
Referenced by addAlarm(), addAlarms(), and initChildrenMap().
1.6.2