649650651652653654655656657658659
if (code == TErrorList.warn_disk_space || code == TErrorList.low_disk_space) { // mask off the high bits lstalm &= 0xff; } if (lstalm != code) continue; alm.clear(); } } } public void clearAlarm(int code,TAlarmWatchEntry awe) {
664665666667668669670671672673674
while (li.hasNext()) { alm = (TAlarm)li.next(); if ((alm.getDescriptor() & TAlarmDescriptor.TERMINATE) != 0) continue; if (alm.getCode() != code && alm.getWatchEntry() != awe) continue; alm.clear(); } } } /** * Removes the alarm with the given code from the local alarm server's list
687688689690691692693694695696697
{ alm = (TAlarm)li.next(); if ((alm.getDescriptor() & TAlarmDescriptor.TERMINATE) != 0) continue; if (alm.getCode() != code) continue; alm.setDescriptor((byte)TAlarmDescriptor.TERMINATE); alm.clear(); found = true; } if (!found) { if (TEquipmentModuleFactory.getDebugLevel() > 2)
679680681682683684685686687688689
694695696697698699700701702703704
717718719720721722723724725726727