-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSensorPackage.java
More file actions
47 lines (34 loc) · 996 Bytes
/
Copy pathSensorPackage.java
File metadata and controls
47 lines (34 loc) · 996 Bytes
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
package Backend;
import java.io.Serializable;
//Class used to send the information about 1 sensor to its corresponding areaserver
public class SensorPackage implements Serializable {
private static final long serialVersionUID = -5399605122490343339L;
private String streetName;
private int spot;
private boolean available;
public SensorPackage(){
}
public SensorPackage(String name, int spot, boolean available) {
this.streetName=name;
this.spot=spot;
this.available=available;
}
public String getStreetName() {
return streetName;
}
public void setStreetName(String streetName) {
this.streetName = streetName;
}
public int getSpot() {
return spot;
}
public void setSpot(int spot) {
this.spot = spot;
}
public boolean isAvailable() {
return available;
}
public void setAvailable(boolean available) {
this.available = available;
}
}