摘要
提出一种用面向对象的方法来实现协议。协议由FSM说明,然后FSM由一组相关的对象实现。对象的成员函数是接口事件,它们激发状态变迁。与状态变迁相联系的行为构成成员函数的主体。当状态变迁产生时,一个对象成为另一个对象。文中给出了一个实例,还提出一个软件工具,使设计者可以用图形方式编辑状态机,并且自动产生C++的类定义。
In this paper, an object-oriented-based approach to protocol software implementation is presented. A protocol is specified by an FSM, and the FSM is implemented by a group of related object. In our method, each state is implemented by an object. The member functions of an object are the interface events that trigger state transitions, and actions associated with state transitions constitute the body of the member functions. An object becomes another object if a state transition is enabled. A real example is given for illustration. We also present a software tool that lets a designer edit a state machine graphically, and generates C++ class definitions automatically.
出处
《计算机工程与设计》
CSCD
北大核心
1998年第6期19-25,共7页
Computer Engineering and Design