package it.unipr.dsg.mobdev.logger.storage;

/**
 * 
 * Simple Log Descriptor class 
 * 
 * @author Marco Picone
 *
 */
public class LogDescriptor {

	private int id = 0;
	private long timestamp = 0;
	private double latitude = 0.0;
	private double longitude = 0.0;
	private String type = null;
	private String data = null;
	
	public LogDescriptor() {
	}
	
	public LogDescriptor(long timestamp, double latitude, double longitude,
			String type, String data) {
		super();
		this.timestamp = timestamp;
		this.latitude = latitude;
		this.longitude = longitude;
		this.type = type;
		this.data = data;
	}

	public long getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}

	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	public double getLongitude() {
		return longitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}
	
	
	public int getId() {
		return id;
	}


	public void setId(int id) {
		this.id = id;
	}

	@Override
	public String toString() {
		return "Timestamp: "+timestamp+" Lat: "+ latitude+" Lon:"+longitude+" Type:"+type+" Data:"+data;
	}
	
	
}
