Ignore:
Timestamp:
07/28/06 04:17:42 (18 years ago)
Author:
Nicholas Riley
Message:

Maximum alarm limit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hiptop/pester/net/sabi/pester/Alarms.java

    r284 r294  
    1313public class Alarms extends StdActiveList {
    1414    // max # records in a datastore
    15     private static final int MAX_ALARM_COUNT = 50;
     15    public static final int MAX_ALARM_COUNT = 50;
    1616
    1717    private static Alarms sAlarmList = null;
     
    6262    }
    6363
     64    public static boolean canCreateAlarm() {
     65        return (sAlarmList.size() < MAX_ALARM_COUNT);
     66    }
    6467    public static void addAlarm(Alarm alarm) {
    6568        sAlarmList.insertItemSorted(alarm, alarm);
Note: See TracChangeset for help on using the changeset viewer.