84 lines
1.4 KiB
Java
84 lines
1.4 KiB
Java
package org.gcube.application.framework.core.commons.model;
|
|
|
|
import org.gcube.portlets.session.client.Point;
|
|
import org.gcube.portlets.session.client.TimeBound;
|
|
|
|
/**
|
|
* @author Valia Tsagkalidou (NKUA)
|
|
*
|
|
*/
|
|
//TODO: Done!!!
|
|
public class GeospatialInfo {
|
|
|
|
String relation;
|
|
|
|
Point[] bounds;
|
|
|
|
TimeBound timeInterval;
|
|
|
|
/**
|
|
* Geospatial info constructor
|
|
*
|
|
*/
|
|
public GeospatialInfo() {
|
|
this.relation = null;
|
|
this.bounds = null;
|
|
this.timeInterval = null;
|
|
}
|
|
|
|
/**
|
|
* @param relation
|
|
* @param bounds
|
|
* @param timeInterval
|
|
*/
|
|
public GeospatialInfo(String relation, Point[] bounds,
|
|
TimeBound timeInterval) {
|
|
this.relation = relation;
|
|
this.bounds = bounds;
|
|
this.timeInterval = timeInterval;
|
|
}
|
|
|
|
/**
|
|
* @return bounds
|
|
*/
|
|
public Point[] getBounds() {
|
|
return bounds;
|
|
}
|
|
|
|
/**
|
|
* @return relation
|
|
*/
|
|
public String getRelation() {
|
|
return relation;
|
|
}
|
|
|
|
/**
|
|
* @return timeInterval
|
|
*/
|
|
public TimeBound getTimeInterval() {
|
|
return timeInterval;
|
|
}
|
|
|
|
/**
|
|
* @param bounds
|
|
*/
|
|
public void setBounds(Point[] bounds) {
|
|
this.bounds = bounds;
|
|
}
|
|
|
|
/**
|
|
* @param relation
|
|
*/
|
|
public void setRelation(String relation) {
|
|
this.relation = relation;
|
|
}
|
|
|
|
/**
|
|
* @param timeInterval
|
|
*/
|
|
public void setTimeInterval(TimeBound timeInterval) {
|
|
this.timeInterval = timeInterval;
|
|
}
|
|
|
|
}
|