It follows, then, that while there is no ideal state for all machines, there is an ideal state to be achieved for a given machine class.
虽然对于所有机器来说没有一种理想状态,但对于给定的机器类有一个要达到的理想状态。
Recall that a plug-in author needs three things: a place to put the implementation, a way to expose the DSL (the class methods), and a way to expose the instance methods for the state machine.
回顾一下插件制作者需要的三个条件:放置实现的位置,公开DSL(类方法)的方法以及为状态机公开实例方法的方法。
The StateMachine class is really all you need for an abstract state machine.
statemachine类实际上正是抽象状态机所需要的。
应用推荐