View Javadoc

1   package org.lsst.ccs.config;
2   
3   import javax.persistence.MappedSuperclass;
4   import java.io.Serializable;
5   
6   /**
7    * Registers the date of a value change in engineering mode.
8    * @author bamade
9    */
10  // Date: 21/05/12
11  
12      @MappedSuperclass
13  public abstract class ValueEvent implements Serializable {
14      private long time ;
15      private String value ;
16  
17      protected ValueEvent() {
18  
19      }
20  
21      protected ValueEvent( long time, String value) {
22          this.time = time;
23          this.value = value;
24      }
25  
26      public abstract long getId() ;
27  
28      public long getTime() {
29          return time;
30      }
31  
32       void setTime(long time) {
33          this.time = time;
34      }
35  
36      public String getValue() {
37          return value;
38      }
39  
40       void setValue(String value) {
41          this.value = value;
42      }
43  }