(. State) , .
' . , '.
, :
- ' ;
- , , . , . . . ' ', .
UML ,
- Context :
- , 볺;
- ConcreteState, ;
- State :
- , Context;
- ϳ ConcreteState :
- , Context.
³
- Context ' ConcreteState;
- ' State, . '- ;
- Context 볺. 볺 ' State. , 볺 ' ' ;
- Context, ConcreteState , .
3.9. . .
3.10. ( )
́ (. Memento) , .
, ' , '.
, :
- ' ( ), ' ;
- '.
UML ,
- Memento :
- ' Originator. , , ;
- ' . . Caretaker '. , , , ' ( ) . , , ;
- Originator :
- , ;
- ;
- CareTaker :
- ;
- .
³
|
|
- , , . , ;
UML , '
- . ҳ , , .