-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathclassdiagram.plantuml
99 lines (84 loc) · 1.48 KB
/
classdiagram.plantuml
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
@startuml classdiagram
Skinparam Style strictuml
Skinparam PackageStyle rectangle
skinparam handwritten true
class CustomerUI
{
+string Name
+int PhoneNumber
-Place Order()
-Payment()
}
class RMS
{
-confirmOrder()
-addBooking()
-getStaff()
}
class StaffUI
{
-selectWaiter()
-selectChef()
}
class Staff
{
+string Name
+int Id
+string jobType
+int NumOfCustomers
}
class Waiter
{
-ServesFood()
-TakesFeedback()
}
class Chef
{
-MarkEstimatedTime()
}
CustomerUI "*" -- "1" RMS: Interacts
StaffUI "*" -- "1" RMS: Interacts
Booking "*" -- "1" RMS: Interacts
StaffUI "*" -- "*" Staff: Accesses
Report "*" -- "1" Manager: Supervises
Report "*" -- "1" RMS: Generates
note "{One Staff Member must not work upon more than 3 customers}" as N1
StaffUI .. N1
N1 .. Staff
Staff <|-- Waiter
Staff <|-- Chef
Waiter <|-- Manager
class Booking
{
+int BookingId
+string Type
+boolean DineIn
+string date
+int time
+int numPersons
-setBooking()
-viewBooking()
-getPrice()
}
Table "1..*" -- "1" Booking: SetsReservation
class Table
{
+int tableNumber
+int numberofSeats
+boolean Occupied
+string SpecialRequest
-setOccupied()
-getOccupied()
-setSpecialRequest()
}
class Manager
{
-requestsFeedback()
-OverviewsReports()
}
class Report
{
+int BillNo.
+boolean Served
}
@enduml