View Javadoc

1   /*
2    * To change this template, choose Tools | Templates
3    * and open the template in the editor.
4    */
5   package org.lsst.ccs.localdb.statusdb.server;
6   
7   import org.lsst.ccs.localdb.statusdb.model.DataMetaData;
8   import javax.xml.bind.annotation.XmlAttribute;
9   
10  /**
11   *
12   * @author turri
13   */
14  public class ChannelMetaData {
15      
16      @XmlAttribute
17      private long tstart, tstop = -1;
18      @XmlAttribute
19      private String name, value;
20      
21      public ChannelMetaData(DataMetaData d) {
22          this.name = d.getName();
23          this.value = d.getValue();
24          this.tstart = d.getTstart();
25          this.tstop = d.getTstop();
26      }
27  
28      public ChannelMetaData(){};
29  
30      public ChannelMetaData(String name, String value, long tstart, long tstop) {
31          this.name = name;
32          this.value = value;
33          this.tstart = tstart;
34          this.tstop = tstop;
35      }
36  }