-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRestaurant.java
More file actions
100 lines (82 loc) · 2.58 KB
/
Restaurant.java
File metadata and controls
100 lines (82 loc) · 2.58 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
import java.io.Serializable;
public class Restaurant implements Serializable {
private static final long serialVersionUID = 1L;
private int tableNumber;
private Restaurant link;
private Customer Customer;
private Waiter Waiter;
private Bill bill = null;
public Restaurant() {
this.tableNumber = 0;
Customer = null;
Waiter = null;
this.link = null;
}
public Restaurant(Restaurant restaurant, Restaurant link) {
this.bill = restaurant.getBill();
this.tableNumber = restaurant.getTableNumber();
Customer = restaurant.getCustomer();
Waiter = restaurant.getWaiter();
this.link = link;
}
public Restaurant(int tableNumber, Waiter Waiter, Customer Customer, Restaurant link) {
this.tableNumber = tableNumber;
this.Waiter = Waiter;
this.Customer = Customer;
this.link = link;
}
public Restaurant(int tableNumber, Customer Customer, Restaurant link) {
this.tableNumber = tableNumber;
this.Customer = Customer;
this.link = link;
}
public Restaurant(int tableNumber, Waiter Waiter, Restaurant link) {
this.tableNumber = tableNumber;
this.Waiter = Waiter;
this.link = link;
}
public Restaurant(int tableNumber, Restaurant link) {
this.tableNumber = tableNumber;
this.Waiter = null;
this.Customer = null;
this.bill = null;
this.link = link;
}
public Restaurant(int tableNumber, Waiter Waiter, Customer Customer, Restaurant link, Bill bill) {
this.tableNumber = tableNumber;
this.Waiter = Waiter;
this.Customer = Customer;
this.bill = bill;
this.link = link;
}
public void setWaiter(Waiter Waiter) {
this.Waiter = Waiter;
}
public Waiter getWaiter() {
return this.Waiter;
}
public void setCustomer(Customer Customer) {
this.Customer = Customer;
}
public Customer getCustomer() {
return this.Customer;
}
public void setTableNumber(int tableNumber) {
this.tableNumber = tableNumber;
}
public void setRestaurantLink(Restaurant link) {
this.link = link;
}
public Restaurant getRestaurantLink() {
return this.link;
}
public int getTableNumber() {
return this.tableNumber;
}
public Bill getBill() {
return this.bill;
}
public void setBill(Bill bill) {
this.bill = bill;
}
}