cern::laser::guiplatform::alarms::AlarmNodeManagerImpl Class Reference

Inheritance diagram for cern::laser::guiplatform::alarms::AlarmNodeManagerImpl:
Inheritance graph
[legend]
Collaboration diagram for cern::laser::guiplatform::alarms::AlarmNodeManagerImpl:
Collaboration graph
[legend]

List of all members.

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())

Detailed Description

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);

Author:
pawlowsk

Constructor & Destructor Documentation

cern::laser::guiplatform::alarms::AlarmNodeManagerImpl::AlarmNodeManagerImpl ( String  listName,
Collection  list 
) [inline]

Creates a new instance of AlarmNodeManager

Parameters:
list this list should be used to initiazlie node manager
listName this should be one of: Constants.ACTIVE_LISTENER_KEY, Constants.INHIBIT_LISTENER_KEY,

Member Function Documentation

void cern::laser::guiplatform::alarms::AlarmNodeManagerImpl::addAlarm ( AlarmBean  alarm  )  [inline]

add an alarm to the children list

Parameters:
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

Parameters:
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.

Parameters:
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]
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]
void cern::laser::guiplatform::alarms::AlarmNodeManagerImpl::removeAlarm ( AlarmBean  alarm  )  [inline]

remove an alarm

Parameters:
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

Parameters:
al The alarm bean collection to be removed

Implements cern::laser::guiplatform::alarms::AlarmListener.

void cern::laser::guiplatform::alarms::AlarmNodeManagerImpl::removeAllAlarms (  )  [inline, virtual]

Member Data Documentation

Logger cern::laser::guiplatform::alarms::AlarmNodeManagerImpl::logger = LogFactory.getLogger(AlarmNodeManagerImpl.class.getName()) [static, private]

The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2