Inherits java::io::Serializable.
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 () |
A generic commented alarm container. It defines a mapping between alarm identifiers and commented alarms.
cern.laser.console.CommentedAlarmMap.CommentedAlarmMap | ( | ) |
Constructor.
void cern.laser.console.CommentedAlarmMap.clear | ( | ) |
Clears this hashtable so that it contains no alarms.
boolean cern.laser.console.CommentedAlarmMap.containsKey | ( | String | alarmId | ) |
Tests if the specified alarm is a key in this hashtable.
alarmId | the alarm to check. |
CommentedAlarm cern.laser.console.CommentedAlarmMap.get | ( | String | alarmId | ) |
Returns the commented alarm to which the specified alarm identifier is mapped in this hashtable.
alarmId | the alarm identifier. |
boolean cern.laser.console.CommentedAlarmMap.isEmpty | ( | ) |
Tests if this hashtable maps no alarms to comments.
CommentedAlarm cern.laser.console.CommentedAlarmMap.put | ( | CommentedAlarm | alarm | ) |
Maps the specified commented alarm in this hashtable.
alarm | the commented alarm. |
References cern.laser.console.CommentedAlarm.getAlarm().
void cern.laser.console.CommentedAlarmMap.putAll | ( | CommentedAlarmMap | alarms | ) |
Copies all the mappings from the specified CommentedAlarmMap to this one.
alarms | the commented alarm map. |
References cern.laser.console.CommentedAlarm.getAlarm(), and cern.laser.console.CommentedAlarmMap.values().
CommentedAlarm cern.laser.console.CommentedAlarmMap.remove | ( | String | alarmId | ) |
Removes the commented alarm to which the specified alarm identifeir is mapped in this hashtable.
alarmId | the alarm to remove. |
int cern.laser.console.CommentedAlarmMap.size | ( | ) |
Returns the number of commented alarms in this hashtable.
String cern.laser.console.CommentedAlarmMap.toString | ( | ) |
Returns a string representation.
References cern.laser.console.CommentedAlarmMap.values().
Collection cern.laser.console.CommentedAlarmMap.values | ( | ) |
Returns a collection of the commented alarms in this hashtable.
Referenced by cern.laser.console.CommentedAlarmMap.putAll(), and cern.laser.console.CommentedAlarmMap.toString().