1 26 27 package org.objectweb.alarm.beans; 28 29 import java.io.Serializable ; 30 31 35 39 public class AlarmData implements Serializable { 40 41 44 private int num; 45 46 49 private int sev; 50 51 54 private String device; 55 56 59 private String message; 60 61 64 private int count; 65 66 69 private int state; 70 71 74 private java.sql.Date date; 75 76 83 public AlarmData(int n, int s, String dev, String m, java.sql.Date d) { 84 num = n; 85 sev = s; 86 device = dev; 87 message = m; 88 count = 1; 89 state = 1; 90 date = d; 91 } 92 93 96 public int getNum() { 97 return num; 98 } 99 100 103 public int getSev() { 104 return sev; 105 } 106 107 110 public String getDevice() { 111 return device; 112 } 113 114 117 public String getMessage() { 118 return message; 119 } 120 121 124 public int getCount() { 125 return count; 126 } 127 128 132 public void setCount(int c) { 133 count = c; 134 } 135 136 139 public int getState() { 140 return state; 141 } 142 143 147 public void setState(int s) { 148 state = s; 149 } 150 151 154 public java.util.Date getDate() { 155 return date; 156 } 157 } | Popular Tags |