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

基于LPC2134和UCOSII的自动售货机状态机的研究与实现
引用本文:罗信,金瓯.基于LPC2134和UCOSII的自动售货机状态机的研究与实现[J].计算机系统应用,2010,19(9):241-244.
作者姓名:罗信  金瓯
作者单位:中南大学,信息科学与技术学院,湖南,长沙,410085
基金项目:国家科技攻关计划(2003ba104c)
摘    要:由于售货机的功能不断增多,售货机控制系统也相应得不断变得庞大,这就使原来的面向过程的开发方法变得越来难以扩展和维护,根据自动状态机的理论,提出一种在售货机上的状态机模型,该模型对系统状态进行抽象和分离,建立了系统状态表和状态转换表,是一种网状的状态机模型。根据系统事件和当前状态来查找系统状态转换表,如果有匹配项,则进行状态转换。经过实验表明,该模型能解决系统的代码庞大问题,并且使系统开发变得易于维护。

关 键 词:售货机控制  状态机  状态转换
收稿时间:2009/12/28 0:00:00
修稿时间:2/8/2010 12:00:00 AM

FSM of Vending Machine Controller Based on Lpc2134 and UcosII
LUO Xin and JIN Ou.FSM of Vending Machine Controller Based on Lpc2134 and UcosII[J].Computer Systems& Applications,2010,19(9):241-244.
Authors:LUO Xin and JIN Ou
Affiliation:(Information and Technology College, Central South University, Changsha 410085, China)
Abstract:Due to the increasing number of functions of the Vending Machine, the VMC(Vending Machine Controller) is becoming more and more complex, so it is becoming more and more difficul to extend and maintain the developing method used before. According to the theory of FSM, this article suggests one FSM Model on the Vending Machine. The abstract model separates and divides the system into ones to establish a list of system states and transformations. If an event occurred, it would search the system transformation list by the system event and the current state. If there is a record that matches the state and event, then the state is transformed to the NextState defined in the record. Based on the experiment, the model can solve the big problem of the system and make the system development easier to maintain.
Keywords:VMC  FSM  state transform
本文献已被 维普 万方数据 等数据库收录!
点击此处可从《计算机系统应用》浏览原始摘要信息
点击此处可从《计算机系统应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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