摘要
针对病理设备中嵌入式系统中的软硬件异常.利用状态机原理提出了一种新的异常处理算法.该算法首先根据不同类型的异常.得到相应的异常代码;然后根据不同的异常.利用XML形式定义的异常处理表及异常处理状态机.对该异常进行处理.首先介绍了本算法提出的背景.然后描述了它的具体设计及实现.并通过一个运行示例对本算法进行了验证分析.最后.简要讨论了如何对本算法进行扩展.
Based on the principle of finite state machine, the article presents one new exceptional handling algorithm aiming at software and hardware exceptional handling in embedded system running in pathology equipment. The algorithm retrieves exceptional code based on the type of exception at first, and then handles it with XML formatted exceptional handling table and the specific state machines. The article firstly introduces background on the algorithm and then describes the detailed design and implementation. After that, one example is also shown to verify the algorithm. Finally, it also discusses how to improve this algorithm briefly.
出处
《计算机系统应用》
2016年第8期264-268,共5页
Computer Systems & Applications
关键词
异常处理
状态机
XML
封装
exceptional handling
FSM
XML
encapsulation