首页 | 本学科首页   官方微博 | 高级检索  
     

一种事件驱动有限状态机的编程实现框架
引用本文:李伟,门佳.一种事件驱动有限状态机的编程实现框架[J].计算机与现代化,2014,0(6):116-119.
作者姓名:李伟  门佳
作者单位:河南工业职业技术学院计算机工程系,河南南阳473000
摘    要:在现代程序设计中,网络协议实现、游戏角色建模等很多复杂场景切换问题都可以用有限状态机来描述。本文将有限状态机概念与事件驱动模型结合,设计一种可复用的代码模板实现各状态转换的动态管理。该方法简洁高效,模块逻辑清晰,提高了系统的健壮性。

关 键 词:有限状态机  事件驱动  状态切换  可复用框架

A Programming Framework of Event-driven Finite State Machine
LI Wei,MEN Jia.A Programming Framework of Event-driven Finite State Machine[J].Computer and Modernization,2014,0(6):116-119.
Authors:LI Wei  MEN Jia
Affiliation:(Department of Computer Engineering, Henan Polytechnic Institute, Nanyang 473000, China)
Abstract:In modern programming, network protocol, game roles modeling and many other issues which include complex state switches can be described in finite state machine. In this paper, the theory of finite state machine is combined with event-driven model, a reusable code template is designed to dynamically manage the state switch sense. This method makes logic of the code module clear and the system healthy.
Keywords:finite state machine  event-driven  state switch  reusable framework
本文献已被 维普 等数据库收录!
点击此处可从《计算机与现代化》浏览原始摘要信息
点击此处可从《计算机与现代化》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号