package DataStructure; import helper.ListGPS; import java.util.ArrayList; import java.util.LinkedList; public class ResultScore { ArrayList scores = new ArrayList(); GSMMap map; /** * Gets score for every Coordinate * * @param list */ public ResultScore(GSMMap map) { this.map = map; } public ArrayList find(LinkedList MR, double thresholdDBm) { ArrayList places = map.find(MR, thresholdDBm); GPScoordinate[] content = ListGPS.content(places); for (GPScoordinate curr_content : content) { // take every Coordinate once. Build a ScoreElement with it.Traverse // the whole list ScoreElement curr_score = new ScoreElement(curr_content); for (GPScoordinate curr_place : places) { curr_score.add(curr_place); } scores.add(curr_score); // traverse every coordinate from gsm.find. check every tile if all // mesurements match. if not, score gets low // then, check BTS relations! } return scores; } private void checkRatio(LinkedList MR) { // calculate ratios from MR first // compare with ratios that occur in scores.gps } } class ratio { SingleBTS first; SingleBTS second; }