Objective-C中的有限状态机 [英] Finite State Machine in Objective-C
本文介绍了Objective-C中的有限状态机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人对用Objective-C代码编写的基本的紧凑型有限状态机/自动机有解决方案吗?
Does anyone have a solution for a basic, compact Finite state machine/automata written in Objective-C code?
我对可重用组件感兴趣,以便FSM添加了状态并定义了使用可重用状态类的操作.
I am interested in reusable components so that the FSM have states added and actions defined that use reusable state classes.
推荐答案
您想要的是一个规则引擎...奇怪的是,我只能为Objective-C(BDRuleEngine)找到一个,而这已经过时了:
What you want is a rules engine... oddly, I was able to find only one for objective-C (BDRuleEngine) and that is rather out of date:
http://eschatologist.net/bDistributed.com/index.html
但这可能是最好的起点,除非您想移植一些东西.
It might be the best starting point though, unless you want to port something.
这篇关于Objective-C中的有限状态机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文