AlarmEventConstants.java 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. package com.hfln.device.common.constant;
  2. /**
  3. * 告警事件常量类
  4. * 对应Python版本的事件编号系统
  5. */
  6. public class AlarmEventConstants {
  7. /**
  8. * 设备级别的一般滞留告警 (对应Python版本event=4)
  9. */
  10. public static final int EVENT_DEVICE_RETENTION = 4;
  11. /**
  12. * 告警计划级别的厕所滞留告警 (对应Python版本event=5)
  13. */
  14. public static final int EVENT_TOILET_RETENTION = 5;
  15. /**
  16. * 跌倒事件告警
  17. */
  18. public static final int EVENT_FALL = 1;
  19. /**
  20. * 离开事件告警
  21. */
  22. public static final int EVENT_LEAVE = 2;
  23. /**
  24. * 进入事件告警
  25. */
  26. public static final int EVENT_ENTER = 3;
  27. // 告警类型描述
  28. /**
  29. * 设备级别的一般滞留告警描述 (对应Python版本desc="alarm_retention")
  30. */
  31. public static final String DESC_DEVICE_RETENTION = "alarm_retention";
  32. /**
  33. * 告警计划级别的厕所滞留告警描述 (对应Python版本desc="alarm_toilet_retention")
  34. */
  35. public static final String DESC_TOILET_RETENTION = "alarm_toilet_retention";
  36. /**
  37. * 跌倒事件告警描述
  38. */
  39. public static final String DESC_FALL = "alarm_fall";
  40. /**
  41. * 离开事件告警描述
  42. */
  43. public static final String DESC_LEAVE = "alarm_leave";
  44. /**
  45. * 进入事件告警描述
  46. */
  47. public static final String DESC_ENTER = "alarm_enter";
  48. // 告警表名
  49. /**
  50. * 告警事件表名
  51. */
  52. public static final String TABLE_ALARM_EVENT = "alarm_event";
  53. /**
  54. * 停留时间表名
  55. */
  56. public static final String TABLE_STAY_TIME = "stay_time";
  57. }