E D R , A S I H C RSS

DPSC Chapter4

Chapter 4

Structural Patterns


Adapter(105) Convert the interface of a class into another interface clients expect. Adapter lets classes work together that couldn't otherwise because of incompatible interfaces

Bridge(121) Decouple an abstraction from its implementation so that the two can vary independently

Composite(137) Compose objects into tree structrures to represent part-whole hierarchies. Composite lets clients treat individual objects and compositions of objects uniformly.

Decorator(161) Attach Additional responsibilities and behavior to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality.

Facade(179) Provide a unified interface to a set of interfaces in a subsystem. Facade defines a higher-level interface that makes the subsystem easier to use.

Flyweight(189) Use sharing to support large numbers of fine-grained objects efficiently.

Proxy(213) Provide a surrogate or placeholder for another object to control access to it.


Adapter(105) ๋Š” ๋‹ค๋ฅธ „Ž˜Šค˜ Clients๋“ค˜ˆƒ• ˆ˜ žˆ๋Š” ˜•ƒœ˜ด๋ž˜Šค˜ „Ž˜Šค๋ฅผ ๋ณ€˜•‹œ‚จ๋‹ค. ฆ‰, Adapter๋Š” –‘๋ฆฝ• ˆ˜ —†๋Š” ๋‹ค๋ฅธ ƒ™ฉ˜‘ฐ€ง€˜ „ ˆ˜–‰•˜๋Š” ด๋ž˜Šค๋ฅผ ƒ˜„—ฐฒฐ‹œ‚ค๋Š” —ญ• „ •œ‹ค.

Bridge(121)€  šฉ(implementation)˜ ถ”ƒ™”๋ฅผ †ต•œ ๋ถ„๋ฆฌ๋ฅผ †ต•˜—ฌ ๋‘˜—ฒŒ ๋…๋ฆฝ„„ ๋ถ€—ฌ•œ‹ค.

Composite(137)€  „ฒด-๋ถ€๋ถ„˜ „ธต ๋‚˜ƒ€๋‚ดธฐœ„•œ treeตฌกฐ๋กœ ฐ object๋ฅผ ตฌ„‹œ‚จ๋‹ค. Composite๋Š” client ๋“คœ๋ณ„˜ object™€ object๋“ค˜ กฐ•„  ••œ œน™œผ๋กœ‹ค๋ฃฐˆ˜ žˆฒŒ •œ‹ค.

Decorator(161)€ object—ฒŒ ๋™ œผ๋กœ ž„๋ฌด™€ • „ ๋ถ€—ฌ•œ‹ค. Decorator๋Š” ธฐ๋Šฅ˜ ™•žฅ„ œ„•œ •ˆ˜— ๋Œ€•˜—ฌ œ —ฐ•œ „ ƒ„  œณต•œ‹ค.

Facade(179)๋Š” ™•žฅ๋œ ‹œŠค…œ—„œ(•˜œ„, ƒ†๋ฐ›€) interface๋“ค˜ กฐ•— ๋Œ€•œ ด€  ‘ผ(interface)„  œณต•œ‹ค. Facade๋Š” ™•žฅ ‹œŠค…œ(•˜œ„, ƒ†๋ฐ›€)„ ข€๋” ‚ฌšฉ•˜ฒŒ ‰ฝ๋„๋ก ๋†’€ ๋‹„˜ interface๋ฅผ  •˜•œ‹ค.

Flyweight(189)๋Š” ๋งŽ€ ˆ˜˜ ž˜ ๋งŒ๋“ค–ด„ object๋“ค˜ šจณผ ณตœ ๋ฅผ ฐ€๋Šฅผ€ •œ‹ค.

Proxy(213)€ ๋‹ค๋ฅธ object˜ กฐ •,ด€๋ฆฌ(control)„ œ„•œ ๋Œ€–‰ž, placeholer๋ฅผ  œณต•œ‹ค.
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:23:04
Processing time 0.0102 sec