
自适应自动程序设计及其在自动售货机中的应用
余世明、丁国正、刘立峰
A Self-adaptive Automatic Program Designand Application in Vending Machine
Yu Shiming、Ding Guozheng、Liu Lifeng
对程序故障的处理,通常可以使用返回值或异常来报告。但当状态模型中的程序出现故障后,使程 序仍能回到出现故障处的状态或做进一步的处理,这是返回值或异常做不到的。针对自动处理的实现,提出 了采用组合编码和状态冗余设计相结合的自动程序设计思想,给出了它的一个结构模型和算法。模型通过 减少程序的状态切换故障(预防)和增加系统的故障恢复能力(治疗)来实现这个目标。最后,将这个设计模 型部分成功地应用到自动售货机上,实际运行效果良好。
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.
自适应 / 状态冗余设计 / 自动程序设计 / 故障恢复 / 自动售货机
self-adaptive / state redundant design / automatic program design / fault-restore / vending machine
/
〈 |
|
〉 |