/**
*
*/
package kr.ac.kaist.resl.lilliput.model;
import java.sql.Date;
/**
* @author Jaewook Byun, Ph.D Student, Department of Computer Science, KAIST
* @email bjw0829@kaist.ac.kr
*/
public class Period {
private long from;
private long to;
// only for indoor location
private double longitude;
private double latitude;
public Period()
{
}
/**
* @return the longitude
*/
public double getLongitude() {
return longitude;
}
/**
* @param longitude the longitude to set
*/
public void setLongitude(double longitude) {
this.longitude = longitude;
}
/**
* @return the latitude
*/
public double getLatitude() {
return latitude;
}
/**
* @param latitude the latitude to set
*/
public void setLatitude(double latitude) {
this.latitude = latitude;
}
public Period(long from, long to)
{
this.from = from;
this.to = to;
}
@SuppressWarnings("deprecation")
@Override
public String toString()
{
Date fDate = new Date(from*1000);
Date tDate = new Date(to*1000);
String ret = fDate.toGMTString() + " ~ " + tDate.toGMTString();
return ret;
}
/**
* @return the from
*/
public long getFrom() {
return from;
}
/**
* @param from the from to set
*/
public void setFrom(long from) {
this.from = from;
}
/**
* @return the to
*/
public long getTo() {
return to;
}
/**
* @param to the to to set
*/
public void setTo(long to) {
this.to = to;
}
}