事件结构与配置文档
可以在配置文档里面驱动事件结构吗?就是说在配置文档里面写好顺序与时间延迟,加载进去以后就可以按顺序驱动事件结构,不知道这样能否实现? 可以。。。。你用machine state试试 为什么会有这样的想法呢,
使用状态机就好了
回复 #3 lgh269 的帖子
状态机?什么意思?
因为我想在配置文档里面把程序的执行顺序定义好,这里面可能会有某步重复执行,而且执行时间较长
所以用顺序结构很难实现,我才会想用事件结构的!
回复 #2 飞雨天 的帖子
两位的意思都是用状态机吗?怎么在配置文档里面使用状态机,有具体的例子吗?
非常感谢! 我这里有个老外写的关于洗衣机的statemachine,传上去给你看下
结合labview的state machine model(在labview的模般里,你可以把另外几个和它一起的摸板都给学习下,对以后写程序很有帮助),自己好好琢磨,下面是一段文字,你看看,如果知道阿兰。图灵和他的图灵机的话,你理解起来会很容易的:
Alan Turing first proposed the state machine in 1936. He envisaged a box with a paper tape input (input alphabet), a set of states (and start states), and a mechanism for mapping the input to the next state.
Definition:A state machine is a conceptual machine with a given number of states; it will only be in one of the states at any given time. State transitions are changes in state caused by input events. In response to an input event the system may transition to the same or a different state, while an output event may be optionally generated.
[ 本帖最后由 飞雨天 于 2007-6-15 20:11 编辑 ]
回复 #6 飞雨天 的帖子
哦好的
我再琢磨琢磨,非常感谢啊
页:
[1]