A Reusable Design of State Patten

Haohai Ma, Gao Guang-lai · Acta Scientiarum Naturalium Universitatis Neimongol · 2004

State machine(SM) implementation should meet reusability on the level of implementation.This can be a useful complement to the modularity of the UML SM to address the problem of explosion. The most common implementation technique of the SM is state pattern and there is a number of extended pattern based on it to cater to the solutions of different problems.However,most of them do not consider the issue of reusability of the SM at the level of implementation.An efficient,lightweight reusable state pattern which satisfies the requirement is provided.On the basis of the proper encapsulation mechanism, the approach achieves both fined-granular and large-granular reusability on the level of implementation.

Read the paper · More papers on PaperTik