1. Trang chủ
  2. » Công Nghệ Thông Tin

Slied giáo trình phân tích thiết kế hướng đối tượng DH UML2

43 256 0

Đ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

VIỆN KHOA HỌC VÀ CÔNG NGHỆ VIỆT NAM VIỆN CÔNG NGHỆ THÔNG TIN PHÂN TÍCH THIẾT KẾ HƯỚNG ĐỐI TƯỢNG PGS.TS Đặng Văn Đức Email: dvduc@ioit.ac.vn 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 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 liệu 10 Bài học thực nghiệm Bài - 2/43 Bàithiệu Giới Ngôn ngữ mô hình hóa thống Mô hình gì?  Mô hình  tranh hay mô tả vấn đề cố gắng giải hay mô tả giải pháp vấn đề  ngôn ngữ người thiết kế (trong nhiều lĩnh vực)  trình diễn hệ thống xây dựng  phương tiện giao tiếp stakeholders  kế hoạch chi tiết (blueprints)  Mô hình cho khả suy diễn số đặc tính hệ thống thực  Mô hình hóa trực quan   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 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ô Làm chủ Con người Đọc  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 Bài - 6/43 Mô hình hóa trực quan? Order “Modeling captures essential parts of the system.” Item Dr James Rumbaugh Ship via Business Process Visual Modeling is modeling using standard graphical notations Computer System Bài - 7/43 Bốn nguyên tắc mô hình hóa  Việc chọn mô hình để tạo lập có ảnh hưởng sâu sắc đến cách giải 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 phải mô hình phù hợp với giới thực  Không mô hình đầy đủ Mỗi hệ thống thường tiếp cận thông qua tập mô hình gần độc lập Bài - 8/43 Thiết kế kiến trúc The “why” The “what” Architecture Qualities Satisfies Architecture Constrain Architecture Representation The “who” System Features S/W Requirements System Quality Attributes Technology Produces Defines The “how” Follows Architect Process Skills Defines role Organization Stakeholders Bài - 9/43 Ngôn ngữ mô hình hóa thống 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 June 12, 2003 UML 2.0 Unified Method 0.8 Booch method OMT OOSE UML stands for Unified Modeling Language Bài - 10 Collaboration Diagram 1: set course info 2: process course form : CourseForm 3: add course : Registrar theManager : CurriculumManager aCourse : Course 4: new course Bài - 29 Collaboration Diagram  A collaboration diagram displays object interactions organized around objects and their links to one another  Captures dynamic behavior (message-oriented)  Purpose  Model flow of control  Illustrate coordination of object structure and control Bài - 30 Class Diagram ScheduleAlgorithm RegistrationForm * RegistrationManager addStudent(Course, StudentInfo) Course * Student name numberCredits open() addStudent(StudentInfo) major 10 Professor tenureStatus 1 * CourseOffering location open() addStudent(StudentInfo) Bài - 31 Class Diagram  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  Name and model concepts in the system  Specify collaborations  Specify logical database schemas  Developed by analysts, designers, and implementers Bài - 32 Object Diagram  Shows instances and links  Built during analysis and design  Purpose  Illustrate data/object structures  Specify snapshots  Developed by analysts, designers, and implementers Bài - 33 State Transition Diagram Add student [count < 10] Initialization Add Student / Set count = do: Initialize course Open entry: Register student exit: Increment count Cancel Cancel [count = 10] Canceled do: Notify registered students Cancel Closed do: Finalize course Bài - 34 State Transition Diagram  State transition diagrams are created for objects with significant dynamic behavior  Captures dynamic behavior (event-oriented)  Purpose  Model object lifecycle  Model reactive objects (user interfaces, devices, etc.) Bài - 35 Activity Diagram  Captures dynamic behavior (activityoriented)  Purpose  Model business workflows  Model operations Bài - 36 Component Diagram Register.exe Billing.exe Billing System People.dll User Course.dll Course Student Course Professor Course Offering Bài - 37 Component Diagram  Component diagrams illustrate the organizations and dependencies among software components  Captures the physical structure of the implementation  Built as part of architectural specification  Purpose  Organize source code  Construct an executable release  Specify a physical database  Developed by architects and programmers Bài - 38 Deployment Diagram Registration Database Main Building Library Dorm Bài - 39 Deployment Diagram Client Dynamic HTML, JavaScript, Java plug-ins, source code enhancements Server Java, C, C++, JavaScript, CGI Application Server Fulfillment System Financial System Inventory System Java, C, C++, JavaBeans, CORBA, DCOM RDBMS Server Native languages Bài - 40 Deployment Diagram  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  Specify the distribution of components  Identify performance bottlenecks  Developed by architects, networking engineers, and system engineers Bài - 41 Rational Rose  Rose is available in three editions:  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?  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 Bài - 42 Tóm tắt  Các vấn đề nghiên cứu  Khái niệm mô hình, mô hình hóa trực quan  Khái quát Ngôn ngữ mô hình hóa thống  Thí dụ sử dụng biểu đồ UML Bài - 43 ... 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 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... hay mô tả giải pháp vấn đề  ngôn ngữ người thiết kế (trong nhiều lĩnh vực)  trình diễn hệ thống xây dựng  phương tiện giao tiếp stakeholders  kế hoạch chi tiết (blueprints)  Mô hình cho... đầy đủ khung nhìn   Đơn xử lý: Bỏ qua khung nhìn triển khai  Đơn tiến trình: Bỏ qua khung nhìn tiến trình  Chương trình nhỏ: Bỏ qua khung nhìn cài đặt Bổ sung khung nhìn  Data view  Security

Ngày đăng: 22/08/2017, 21:07

Xem thêm: Slied giáo trình phân tích thiết kế hướng đối tượng DH UML2

TỪ KHÓA LIÊN QUAN

Mục lục

    PHÂN TÍCH THIẾT KẾ HƯỚNG ĐỐI TƯỢNG

    Giới thiệu Ngôn ngữ mô hình hóa thống nhất

    Mô hình là gì?

    Thí dụ mô hình

    Mô hình hóa trực quan?

    Bốn nguyên tắc mô hình hóa

    Thiết kế kiến trúc

    Ngôn ngữ mô hình hóa thống nhất

    Contributions to the UML

    Khái quát về UML

TÀI LIỆU CÙNG NGƯỜI DÙNG

  • Đang cập nhật ...

TÀI LIỆU LIÊN QUAN