Does C# include finite state machines?

2019-01-30 12:07发布

I've recently read about the boost::statechart library (finite state machines) and I loved the concept.

Does C# have a similar mechanism ? Or can it be implemented using a specific design pattern?

7条回答
爱情/是我丢掉的垃圾
2楼-- · 2019-01-30 12:39

I maintain an open-source project which implements (among other things) a generic finite state machine for .NET. It is built on top of QuickGraph, so you get many graph-analysis algorithms for free.

See this page for more information about the project, and specifically "Jolt.Automata : Finite State Machines" for more information about the feature.

查看更多
登录 后发表回答