-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDelivery.java
More file actions
76 lines (59 loc) · 1.57 KB
/
Delivery.java
File metadata and controls
76 lines (59 loc) · 1.57 KB
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
package uk.ac.ed.inf;
import java.util.ArrayList;
/**
* Class used to provide the information a drone needs to complete an order
*/
public class Delivery {
private final String orderNo;
private Double distance;
private final ArrayList<LongLat> locations;
private LongLat start;
private int angle;
private int cost;
public String w3w;
/**
*Delivery class constructor
* @param orderNo :hexidecimal unqiue order number for an order
* @param locations :Long Lat locations that represent where the drone must move
* @param start :The starting longLat location
*/
public Delivery(String orderNo, ArrayList<LongLat> locations, LongLat start) {
this.orderNo = orderNo;
this.locations = locations;
this.start = start;
}
public int getAngle() {
return angle;
}
public void setAngle(int angle) {
this.angle = angle;
}
public ArrayList<LongLat> getLocations() {
return locations;
}
public Double getDistance() {
return distance;
}
public void setDistance(Double distance) {
this.distance = distance;
}
public String getOrderNo() {
return orderNo;
}
public int getCost() {
return cost;
}
public void setCost(int cost) {
this.cost = cost;
}
public String getW3w() {return w3w;}
public void setW3w(String w3w) {
this.w3w = w3w;
}
public LongLat getStart() {
return start;
}
public void setStart(LongLat start) {
this.start = start;
}
}