package gr.iti.mklab.data;

public class ImageMetadata{

	private int area_id;
	private double[] coord;
	private String image_id, user_id, tags;

	public ImageMetadata (String id, String user_id, String tags) {
		this.image_id = id;
		this.user_id = user_id;
		this.tags = tags;
	}

	public String getId () {
		return image_id;
	}

	public String getUserId () {
		return user_id;
	}

	public String getTags () {
		return tags;
	}

	public void setCoord (double lat, double lng){
		coord = new double [2]; 
		coord[0] = lat;
		coord[1] = lng;
	}

	public double [] getCoord () {
		return coord;
	}

	public void setArea (int area_id){
		this.area_id = area_id;
	}

	public int getArea () {
		return area_id;
	}

}
package gr.iti.mklab.data;

/**
 * The class that contains the metadata of an image.
 * @author gkordo
 * 
 */
public class ImageMetadata{

	private int area_id;
	private double[] coord;
	private String image_id, user_id, tags;

	
	/**
	 * Constructor using the metadata provided by the dataset file
	 * @param id
	 * @param user_id
	 * @param tags
	 */
	public ImageMetadata (String id, String user_id, String tags) {
		this.image_id = id;
		this.user_id = user_id;
		this.tags = tags;
	}

	public String getId () {
		return image_id;
	}

	public String getUserId () {
		return user_id;
	}

	public String getTags () {
		return tags;
	}

	public void setCoord (double lat, double lng){
		coord = new double [2]; 
		coord[0] = lat;
		coord[1] = lng;
	}

	public double [] getCoord () {
		return coord;
	}

	public void setArea (int area_id){
		this.area_id = area_id;
	}

	public int getArea () {
		return area_id;
	}

}
Add comments to ImageMetadata.java