Phân tích thiết kế hướng đối tượng - Bài 2 doc

43 206 0
Phân tích thiết kế hướng đối tượng - Bài 2 doc

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

PHÂN TÍCH THI T K HƯ NG ð I TƯ NG N I DUNG Ti n trình phát tri n ph n m m theo hư ng đ i tư ng Gi i thi u Ngơn ng mơ hình hóa th ng nh t UML Mơ hình hóa nghi p v Mơ hình hóa trư ng h p s d ng Mơ hình hóa tương tác đ i tư ng Bi u đ l p gói Bi u đ chuy n tr ng thái bi u đ ho t đ ng Bi u đ ki n trúc v t lý phát sinh mã trình Mơ hình hóa d li u 10 Bài h c th c nghi m ehamingway@gmail.com Phân tích thi t k hư ng đ i tư ng Bài - 2/43 Bài Gi i thi u Ngơn ng mơ hình hóa th ng nh t Mơ hình gì? n Mơ hình n b c tranh hay mơ t v n đ c g ng gi i quy t hay mơ t gi i pháp v n đ n ngơn ng c a ngư i thi t k (trong nhi u lĩnh v c) n trình di n h th ng s xây d ng n phương ti n giao ti p gi a stakeholders n k ho ch chi ti t (blueprints) n Mơ hình cho kh suy di n m t s ñ c tính c a h th ng th c n Mơ hình hóa tr c quan n n B ng ph n t đ h a Ngơn ng mơ hình hóa ngơn ng mơ t h th ng hay tác nghi p An abstraction is an intellectual simplification ehamingway@gmail.com Phân tích thi t k hư ng đ i tư ng Bài - 4/43 Thí d mơ hình Mơ hình: Qu đ a c u h c sinh Th gi i th c Th gi i th c Ơtơ ehamingway@gmail.com Làm ch Con ngư i ð c Phân tích thi t k hư ng ñ i tư ng Sách Mơ hình Bài - 5/43 Thí d mơ hình A model is a complete description of a system from a particular perspective ehamingway@gmail.com Phân tích thi t k hư ng đ i tư ng Bài - 6/43 Mơ hình hóa tr c quan? Order “Modeling captures essential parts of the system.” Dr James Rumbaugh Item Ship via Business Process Visual Modeling is modeling using standard graphical notations ehamingway@gmail.com Phân tích thi t k hư ng đ i tư ng Computer System Bài - 7/43 B n nguyên t c mơ hình hóa n n n n Vi c ch n mơ hình đ t o l p có nh hư ng sâu s c đ n cách gi i quy t v n ñ cách hình thành gi i pháp M i mơ hình bi u di n h th ng v i m c đ xác khác Mơ hình t t nh t ph i mơ hình phù h p v i th gi i th c Khơng mơ hình ñ y ñ M i h th ng thư ng đư c ti p c n thơng qua t p mơ hình g n đ c l p ehamingway@gmail.com Phân tích thi t k hư ng ñ i tư ng Bài - 8/43 Thi t k ki n trúc The “why” The “what” Architecture Qualities Satisfies Architecture S/W Requirements Constrain Architecture Representation The “who” System Features System Quality Attributes Technology Produces Defines The “how” Follows Architect Process Skills Defines role Organization Stakeholders ehamingway@gmail.com Phân tích thi t k hư ng đ i tư ng Bài - 9/43 Ngơn ng mơ hình hóa th ng nh t UML 1.3 OMG Acceptance, Nov 1997 UML 1.1 Final submission to OMG, Sep ‘97 public feedback First submission to OMG, Jan ´97 UML 1.0 UML partners UML 0.9 June ´96 OOPSLA ´95 Other methods Unified Method 0.8 Booch method OMT June 12, 2003 UML 2.0 OOSE UML stands for Unified Modeling Language ehamingway@gmail.com Phân tích thi t k hư ng ñ i tư ng Bài - 10/43 Collaboration Diagram course form : CourseForm 1: set course info 2: process 3: add course : Registrar theManager : CurriculumManager aCourse : Course 4: new course ehamingway@gmail.com Phân tích thi t k hư ng ñ i tư ng Bài - 29/43 Collaboration Diagram n n n A collaboration diagram displays object interactions organized around objects and their links to one another Captures dynamic behavior (message-oriented) Purpose n n Model flow of control Illustrate coordination of object structure and control ehamingway@gmail.com Phân tích thi t k hư ng đ i tư ng Bài - 30/43 Class Diagram ScheduleAlgorithm RegistrationForm * RegistrationManager addStudent(Course, StudentInfo) Course * Student name numberCredits open() addStudent(StudentInfo) major 10 Professor tenureStatus ehamingway@gmail.com 1 * CourseOffering location open() addStudent(StudentInfo) Phân tích thi t k hư ng ñ i tư ng Bài - 31/43 Class Diagram n n n n A class diagram shows the existence of classes and their relationships in the logical view of a system Captures the vocabulary of a system Built and refined throughout development Purpose n n n n Name and model concepts in the system Specify collaborations Specify logical database schemas Developed by analysts, designers, and implementers ehamingway@gmail.com Phân tích thi t k hư ng ñ i tư ng Bài - 32/43 Object Diagram n n n Shows instances and links Built during analysis and design Purpose n n n Illustrate data/object structures Specify snapshots Developed by analysts, designers, and implementers ehamingway@gmail.com Phân tích thi t k hư ng ñ i tư ng Bài - 33/43 State Transition Diagram Add student [count < 10] Add Student / Set count = Initialization Open do: Initialize course entry: Register student exit: Increment count Cancel Cancel [count = 10] Canceled do: Notify registered students Cancel ehamingway@gmail.com Closed do: Finalize course Phân tích thi t k hư ng đ i tư ng Bài - 34/43 State Transition Diagram n n n State transition diagrams are created for objects with significant dynamic behavior Captures dynamic behavior (event-oriented) Purpose n n Model object lifecycle Model reactive objects (user interfaces, devices, etc.) ehamingway@gmail.com Phân tích thi t k hư ng đ i tư ng Bài - 35/43 Activity Diagram n n Captures dynamic behavior (activityoriented) Purpose n n Model business workflows Model operations ehamingway@gmail.com Phân tích thi t k hư ng đ i tư ng Bài - 36/43 Component Diagram Register.exe Billing.exe Billing System People.dll User Course.dll Course Student Course ehamingway@gmail.com Professor Course Offering Phân tích thi t k hư ng ñ i tư ng Bài - 37/43 Component Diagram n n n n Component diagrams illustrate the organizations and dependencies among software components Captures the physical structure of the implementation Built as part of architectural specification Purpose n n n n Organize source code Construct an executable release Specify a physical database Developed by architects and programmers ehamingway@gmail.com Phân tích thi t k hư ng đ i tư ng Bài - 38/43 Deployment Diagram Registration Database Main Building Library Dorm ehamingway@gmail.com Phân tích thi t k hư ng ñ i tư ng Bài - 39/43 Deployment Diagram Client Dynamic HTML, JavaScript, Java plug-ins, source code enhancements Server Java, C, C++, JavaScript, CGI Application Server Fulfillment System ehamingway@gmail.com Financial System Java, C, C++, JavaBeans, CORBA, DCOM Inventory System Phân tích thi t k hư ng đ i tư ng RDBMS Server Native languages Bài - 40/43 Deployment Diagram n n n n The deployment diagram shows the configuration of run-time processing elements and the software processes living on them Captures the topology of a system’s hardware Built as part of architectural specification Purpose n n n Specify the distribution of components Identify performance bottlenecks Developed by architects, networking engineers, and system engineers ehamingway@gmail.com Phân tích thi t k hư ng ñ i tư ng Bài - 41/43 Rational Rose n Rose is available in three editions: n n n n Rose Modeler – no language support Rose Professional – support for language Rose Enterprise – supports multiple languages including (VC++, VB, Java, CORBA and XML) Why should we use Rational Rose? n n n n Common standard language the Unified Modeling Language (UML) results in improved team communication Reverse-engineering capabilities allow you to integrate with legacy OO systems Models and code remain synchronized through the development cycle Demo Rose ehamingway@gmail.com Phân tích thi t k hư ng ñ i tư ng Bài - 42/43 Tóm t t n Các v n đ ñã nghiên c u n n n Khái ni m mơ hình, mơ hình hóa tr c quan Khái qt v Ngơn ng mơ hình hóa th ng nh t Thí d s d ng bi u đ c a UML ehamingway@gmail.com Phân tích thi t k hư ng ñ i tư ng Bài - 43/43 ... ehamingway@gmail.com Phân tích thi t k hư ng ñ i tư ng Bài - 13/43 Khái quát v UML n n n n Mơ hình hóa ph n t Các quan h Cơ ch m r ng Các bi u ñ ehamingway@gmail.com Phân tích thi t k hư ng đ i tư ng Bài - 14/43... ehamingway@gmail.com Phân tích thi t k hư ng đ i tư ng Bài - 15/43 Các quan h n n n n Dependency Association Generalization Realization ehamingway@gmail.com Phân tích thi t k hư ng ñ i tư ng Bài - 16/43 Cơ... ehamingway@gmail.com Phân tích thi t k hư ng ñ i tư ng Bài - 38/43 Deployment Diagram Registration Database Main Building Library Dorm ehamingway@gmail.com Phân tích thi t k hư ng đ i tư ng Bài - 39/43 Deployment

Ngày đăng: 02/08/2014, 09:20

Từ khóa liên quan

Tài liệu cùng người dùng

Tài liệu liên quan