Bài giảng Kiến trúc phần mềm: Mẫu thiết kế - PGS.TS. Trần Minh Triết (Phần 2)

27 137 0
Bài giảng Kiến trúc phần mềm: Mẫu thiết kế - PGS.TS. Trần Minh Triết (Phần 2)

Đ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 2 bài giảng Bài giảng Kiến trúc phần mềm - Mẫu thiết kế giới thiệu các mẫu thiết kế như: Mẫu Chain of Responsibility, mẫu Command, mẫu Interpreter, mẫu Iterator, mẫu Mediator, mẫu Memento, mẫu Observer, mẫu State, mẫu Strategy, mẫu Template Method. Mời các bạn cùng tham khảo.

Trường Đại học Khoa Học Tự Nhiên Khoa Công Nghệ Thông Tin Bộ môn Công Nghệ Phần Mềm CTT526 - Kiến trúc phần mềm Mẫu thiết kế Behavioral Patterns PGS.TS Trần Minh Triết tmtriet@fit.hcmus.edu.vn Version 1.0 CuuDuongThanCong.com https://fb.com/tailieudientucntt Mẫu thiết kế nhóm Behavioral Pattern            Mẫu Chain of Responsibility Mẫu Command Mẫu Interpreter Mẫu Iterator Mẫu Mediator Mẫu Memento Mẫu Observer Mẫu State Mẫu Strategy Mẫu Template Method Mẫu Visitor [Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides (1995) Design Patterns - Elements of Reusable Object-Oriented Software, Addison-Wesley] [Christopher G Lasater (2007) Design Patterns, Wordware Publishing, Inc.] CuuDuongThanCong.com https://fb.com/tailieudientucntt Mẫu Command [Christopher G Lasater (2007) Design Patterns, Wordware Publishing, Inc.] CuuDuongThanCong.com https://fb.com/tailieudientucntt Mẫu Command [Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides (1995) Design Patterns - Elements of Reusable Object-Oriented Software, Addison-Wesley] CuuDuongThanCong.com https://fb.com/tailieudientucntt Mẫu Command [Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides (1995) Design Patterns - Elements of Reusable Object-Oriented Software, Addison-Wesley] CuuDuongThanCong.com https://fb.com/tailieudientucntt Mẫu Command [Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides (1995) Design Patterns - Elements of Reusable Object-Oriented Software, Addison-Wesley] CuuDuongThanCong.com https://fb.com/tailieudientucntt Mẫu Command [Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides (1995) Design Patterns - Elements of Reusable Object-Oriented Software, Addison-Wesley] CuuDuongThanCong.com https://fb.com/tailieudientucntt Thảo luận  Các tình sử dụng thơng thường?  Plugin? ? CuuDuongThanCong.com https://fb.com/tailieudientucntt Mẫu Template Method [Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides (1995) Design Patterns - Elements of Reusable Object-Oriented Software, Addison-Wesley] CuuDuongThanCong.com https://fb.com/tailieudientucntt Mẫu Template Method [Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides (1995) Design Patterns - Elements of Reusable Object-Oriented 10 Software, Addison-Wesley] CuuDuongThanCong.com https://fb.com/tailieudientucntt Mẫu Template Method 13 CuuDuongThanCong.com https://fb.com/tailieudientucntt Thảo luận  Cần xác định rõ quy trình chuẩn gồm bước xử lý (kể quy trình có rẽ nhánh lặp)  Cần xác định rõ bước xử lý cần thay đổi cách xử lý cụ thể (nhưng đảm bảo ý nghĩa quy trình bước xử lý này)  Danh sách tham số kiểu kết trả hàm xử lý cho bước  Khi muốn thay đổi cách xử lý cụ thể bước quy trình định nghĩa, khơng thay đổi cách xử lý bước khác sao? 14 CuuDuongThanCong.com https://fb.com/tailieudientucntt Mẫu Strategy [Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides (1995) Design Patterns - Elements of Reusable Object-Oriented 15 Software, Addison-Wesley] CuuDuongThanCong.com https://fb.com/tailieudientucntt Mẫu Strategy [Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides (1995) Design Patterns - Elements of Reusable Object-Oriented 16 Software, Addison-Wesley] CuuDuongThanCong.com https://fb.com/tailieudientucntt Mẫu Strategy 17 [Christopher G Lasater (2007) Design Patterns, Wordware Publishing, Inc.] CuuDuongThanCong.com https://fb.com/tailieudientucntt Mẫu Strategy 18 [Christopher G Lasater (2007) Design Patterns, Wordware Publishing, Inc.] CuuDuongThanCong.com https://fb.com/tailieudientucntt Thảo luận  Có thể cho phép thay riêng lẻ thao tác xử lý cụ thể quy trình xử lý tổng quát  Plug-and-play  Kết hợp mẫu Strategy vào mẫu Template Method? 19 CuuDuongThanCong.com https://fb.com/tailieudientucntt Mẫu State [Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides (1995) Design Patterns - Elements of Reusable Object-Oriented 20 Software, Addison-Wesley] CuuDuongThanCong.com https://fb.com/tailieudientucntt Mẫu State [Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides (1995) Design Patterns - Elements of Reusable Object-Oriented 21 Software, Addison-Wesley] CuuDuongThanCong.com https://fb.com/tailieudientucntt Mẫu State 22 [Christopher G Lasater (2007) Design Patterns, Wordware Publishing, Inc.] CuuDuongThanCong.com https://fb.com/tailieudientucntt Thảo luận  Strategy State?  Trạng thái, chuyển đổi trạng thái  Trạng thái thay đổi dẫn đến MỘT SỐ hành vi thay đổi cách xử lý cụ thể  Tính che giấu thông tin cách xử lý nội đối tượng 23 CuuDuongThanCong.com https://fb.com/tailieudientucntt Mẫu Observer [Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides (1995) Design Patterns - Elements of Reusable Object-Oriented 24 Software, Addison-Wesley] CuuDuongThanCong.com https://fb.com/tailieudientucntt Mẫu Observer [Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides (1995) Design Patterns - Elements of Reusable Object-Oriented 25 Software, Addison-Wesley] CuuDuongThanCong.com https://fb.com/tailieudientucntt Mẫu Observer 26 [Christopher G Lasater (2007) Design Patterns, Wordware Publishing, Inc.] CuuDuongThanCong.com https://fb.com/tailieudientucntt Thảo luận     Publish/Subscribe Notification Listener View 27 CuuDuongThanCong.com https://fb.com/tailieudientucntt .. .Mẫu thiết kế nhóm Behavioral Pattern            Mẫu Chain of Responsibility Mẫu Command Mẫu Interpreter Mẫu Iterator Mẫu Mediator Mẫu Memento Mẫu Observer Mẫu State Mẫu Strategy Mẫu. .. cụ thể quy trình xử lý tổng quát  Plug-and-play  Kết hợp mẫu Strategy vào mẫu Template Method? 19 CuuDuongThanCong.com https://fb.com/tailieudientucntt Mẫu State [Erich Gamma, Richard Helm,... John Vlissides (1995) Design Patterns - Elements of Reusable Object-Oriented Software, Addison-Wesley] CuuDuongThanCong.com https://fb.com/tailieudientucntt Mẫu Command [Erich Gamma, Richard Helm,

Ngày đăng: 11/01/2020, 18:46

Từ khóa liên quan

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

Tài liệu liên quan