摘要
为了克服协议软件设计与实现中的复杂性,对协议软件状态机建模过程和消息处理过程进行研究,提出一种基于有限状态机机制和事件驱动机制的面向对象方法,用以设计事件发生器、事件分发器和消息格式转换器,同时分离协议栈消息处理逻辑和状态逻辑,使其便于复用和扩展,由此改善协议软件的设计。将新方法应用于GSM(Global System for Mobile Communications)通信协议栈的软件设计,并对所设计的软件进行测试,结果显示所设计软件可靠性和稳定性良好。
To simplify the design and implementation of protocol software,the state machine modeling process and message handling process was studied.An object-oriented method based on finite state machine mechanism and event-driven mechanism was proposed to design event generator,event dispatcher and message format converter,and message processing logic and state machine logic of protocol stack was separated,which leads to the improvement of protocol software's reusability and expansibility.Therefore,the design of the protocol software will be improved.The new method was used in the design of GSM(Global System for Mobile Communications) communication protocol software,the test results shows that the software has a good reliability and stability.
出处
《西安邮电学院学报》
2012年第6期78-82,共5页
Journal of Xi'an Institute of Posts and Telecommunications
关键词
有限状态机
事件驱动
面向对象
协议开发
finite state machine
event-driven
object-oriented
protocol development