.


:




:

































 

 

 

 


( )




, Adapter , ', , .

, 볺. , , , .

- .

UML , ( )

Adapter Adaptee Target ( Adapter). ' Client ' Adaptee , Target.

' ' , .

. , .

 

( )

, Decorator , '. Decorator .

', , . , '.

' .

ConcreteComponent , . , ConcreteComponent. ConcreteComponent , . Component .

, , '. ' ConcreteComponent.

, , , . - '.

  • '- ', ' ' ConcreteComponent.
  • Java -.

 

4.3. ( )

Proxy ( ) . ', , .

', ' .

'. , ' (' ' ', ' ' ). ' ', , ', ', '. ' ' , , , '.

', :

  • '⳻
  • ',
  • , ' .

4.4. (Composite) / /

4.5. ̳ ( )

̳ (. Bridge) - , .

³ , .

, . , - . . ' , , .

̳ , :

  • ' . , , ;
  • , . ̳ ;
  • 볺, 볺 ;
  • 볺 ;
  • ' ( ), 볺.

UML , ̳

  • Abstraction :
    • ;
    • ' Implementor;
  • RefinedAbstraction :
    • , Abstraction;
  • Implementor :
    • . ³ ' Abstraction. . , Implementor , Abstraction , ;
  • ConcreteImplementor :
    • Implementor.

³

' Abstraction Implementor 볺a.

 





:


: 2016-11-18; !; : 621 |


:

:

, .
==> ...

1519 - | 1299 -


© 2015-2024 lektsii.org - -

: 0.015 .