source: osm/applications/editors/josm/plugins/NanoLog/src/nanolog/NanoLogEntry.java@ 30701

Last change on this file since 30701 was 30701, checked in by donvip, 11 years ago

[josm_plugins] fix various compilation warnings

File size: 1.4 KB
Line 
1package nanolog;
2
3import java.util.Date;
4
5import org.openstreetmap.josm.data.coor.LatLon;
6
7/**
8 * This holds one NanoLog entry.
9 *
10 * @author zverik
11 */
12public class NanoLogEntry implements Comparable<NanoLogEntry> {
13 private LatLon pos;
14 private Date time;
15 private String message;
16 private Integer direction;
17 private Integer baseDir;
18 private LatLon basePos;
19
20 public NanoLogEntry( Date time, String message, LatLon basePos, Integer baseDir ) {
21 this.basePos = basePos;
22 this.baseDir = baseDir;
23 this.pos = basePos;
24 this.direction = baseDir;
25 this.time = time;
26 this.message = message;
27 this.direction = direction;
28 }
29
30 public NanoLogEntry( Date time, String message ) {
31 this(time, message, null, null);
32 }
33
34 public Integer getDirection() {
35 return direction;
36 }
37
38 public String getMessage() {
39 return message;
40 }
41
42 public LatLon getPos() {
43 return pos;
44 }
45
46 public void setPos( LatLon pos ) {
47 this.pos = pos;
48 }
49
50 public void setDirection( Integer direction ) {
51 this.direction = direction;
52 }
53
54 public LatLon getBasePos() {
55 return basePos;
56 }
57
58 public Integer getBaseDir() {
59 return baseDir;
60 }
61
62 public Date getTime() {
63 return time;
64 }
65
66 @Override
67 public int compareTo( NanoLogEntry t ) {
68 return time.compareTo(t.time);
69 }
70}
Note: See TracBrowser for help on using the repository browser.