| Object-Oriented software development has gained popularity in industry.Due to the excellent feature of encapsulation and modularity,object exposes its functions, through the interfaces.An object interface definition can be considered as a service definition.As commonly stated,the sequences of requests(method calls) that an object is capable of servicing constitute the object's protocol,a specification of which should be an integral part of the object's interface definition(s).The behavior protocol of object has the critical meaning in understanding and integrating the object into development.Unfortunately,protocol is rarely maintained, or lost,during the development of legacy systems.To handle the problem,this paper proposed a technical to recovery the behavior protocol of object in the form of Finite State Machine.It extracts dependency of functions through a static source-code analyse procedure and reconstruct the relations between states.The method offer an accurate and understandable result to instruct the developers in reengineering procedure. |