自适应自动程序设计及其在自动售货机中的应用

余世明、丁国正、刘立峰

中国工程科学 ›› 2007, Vol. 9 ›› Issue (11) : 147-150.

PDF(386 KB)
PDF(386 KB)
中国工程科学 ›› 2007, Vol. 9 ›› Issue (11) : 147-150.

自适应自动程序设计及其在自动售货机中的应用

  • 余世明、丁国正、刘立峰

作者信息 +

A Self-adaptive Automatic Program Designand Application in Vending Machine

  • Yu Shiming、Ding Guozheng、Liu Lifeng

Author information +
History +

摘要

对程序故障的处理,通常可以使用返回值或异常来报告。但当状态模型中的程序出现故障后,使程 序仍能回到出现故障处的状态或做进一步的处理,这是返回值或异常做不到的。针对自动处理的实现,提出 了采用组合编码和状态冗余设计相结合的自动程序设计思想,给出了它的一个结构模型和算法。模型通过 减少程序的状态切换故障(预防)和增加系统的故障恢复能力(治疗)来实现这个目标。最后,将这个设计模 型部分成功地应用到自动售货机上,实际运行效果良好。

Abstract

To deal with program fault, the method is usually to report them with return-value or emergency.  But, when the program fault emerges in the state-orient model, how to make the program return to the state the fault point belong to or take further corresponding actions, the return-value or emergency can't do. In order to realize processing the fault automatically, this article presents automatic program design with uniting combined coding and state redundant design, and proposes its frame model and algorithm. The model is used for decreasing faults of state-switch("prevent" ) and increasing capability of fault-restore("cure" ). At last, part of the results presented in this paper are applied to a vending machine project and the tests show that the results are satisfactory.

关键词

自适应 / 状态冗余设计 / 自动程序设计 / 故障恢复 / 自动售货机

Keywords

self-adaptive / state redundant design / automatic program design / fault-restore / vending machine

引用本文

导出引用
余世明,丁国正,刘立峰. 自适应自动程序设计及其在自动售货机中的应用. 中国工程科学. 2007, 9(11): 147-150

参考文献

基金
浙江嵌入式系统与应用重大专项资助项目(2005c11011)
PDF(386 KB)

Accesses

Citation

Detail

段落导航
相关文章

/