TAILIEUCHUNG - Lecture Software engineering: Lecture 18 - Ivan Marsic

Lecture 18: Design patterns (Command, decorator, state, proxy). The main contents of this chapter include all of the following: Command pattern, decorator pattern, state pattern, proxy pattern. | Ivan Marsic Rutgers University LECTURE 18: Design Patterns Command, Decorator, State, Proxy Topics Command Pattern Decorator Pattern State Pattern Proxy Pattern Protection Proxy Command Pattern Motivation Client A Server B doAction( params ) (a) Client A execute() Receiver B doAction( params ) Command create( params ) (b) unexecute() (Server) Command Pattern Motivation Motivation: To separate parameter preparation from passing program control (decision on when to call) Client A Server B doAction( params ) Client A execute() Receiver B doAction( params ) Command create( params ) unexecute() Reasons for separation: Separate preparation of calling parameters (which may become available much before the execution time or may become available incrementally) All calling parameters become localized in a Command object (“encapsulated”) Parameters may be prepared for the Client by a different object (“Custodian”) Client and .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.