summaryrefslogtreecommitdiffstats
path: root/DataStructure/ResultScore.java
diff options
context:
space:
mode:
Diffstat (limited to 'DataStructure/ResultScore.java')
-rw-r--r--DataStructure/ResultScore.java54
1 files changed, 54 insertions, 0 deletions
diff --git a/DataStructure/ResultScore.java b/DataStructure/ResultScore.java
new file mode 100644
index 0000000..9d498ec
--- /dev/null
+++ b/DataStructure/ResultScore.java
@@ -0,0 +1,54 @@
+package DataStructure;
+
+import helper.ListGPS;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+
+public class ResultScore {
+ ArrayList<ScoreElement> scores = new ArrayList<ScoreElement>();
+ GSMMap map;
+
+ /**
+ * Gets score for every Coordinate
+ *
+ * @param list
+ */
+ public ResultScore(GSMMap map) {
+ this.map = map;
+
+ }
+
+ public ArrayList<ScoreElement> find(LinkedList<SingleBTS> MR,
+ double thresholdDBm) {
+ ArrayList<GPScoordinate> 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<SingleBTS> MR) {
+ // calculate ratios from MR first
+ // compare with ratios that occur in scores.gps
+
+ }
+}
+
+class ratio {
+ SingleBTS first;
+ SingleBTS second;
+}