一种事件驱动有限状态机的编程实现框架  被引量:7

A Programming Framework of Event-driven Finite State Machine

在线阅读下载全文

作  者:李伟[1] 门佳[1] 

机构地区:[1]河南工业职业技术学院计算机工程系,河南南阳473000

出  处:《计算机与现代化》2014年第6期116-119,共4页Computer and Modernization

摘  要:在现代程序设计中,网络协议实现、游戏角色建模等很多复杂场景切换问题都可以用有限状态机来描述。本文将有限状态机概念与事件驱动模型结合,设计一种可复用的代码模板实现各状态转换的动态管理。该方法简洁高效,模块逻辑清晰,提高了系统的健壮性。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.

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

分 类 号:TP273[自动化与计算机技术—检测技术与自动化装置]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象