-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathParcel.java
147 lines (136 loc) · 3.95 KB
/
Parcel.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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
public class Parcel
{
private String destination;
private String estimatdDeliveryDate;
private Boolean confirmation;
private Double aproxweight;
private String catagory;
private int quantity;
private String hub;
private int protectiveLayer;
private Sender sender;
private Reciver reciver;
private boolean picked;
private String track;
public Parcel(String destination,String estimatdDeliveryDate,Boolean confirmation,Double aproxweight,String catagory,int quantity,String hub,int protectiveLayer,Sender sender, Reciver reciver)
{
this.destination=destination;
this.estimatdDeliveryDate=estimatdDeliveryDate;
this.confirmation=confirmation;
this.aproxweight=aproxweight;
this.catagory = catagory;
this.quantity=quantity;
this.hub=hub;
this.protectiveLayer=protectiveLayer;
this.sender = sender;
this.reciver = reciver;
this.track = "Processing...";
}
public void setPicked(boolean picked)
{
this.picked = picked;
}
public boolean getPicked()
{
return picked;
}
public void setTrack(String track)
{
this.track = track;
}
public String getTrack()
{
return track;
}
public void setDestination(String destination)
{
this.destination=destination;
}
public String getDestination()
{
return destination;
}
public void setEstimatdDeliveryDate(String estimatdDeliveryDate)
{
this.estimatdDeliveryDate=estimatdDeliveryDate;
}
public String getEstimatdDeliveryDate()
{
return estimatdDeliveryDate;
}
public void setConfirmation(Boolean confirmation)
{
this.confirmation=confirmation;
}
public Boolean getConfirmation()
{
return confirmation;
}
public void setAproxweight(Double aproxweight)
{
this.aproxweight=aproxweight;
}
public Double getAproxweight()
{
return aproxweight;
}
public void setCatagory(String catagory)
{
this.catagory = catagory;
}
public String getCatagory()
{
return catagory;
}
public void setQuantity(int quantity)
{ this.quantity=quantity;
}
public int getQuantity()
{
return quantity;
}
public void setHub(String hub)
{
this.hub=hub;
}
public String getHub()
{
return hub;
}
public void setProtectiveLayer(int protectiveLayer)
{
this.protectiveLayer=protectiveLayer;
}
public int getProtectiveLayer()
{
return protectiveLayer;
}
public void setSender(Sender sender)
{
this.sender = sender;
}
public Sender getSender()
{
return sender;
}
public void setReciver(Reciver sender)
{
this.reciver = reciver;
}
public Reciver getReciver()
{
return reciver;
}
public void showInfo()
{
System.out.println("Destination is - "+destination);
System.out.println("Estimated Delivery Date is - "+estimatdDeliveryDate);
System.out.println("confirmation - "+confirmation);
System.out.println("aprox weight is - "+aproxweight);
System.out.println("quantity is - "+ quantity);
System.out.println("Hub - "+hub);
System.out.println("Protective layer - "+protectiveLayer);
sender.showInfo();
reciver.showInfo();
}
}