import java.util.*;

public class SensorData {
   private String network;
   private String station;
   private String channel;
   private String location;
   private double time;
   private double calibration;
   private char type;
   private double sampleRate;
   private double rawValue;
   private double cookedValue;

   public SensorData() {}

   public void setNetwork(String _network) {this.network = _network;}
   public void setStation(String _station) {this.station = _station;}
   public void setChannel(String _channel) {this.channel = _channel;}
   public void setLocation(String _location) {this.location = _location;}
   public void setTime(double _time) {this.time = _time;}
   public void setCalibration(double _calib) {this.calibration = _calib;}
   public void setType(char _type) {this.type = _type;}
   public void setSampleRate(double _samplerate) {this.sampleRate = _samplerate;}
   public void setRawValue(double _value) {this.rawValue = _value;}
   public void setCookedValue(double _product) {this.cookedValue = _product;}

   public String getNetwork() {return this.network;}
   public String getStation() {return this.station;}
   public String getChannel() {return this.channel;}
   public String getLocation() {return this.location;}
   public double getTime() {return this.time;}
   public double getCalibration() {return this.calibration;}
   public char getType() {return this.type;}
   public double getSampleRate() {return this.sampleRate;}
   public double getRawValue() {return this.rawValue;}
   public double getCookedValue() {return this.cookedValue;}

   public Date getDate() {
      return new Date((long)(this.time*1000.0));
   }
}
