E D R , A S I H C RSS

DPSC Chapter5

Chapter 5

Behavioral Patterns


Chain of Responsibility(225) Avoid coupling the sender of a request to its receiver by giving more than one object a chance to handle the request. Chain the receiving objects, and pass the request along the chain until an object handles it.

Command(245) Encapsulate a request or operation as an object, thereby letting you parameterize clients with different operations, queue or log requests, and support undoable operations.

Interpreter(261)


Chain of Responsibility(225)

Command(245) ๋Š” ์š”์ฒญ(request)์ด๋‚˜ ๋ช…๋ น(operation)์„ object๋กœ์„œ ์บก์Аํ™”์‹œํ‚จ๋‹ค. ๊ทธ๋Ÿฌํ•จ์œผ๋กœ์จ ๊ฐ๊ฐ ๋‹ค๋ฅธ ๋ช…๋ น์„ ๊ฐ€์ง„ ํด๋ผ์ด์–ธํŠธ๋“ค์„ ํŒŒ๋ผ๋ฏธํ„ฐํ™” ์‹œํ‚ค๊ณ , ์š”์ฒญ๋“ค์„ queue์— ์Œ“๊ฑฐ๋‚˜ ์ •๋ ฌํ•˜๋ฉฐ, ์ทจ์†Œ๊ฐ€๋Šฅํ•œํ˜•ํƒœ์˜ ๋ช…๋ น๋“ค์„ ์ง€์›ํ•œ๋‹ค.
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:23:04
Processing time 0.1466 sec