cern::laser::console::CommentedAlarmMap Class Reference

Inheritance diagram for cern::laser::console::CommentedAlarmMap:
Inheritance graph
[legend]
Collaboration diagram for cern::laser::console::CommentedAlarmMap:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CommentedAlarmMap ()
CommentedAlarm put (CommentedAlarm alarm)
void putAll (CommentedAlarmMap alarms)
CommentedAlarm get (String alarmId)
CommentedAlarm remove (String alarmId)
boolean containsKey (String alarmId)
void clear ()
boolean isEmpty ()
Collection values ()
int size ()
String toString ()

Private Attributes

Map adaptee = null

Detailed Description

A generic commented alarm container. It defines a mapping between alarm identifiers and commented alarms.

Author:
F.Calderini
See also:
cern.laser.console.CommentedAlarm
cern.laser.console.Comment

Constructor & Destructor Documentation

cern::laser::console::CommentedAlarmMap::CommentedAlarmMap (  )  [inline]

Constructor.

References adaptee.


Member Function Documentation

void cern::laser::console::CommentedAlarmMap::clear (  )  [inline]
boolean cern::laser::console::CommentedAlarmMap::containsKey ( String  alarmId  )  [inline]

Tests if the specified alarm is a key in this hashtable.

Parameters:
alarmId the alarm to check.
Returns:
true if and only if the specified alarm is a key in this hashtable, false otherwise

References adaptee.

Referenced by cern::laser::guiplatform::alarms::AlarmContainer::initContainer(), cern::laser::guiplatform::alarms::AlarmContainer::onAlarm(), cern::laser::guiplatform::alarms::AlarmContainer::reloadContainer(), and cern::laser::guiplatform::alarms::AlarmContainer::updateAlarmOnActiveList().

CommentedAlarm cern::laser::console::CommentedAlarmMap::get ( String  alarmId  )  [inline]

Returns the commented alarm to which the specified alarm identifier is mapped in this hashtable.

Parameters:
alarmId the alarm identifier.
Returns:
the commented alarm to which the alarm identifier is mapped in this hashtable; null if the alarm identifier is not mapped to any commented alarm in this hashtable.

References adaptee.

Referenced by cern::laser::guiplatform::alarms::AlarmContainer::addAlarmToActiveList(), cern::laser::console::impl::ConfigurationImpl::buildCommentedAlarmMap(), cern::laser::guiplatform::alarms::AlarmContainer::initContainer(), cern::laser::guiplatform::alarms::AlarmContainer::reloadContainer(), cern::laser::test::TestSelectionAndConfiguration::TestSelectionAndConfiguration(), cern::laser::guiplatform::alarms::AlarmContainer::updateAlarmOnActiveList(), and cern::laser::guiplatform::alarms::AlarmContainer::updateAlarmOnInstantList().

boolean cern::laser::console::CommentedAlarmMap::isEmpty (  )  [inline]

Tests if this hashtable maps no alarms to comments.

Returns:
true if this hashtable maps no alarms to comments; false otherwise.

References adaptee.

CommentedAlarm cern::laser::console::CommentedAlarmMap::put ( CommentedAlarm  alarm  )  [inline]
void cern::laser::console::CommentedAlarmMap::putAll ( CommentedAlarmMap  alarms  )  [inline]
CommentedAlarm cern::laser::console::CommentedAlarmMap::remove ( String  alarmId  )  [inline]
int cern::laser::console::CommentedAlarmMap::size (  )  [inline]

Returns the number of commented alarms in this hashtable.

Returns:
the number of commented alarms in this hashtable.

References adaptee.

Referenced by cern::laser::console::impl::ConfigurationImpl::buildCommentedAlarmCollection(), and cern::laser::guiplatform::alarms::AlarmContainer::initContainer().

String cern::laser::console::CommentedAlarmMap::toString (  )  [inline]

Returns a string representation.

Returns:
a string representation.

References values().

Collection cern::laser::console::CommentedAlarmMap::values (  )  [inline]

Member Data Documentation


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

Generated by  doxygen 1.6.2