节点文献
一种通用状态机引擎设计与应用
Design and Application of a Universal State Machine Engine
【摘要】 易复用的软件框架可降低软件维护成本并提高开发效率。基于层次状态机,设计并实现了一个面向对象的高扩展、易复用的状态机引擎。它采用基于事件驱动的状态驱动模型,提供资源管理、异常处理以及一个基于模版的代码生成器。文中首先介绍了状态机引擎的整体框架设计,然后描述并实现了引擎框架中采用的关键机制,最后将其应用到实际项目中。
【Abstract】 An easily reusable software framework can reduce software maintenance costs and improve development efficiency.Based on hierarchical state machine,a highly scalable,object-oriented,reusable state machine engine is designed and implemented which is based on event-driven model,with resources management,exception handling,and a template-based code generator.In this paper,the overall framework of the state machine engine and the key mechanism used are described in details.In the end,the framework is applied to a real project.
【关键词】 软件框架;
复用技术;
层次状态机;
面向对象;
【Key words】 software framework; software reuse; hierarchical state machine; objects oriented technology;
【Key words】 software framework; software reuse; hierarchical state machine; objects oriented technology;
【基金】 国家科技重大专项项目资助(2010ZX03004-001-02,2011ZX03002-003-02,20122012ZX03002-004-004);广东省部产学研重大基金项目资助(2010A090200082)
- 【文献出处】 实验科学与技术 ,Experiment Science and Technology , 编辑部邮箱 ,2012年06期
- 【分类号】TP311.52
- 【被引频次】2
- 【下载频次】62