Advertisement
WONGDEEM

Untitled

Oct 31st, 2021
44
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @startuml
  2. top to bottom direction
  3. title __RRPSS's Class Diagram__\n
  4.  
  5. namespace com.cz2002g5 {
  6. namespace Controller {
  7. interface com.cz2002g5.Controller.MenuEditController {
  8. {abstract} + createItem()
  9. {abstract} + removeItem()
  10. {abstract} + selectAction()
  11. {abstract} + updateItem()
  12. }
  13. }
  14. }
  15.  
  16.  
  17. namespace com.cz2002g5 {
  18. namespace Controller {
  19. class com.cz2002g5.Controller.MenuItemController {
  20. + createItem()
  21. + removeItem()
  22. + selectAction()
  23. + updateItem()
  24. }
  25. }
  26. }
  27.  
  28.  
  29. namespace com.cz2002g5 {
  30. namespace Controller {
  31. class com.cz2002g5.Controller.OrderController {
  32. + addItemToOrder()
  33. + createOrder()
  34. + generateInvoice()
  35. + removeItemFromOrder()
  36. + selectAction()
  37. + viewAllOrders()
  38. }
  39. }
  40. }
  41.  
  42.  
  43. namespace com.cz2002g5 {
  44. namespace Controller {
  45. class com.cz2002g5.Controller.PromotionEditController {
  46. + createItem()
  47. + removeItem()
  48. + selectAction()
  49. + updateItem()
  50. }
  51. }
  52. }
  53.  
  54.  
  55. namespace com.cz2002g5 {
  56. namespace Controller {
  57. class com.cz2002g5.Controller.RRPSS {
  58. - orders : ArrayList<Order>
  59. - promotionalSets : ArrayList<PromotionalSet>
  60. + RRPSS()
  61. + addOrder()
  62. + addPromoSet()
  63. + generateMenuString()
  64. + generatePromoMenuString()
  65. {static} + getCurrentView()
  66. {static} + getMenu()
  67. + getOrders()
  68. {static} + getPromotionalSets()
  69. + getRestaurant()
  70. + reloadMenu()
  71. + run()
  72. {static} + showView()
  73. {static} + showView()
  74. {static} + updateView()
  75. - selectMainViewOption()
  76. }
  77. }
  78. }
  79.  
  80.  
  81. namespace com.cz2002g5 {
  82. namespace Controller {
  83. class com.cz2002g5.Controller.ReservationController {
  84. {static} + timings : String[]
  85. + checkAvailability()
  86. + createReservation()
  87. + selectAction()
  88. - removeReservation()
  89. - showAllReservations()
  90. }
  91. }
  92. }
  93.  
  94.  
  95. namespace com.cz2002g5 {
  96. namespace Controller {
  97. class com.cz2002g5.Controller.RevenueReportController {
  98. + addOrderItemsToRevenueReport()
  99. + generateRevenueReport()
  100. }
  101. }
  102. }
  103.  
  104.  
  105. namespace com.cz2002g5 {
  106. class com.cz2002g5.Main {
  107. }
  108. }
  109.  
  110.  
  111. namespace com.cz2002g5 {
  112. namespace Model.Menu {
  113. enum ItemType {
  114. DESSERT
  115. DRINKS
  116. MAINS
  117. }
  118. }
  119. }
  120.  
  121.  
  122. namespace com.cz2002g5 {
  123. namespace Model.Menu {
  124. class com.cz2002g5.Model.Menu.Menu {
  125. - menuItems : ArrayList<MenuItem>
  126. + Menu()
  127. + getMenuItems()
  128. + setMenuItems()
  129. }
  130. }
  131. }
  132.  
  133.  
  134. namespace com.cz2002g5 {
  135. namespace Model.Menu {
  136. class com.cz2002g5.Model.Menu.MenuItem {
  137. - description : String
  138. - itemID : int
  139. - name : String
  140. - price : Double
  141. - promotionID : int
  142. + MenuItem()
  143. + getDescription()
  144. + getItemID()
  145. + getName()
  146. + getPrice()
  147. + getPromotionID()
  148. + getType()
  149. + setItemID()
  150. + setName()
  151. + setPrice()
  152. + setPromotionID()
  153. }
  154. }
  155. }
  156.  
  157.  
  158. namespace com.cz2002g5 {
  159. namespace Model.Menu {
  160. class com.cz2002g5.Model.Menu.PromotionalSet {
  161. {static} + count : AtomicInteger
  162. - id : int
  163. - price : Double
  164. - setItems : ArrayList<MenuItem>
  165. + PromotionalSet()
  166. + PromotionalSet()
  167. + addSetItem()
  168. + getId()
  169. + getPrice()
  170. + getSetItems()
  171. + setPrice()
  172. }
  173. }
  174. }
  175.  
  176.  
  177. namespace com.cz2002g5 {
  178. namespace Model.Order {
  179. class com.cz2002g5.Model.Order.Order {
  180. - employeeID : int
  181. - numOfCustomers : int
  182. - orderItems : ArrayList<MenuItem>
  183. - promotionalSets : ArrayList<PromotionalSet>
  184. - tableNumber : int
  185. + Order()
  186. + addItem()
  187. + addPromotionalSets()
  188. + getAllItemOrders()
  189. + getEmployeeID()
  190. + getNumOfCustomers()
  191. + getOrderItems()
  192. + getPromotionalSets()
  193. + getTableNumber()
  194. + getTotalOrderSize()
  195. + getTotalPrice()
  196. + printInvoice()
  197. + removeItem()
  198. + removeItem()
  199. + removePromotionalSet()
  200. + setTableNumber()
  201. }
  202. }
  203. }
  204.  
  205.  
  206. namespace com.cz2002g5 {
  207. namespace Model.Reservation {
  208. class com.cz2002g5.Model.Reservation.Reservation {
  209. - contactNumber : String
  210. - date : LocalDate
  211. - name : String
  212. - pax : Integer
  213. - table : int
  214. - time : LocalTime
  215. + Reservation()
  216. + getContactNumber()
  217. + getDate()
  218. + getName()
  219. + getPax()
  220. + getTableNumber()
  221. + getTime()
  222. + setContactNumber()
  223. + setDate()
  224. + setName()
  225. + setPax()
  226. + setTable()
  227. + setTime()
  228. + showInfo()
  229. }
  230. }
  231. }
  232.  
  233.  
  234. namespace com.cz2002g5 {
  235. namespace Model.Restaurant {
  236. class com.cz2002g5.Model.Restaurant.Restaurant {
  237. {static} + TOTAL_TABLES : Integer
  238. - tables : ArrayList<Table>
  239. + Restaurant()
  240. + assignTableForReservation()
  241. + getReservations()
  242. + getTables()
  243. }
  244. }
  245. }
  246.  
  247.  
  248. namespace com.cz2002g5 {
  249. namespace Model.Restaurant {
  250. class com.cz2002g5.Model.Restaurant.Table {
  251. ~ id : Integer
  252. ~ occupied : Boolean
  253. ~ reservations : ArrayList<Reservation>
  254. ~ seatingCapacity : Integer
  255. + Table()
  256. + addReservation()
  257. + getReservations()
  258. + getSeatingCapacity()
  259. + getTableID()
  260. + isOccupied()
  261. + setOccupied()
  262. }
  263. }
  264. }
  265.  
  266.  
  267. namespace com.cz2002g5 {
  268. namespace Util {
  269. class com.cz2002g5.Util.CSVFileUtil {
  270. {static} + addItemToMenu()
  271. {static} + addItemToPromoMenu()
  272. {static} + addOrderItemsToRevenueReportCSV()
  273. {static} + generateMenuItemListFromFile()
  274. {static} + generatePromoMenuItemListFromFile()
  275. {static} + getItemByName()
  276. {static} + readFile()
  277. {static} + readMenuFile()
  278. {static} + readPromoMenuFile()
  279. {static} + readRevenueReport()
  280. {static} + removeMenuItemByIndex()
  281. {static} + removePromoItemByIndex()
  282. {static} + updateMenuByIndex()
  283. {static} + updatePromoMenuByIndex()
  284. }
  285. }
  286. }
  287.  
  288.  
  289. namespace com.cz2002g5 {
  290. namespace View {
  291. class com.cz2002g5.View.CreateMenuItemView {
  292. + display()
  293. + displayCustomView()
  294. + showAddDescView()
  295. + showAddNameView()
  296. + showAddPriceView()
  297. + showAddTypeView()
  298. }
  299. }
  300. }
  301.  
  302.  
  303. namespace com.cz2002g5 {
  304. namespace View {
  305. class com.cz2002g5.View.CreateOrderView {
  306. + display()
  307. + displayCustomView()
  308. + showEmployeeIDView()
  309. + showMenu()
  310. + showNumOfCustomersView()
  311. + showTableNumberView()
  312. }
  313. }
  314. }
  315.  
  316.  
  317. namespace com.cz2002g5 {
  318. namespace View {
  319. class com.cz2002g5.View.CreatePromoSetView {
  320. + display()
  321. + displayCustomView()
  322. + showAddItemView()
  323. + showAddNameView()
  324. + showAddPriceView()
  325. }
  326. }
  327. }
  328.  
  329.  
  330. namespace com.cz2002g5 {
  331. namespace View {
  332. class com.cz2002g5.View.CreateReservationView {
  333. + display()
  334. + displayCustomView()
  335. + showAddContactNumberView()
  336. + showAddDateView()
  337. + showAddNameView()
  338. + showAddPaxView()
  339. }
  340. }
  341. }
  342.  
  343.  
  344. namespace com.cz2002g5 {
  345. namespace View {
  346. class com.cz2002g5.View.DeleteMenuItemView {
  347. + display()
  348. + displayCustomView()
  349. + showDeleteItemView()
  350. }
  351. }
  352. }
  353.  
  354.  
  355. namespace com.cz2002g5 {
  356. namespace View {
  357. class com.cz2002g5.View.DeletePromoItemView {
  358. + display()
  359. + displayCustomView()
  360. }
  361. }
  362. }
  363.  
  364.  
  365. namespace com.cz2002g5 {
  366. namespace View {
  367. class com.cz2002g5.View.DeleteReservationView {
  368. + display()
  369. + displayCustomView()
  370. }
  371. }
  372. }
  373.  
  374.  
  375. namespace com.cz2002g5 {
  376. namespace View {
  377. class com.cz2002g5.View.ItemEditorView {
  378. + display()
  379. + displayCustomView()
  380. }
  381. }
  382. }
  383.  
  384.  
  385. namespace com.cz2002g5 {
  386. namespace View {
  387. class com.cz2002g5.View.MenuItemsView {
  388. + display()
  389. + displayCustomView()
  390. }
  391. }
  392. }
  393.  
  394.  
  395. namespace com.cz2002g5 {
  396. namespace View {
  397. class com.cz2002g5.View.OrderEditorView {
  398. + display()
  399. + displayCustomView()
  400. }
  401. }
  402. }
  403.  
  404.  
  405. namespace com.cz2002g5 {
  406. namespace View {
  407. class com.cz2002g5.View.PromotionEditorView {
  408. + display()
  409. + displayCustomView()
  410. }
  411. }
  412. }
  413.  
  414.  
  415. namespace com.cz2002g5 {
  416. namespace View {
  417. class com.cz2002g5.View.RemoveOrderItemView {
  418. + display()
  419. + displayCustomView()
  420. }
  421. }
  422. }
  423.  
  424.  
  425. namespace com.cz2002g5 {
  426. namespace View {
  427. class com.cz2002g5.View.ReservationEditorView {
  428. + display()
  429. + displayCustomView()
  430. }
  431. }
  432. }
  433.  
  434.  
  435. namespace com.cz2002g5 {
  436. namespace View {
  437. class com.cz2002g5.View.UpdateMenuItemView {
  438. + display()
  439. + displayCustomView()
  440. + showUpdateDescView()
  441. + showUpdateNameView()
  442. + showUpdatePriceView()
  443. + showUpdateTypeView()
  444. }
  445. }
  446. }
  447.  
  448.  
  449. namespace com.cz2002g5 {
  450. namespace View {
  451. class com.cz2002g5.View.UpdateOrderItemView {
  452. + display()
  453. + displayCustomView()
  454. }
  455. }
  456. }
  457.  
  458.  
  459. namespace com.cz2002g5 {
  460. namespace View {
  461. class com.cz2002g5.View.UpdatePromoItemView {
  462. + display()
  463. + displayCustomView()
  464. }
  465. }
  466. }
  467.  
  468.  
  469. namespace com.cz2002g5 {
  470. namespace View {
  471. interface com.cz2002g5.View.View {
  472. {abstract} + display()
  473. {abstract} + displayCustomView()
  474. }
  475. }
  476. }
  477.  
  478.  
  479. namespace com.cz2002g5 {
  480. namespace View {
  481. class com.cz2002g5.View.WelcomeView {
  482. + display()
  483. + displayCustomView()
  484. }
  485. }
  486. }
  487.  
  488. @enduml
  489.  
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement