summaryrefslogtreecommitdiffstats
path: root/DataStructure/ScoreElement.java
blob: c5ed85aa18c97e4c46760a00d12bcb2d08a2ef80 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package DataStructure;

class ScoreElement {
	public int occurrence; // how often was this coordinate chosen based on
							// Signalstrength
	public int ratio_hit; // how often was this coordinate chosen based on
							// SignalRatio
	public GPScoordinate gps;
	private double score;

	public ScoreElement(GPScoordinate reference) {
		gps = reference;
	}

	public void add(GPScoordinate gps) {
		if (this.gps.equals(gps)) {
			score++;
		}

	}
}