1 package cz.cuni.amis.pogamut.usar2004.communication.messages.datatypes;
2
3
4
5
6
7
8
9 public abstract class GeographicCoordinates
10 {
11 int degree = 0;
12 double minute = 0;
13 char cardinal = 0;
14
15 public GeographicCoordinates(int degree, double minute, char cardinal)
16 {
17 this.degree = degree;
18 this.minute = minute;
19 this.cardinal = cardinal;
20 }
21
22 public GeographicCoordinates()
23 {
24 }
25
26 public void set(GeographicCoordinates item)
27 {
28 this.cardinal = item.cardinal;
29 this.degree = item.degree;
30 this.minute = item.minute;
31 }
32
33 public void set(int degree, double minute, char cardinal)
34 {
35 this.cardinal = cardinal;
36 this.degree = degree;
37 this.minute = minute;
38 }
39
40 public char getCardinal()
41 {
42 return cardinal;
43 }
44
45 public int getDegree()
46 {
47 return degree;
48 }
49
50 public double getMinute()
51 {
52 return minute;
53 }
54 }