有限状态机的一种实现框架  被引量:39

Implementation framework of finite state machines

在线阅读下载全文

作  者:徐小良[1] 汪乐宇[1] 周泓[1] 

机构地区:[1]浙江大学数字技术及仪器研究所,浙江杭州310027

出  处:《工程设计学报》2003年第5期251-255,共5页Chinese Journal of Engineering Design

摘  要:有限状态机(FSM)是对反应式系统建模的一种强大工具.虽然一些高级特征和可视化状态图的引入,使FSM的表达能力更强,但是其实现往往存在复用性差,维护困难等问题.传统的FSM实现模式,如结构化方法和State模式,由于软件结构简单,与状态图不能有效匹配,难以解决这些问题.通过引入良好的数据结构和事件触发机制,提出了一种面向对象的高度结构化的FSM实现框架,并给出了事件触发转换的调度算法.新框架清晰地表达了FSM中的所有主要元素及它们之间的关系,并将行为部分与结构部分相分离,不仅改善了软件的灵活性和重用性,而且提高了系统的健壮性与可维护性.Finite state machines(FSMs) provide a powerful way for modeling reactive systems. Although FSM has stronger expression ability after it is extended with many advanced features and visual statechart diagrams, its implementation often suffers from bad reusability and maintenance problems. The traditional ways for FSM implementation, such as structure approach and state pattern, do not address these problems because their software structures are too simple to match the statechart diagrams. By providing more structure and event\|triggered mechanism, a new object\|oriented FSM implementation framework is presented as well as the event\|dispatching algorithm. The new software framework explicitly describes all the core elements and associations between these elements in the FSM and separates the behavior from the structure. Therefore, not only can this framework make the software more reusable and flexible, but also can improve the maintenance and robustness.

关 键 词:有限状态机 反应式系统 实现框架 状态模式 

分 类 号:TP23[自动化与计算机技术—检测技术与自动化装置] TP311[自动化与计算机技术—控制科学与工程]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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