In the figure, the Request() can be different when Context has different States. And the State can be dynamically changed. The advantages are:
- It localize the state-specific behavior and partitions operations for different states.
- It makes state transition explicit.
- States objects can be shared.
No comments:
Post a Comment