package gr.iti.mklab.tools;

import gr.iti.mklab.data.ImageMetadata;

import java.util.List;
import java.util.Map;

public class AbstractOrganizer {

	protected Map<String, ImageMetadata> mapOfImageIDs;
	protected Map<String,List<String>> mapOfCells;

	protected void updateMapOfImageIDs(String input){

		String[] imageInfo = input.split("\t");

		ImageMetadata image = new ImageMetadata(imageInfo[0],imageInfo[2],imageInfo[4]+","+imageInfo[3].replace("\\+",","));
		
		image.setCoord(Double.parseDouble(imageInfo[6]), Double.parseDouble(imageInfo[7]));
		
		mapOfImageIDs.put(imageInfo[0],image);
	}

	public Map<String, List<String>> getMapOfCells () {
		return mapOfCells;
	}

	public Map<String, ImageMetadata> getMapOfImageIDs () {
		return mapOfImageIDs;
	}

}

@@ -109,16 +109,103 @@
 l.Map;%0A%0A
+/**%0A * Abstract class for organization of the images in cells%0A * @author gkordo%0A *%0A */%0A
 public c

Add comments on the AbstractOrganizer.java