/
BluewaterProblem.java
126 lines (96 loc) · 2.17 KB
/
BluewaterProblem.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
package ibm.labs.kc.event.model;
import com.google.gson.annotations.SerializedName;
public class BluewaterProblem {
protected String issue;
protected double weatherC;
protected String containerId;
protected String status;
@SerializedName("tempC")
protected double temperature;
protected double amp;
protected String shipId;
protected String latitude;
protected String longitude;
protected String tag;
protected String severity;
@SerializedName("ts")
protected String timeStamp;
public BluewaterProblem() {
}
public String toString() {
return "Shipid:" + getShipId() + " " + getContainerId() + " " + getStatus() + " " + getIssue()
+ " " + getSeverity() + " lat:" + getLatitude() + " long:" + getLongitude() + " " + getTimeStamp();
}
public String getIssue() {
return issue;
}
public void setIssue(String issue) {
this.issue = issue;
}
public double getWeatherC() {
return weatherC;
}
public void setWeatherC(double weatherC) {
this.weatherC = weatherC;
}
public String getContainerId() {
return containerId;
}
public void setContainerId(String containerId) {
this.containerId = containerId;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public double getTemperature() {
return temperature;
}
public void setTemperature(double temperature) {
this.temperature = temperature;
}
public double getAmp() {
return amp;
}
public void setAmp(double amp) {
this.amp = amp;
}
public String getShipId() {
return shipId;
}
public void setShipId(String shipId) {
this.shipId = shipId;
}
public String getLatitude() {
return latitude;
}
public void setLatitude(String latitude) {
this.latitude = latitude;
}
public String getLongitude() {
return longitude;
}
public void setLongitude(String longitude) {
this.longitude = longitude;
}
public String getTag() {
return tag;
}
public void setTag(String tag) {
this.tag = tag;
}
public String getSeverity() {
return severity;
}
public void setSeverity(String severity) {
this.severity = severity;
}
public String getTimeStamp() {
return timeStamp;
}
public void setTimeStamp(String timeStamp) {
this.timeStamp = timeStamp;
}
}