The object prototype is a good place to define nearly everything related to the finite state machine: the state table, its actions, and their parameters.
对象原型是定义与有限状态机有关的几乎任何东西的合适位置:状态表、它的操作及其参数。
State Machine ? describes the behavior of the active object.
State Machine——描述活动对象的行为。
To use the state machine, I can instantiate a Nonprofit object and call methods on it for each event, followed by a !, as in Listing 2
要使用状态机,可以实例化一个Nonprofit对象并在其上为每个事件调用方法,后跟一个 !
One possible next development step might involve refactoring the FadingTooltip code to move the basic machinery of the finite state machine into a separate object.
一个可能的开发步骤是对FadingTooltip代码进行重构,将有限状态机的基本机制转移到一个单独的对象中。
State machine diagram: a state machine diagram depicts the various states that an object may be in and the transitions between those states.
状态机图:状态机图描述了对象所处的各种状态,以及那些状态之间的变迁。
State machine diagram: a state machine diagram depicts the various states that an object may be in and the transitions between those states.
状态机图:状态机图描述了对象所处的各种状态,以及那些状态之间的变迁。
应用推荐