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.0139 sec