8f152e9b0e4c59d66af27ee80c7bea09a6c6c881
[IRC.git] / Robust / src / Benchmarks / SSJava / EyeTracking / Deviation.java
1 import Analysis.SSJava.Location;
2
3 /*
4  * Copyright 2009 (c) Florian Frankenberger (darkblue.de)
5  * 
6  * This file is part of LEA.
7  * 
8  * LEA is free software: you can redistribute it and/or modify it under the
9  * terms of the GNU Lesser General Public License as published by the Free
10  * Software Foundation, either version 3 of the License, or (at your option) any
11  * later version.
12  * 
13  * LEA is distributed in the hope that it will be useful, but WITHOUT ANY
14  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
15  * A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  * 
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with LEA. If not, see <http://www.gnu.org/licenses/>.
20  */
21
22 /**
23  * Representing an eyes deviation
24  * 
25  * @author Florian Frankenberger
26  */
27 public class Deviation {
28
29   int directionX, directionY;
30   String direction;
31   
32
33   public Deviation(String direction, int directionX, int directionY) {
34     this.directionX = directionX;
35     this.directionY = directionY;
36     this.direction = direction;
37   }
38
39   public boolean equals(Object o) {
40     if (!(o instanceof Deviation)) {
41       return false;
42     }
43
44     Deviation dev = (Deviation) o;
45     if (dev.directionX == directionX && dev.directionY == directionY) {
46       return true;
47     }
48
49     return false;
50   }
51
52 }