
A Self-adaptive Automatic Program Designand Application in Vending Machine
Yu Shiming、Ding Guozheng、Liu Lifeng
Strategic Study of CAE ›› 2007, Vol. 9 ›› Issue (11) : 147-150.
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
/
〈 |
|
〉 |