Object Oriented Development with UML 11 12 18
Object Oriented Development with UML 11 -12, 18 -19 November 2006 At Sipa Chiangmai Analysis Class โดย รศ. รงสต ศรรงษ อ. สายณห
การวเคราะหคลาส n (Analysis Classes( มาจากแนวคดของจาคอบสนทเรยกวา Information Space ตามแนวแกนสามมต ไดแก Information, Behavior, Presentation Behavior Information Space Information Presentation
What is an Analysis Class? <<boundary>> System boundary <<control>> Use-case behavior coordination <<control>> System information <<entity>>
Identify — Boundary Class n n กำหนด 1 boundary class สำหรบแตละ human actor u นำเสนอ window หลกของ UI ทตดตอกบ actor กำหนด 1 central boundary class สำหรบแตละ external system actor u นำเสนอการตดตอของสวนทเปน interface ไปยง external system Fcentral boundary classes สามารถเปนสวนประกอบของ boundary classes อน ๆ ได student Register for Courses Register. For. Courses. Form Course Catalog System Course. Catalog. System
The Role of a Boundary Class Customer Model interaction between the system and its environment
What is an Entity Class? Analysis class stereotype Glossary Use-Cases Business domain model Architectural Analysis Abstractions Environment Independent
The Role of an Entity Class Store and manage information in the system
The Role of a Control Class Coordinate the use case behavior (stay tuned for collaboration diagrams)
Rules For Analysis Class Interactions Allow Not-Allow
Example: Analysis Classes Student Register for Courses Main. Form Registration. Controller Course Catalog System Use Case Model Analysis Model Course. Catalog. System
Order Processing Use Case Browse Product User <<extend>> Login Customer Register Add to Shopping Cart Update Shopping Cart <<extend>> View Shopping Cart <<include>> Check Inventory Status Check Out Card View Order Status Authorization
ตวอยาง Analysis Class <<extend>> Login Customer Register. Controll Register. Pag er Register. DB e Register Customer Login. Page Login. DB Login. Controller Login
ตวอยาง Analysis Class Browse. Controller User Browse. Page Browse. DB Login. Controller Login. DB Login. Page Login. Controller Login. Page Login. DB Add. Shopping. Controller Customer Add. Shopping. Page Add. Shopping. DB Add. Shopping. Cart View. Shopping. Page Check Inventory Update. Controller Update. Page Update. DB View. Shopping. Controller View. Shopping Check. Out. Page View. Order. Controller View. Order. Page Check. Out. DB Check. Out. Controller View. Order. DB Card Authorization
ตวอยาง Analysis Class Login. Page Login. Controller Login. DB Register. Page Register. Controller Register. DB Add. Shopping. Page Add. Shopping. Controller Add. Shopping. DB View. Shopping. Page View. Shopping. Controller View. Shopping. DB Update. Order. Page Update. Order. Controller Update. DB
Class Diagram : Specification Level Address - no - street - sub. District - district - province - zipcode - tel. No n Customer - name - last. Name - gender - birthday - occupation - customerid 1 Login - username - password 1 + get. Address() + find. Max. Address() 1 + verify. Login() + find. Max. Login() + get. Customer() + generate. Cus. Id() + add. Customer. Address() 1 1. . n Order - order. Id - total. Price - tax - order. Date - delivery. Date - status. Delivery Category - category. Id - category. Name - category. Desc + get. Order. Detail() + add. Product() + check. Stock() + update. Qty() + check. Status() + calculate. Total() + get. Catalog() + display. Catagory() 1 1 n Product - product. Id - product. Name - price. Per. Unit - qty. In. Stock + get. Product() + display. Product() 1. . n Order. Detail - Order. Detail. Id - qty - sum 1. . n 1 + is. Duplicate. Product() + get. Product() + calculate. Sum() 1 1 Check. Out - type. Credit. Card - credit. ID - credit. Name - expiration. Date + is. Authorization()
- Slides: 34