Danh mục

Phân tích thiết kế hướng đối tượng (phần 6)

Số trang: 7      Loại file: pdf      Dung lượng: 124.12 KB      Lượt xem: 23      Lượt tải: 0    
10.10.2023

Hỗ trợ phí lưu trữ khi tải xuống: 1,000 VND Tải xuống file đầy đủ (7 trang) 0
Xem trước 2 trang đầu tiên của tài liệu này:

Thông tin tài liệu:

Tham khảo tài liệu phân tích thiết kế hướng đối tượng (phần 6), công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả
Nội dung trích xuất từ tài liệu:
Phân tích thiết kế hướng đối tượng (phần 6) Created by Trang H ng Sơn ---------------------------------- SYSTEM SEQUENCE DIAGRAM1. T ng quan: - System Sequence Diagram (SSD): + Là sơ ñ tu n t chu i s ki n trong Use Case, bi u di n các s ki n tương tác (tác ñ ng vàph n h i) c a Actor bên ngoài và h th ng bên trong (ñư c xem như black-box). + SSD bao g m: . Các Actor bên ngoài và h th ng bên trong. . Các yêu c u tác ñ ng c a Actor vào h th ng. . Các k t qu tr v tương ng (n u có) c a h th ng. . Các ño n l p có th có trong quá trình tương tác gi a Actor và h th ng. Process Sale Scenario : Cashier :System makeNewSale Simple cash-only Process Sale scenario: loop [ more items ] 1. Customer arrives at a POS checkout enterItem(itemID, quantity) with goods and/or services to purchase. 2. Cashier starts a new sale. 3. Cashier enters item identifier. description, total 4. System records sale line item and presents item description, price, and running total. Cashier repeats steps 3-4 until indicates done. endSale 5. System presents total with taxes calculated. 6. Cashier tells Customer the total, and total with taxes asks for payment. 7. Customer pays and System handles payment. makePayment(amount) ... change due, receipt -1- Created by Trang H ng Sơn ---------------------------------- system as black box the name could be NextGenPOS but System keeps it simple the : and underline imply an instance, and are explained in a later chapter on sequence diagram notation in the UML external actor to Process Sale Scenario system : Cashier :System makeNewSale a UML loop loop [ more items ] interaction enterItem(itemID, quantity) frame, with a boolean guard expression description, total endSale a message with parameters return value(s) associated with the it is an abstraction previous message total with taxes representing the system event of an abstraction that entering the ignores presentation makeP ...

Tài liệu được xem nhiều: