*
* @param code Is the alarm code specifying which alarm to clear
*/
public void clearAlarm(int code)
{
TAlarm alm = null;
synchronized (devAlarmList)
{
int lstalm = 0;
Iterator<TAlarm> li = devAlarmList.iterator();
while (li.hasNext())
{
alm = (TAlarm)li.next();
if ((alm.getDescriptor() & TAlarmDescriptor.TERMINATE) != 0) continue;
lstalm = alm.getCode();
if (code == TErrorList.warn_disk_space || code == TErrorList.low_disk_space)
{ // mask off the high bits
lstalm &= 0xff;
}
if (lstalm != code) continue;
alm.clear();
}
}
}