Each composite state includes a sub-state machine.
每个复合状态都包括一个子状态机。
Figure 12: UML state machine for timesheet (more states).
图12:时间表的UML状态机(多种状态)。
A dialog opens asking in which folder the state machine should be placed.
将随即打开一个对话框,询问应将状态机放置在哪个文件夹中。
A state machine awaits operations to transition from one state to another.
状态机等待操作从一个状态转换到另一个状态。
Which type or types of entities is a certain sub-state machine suitable for?
某个子状态机适合哪种或哪些类型的实体?
Remember that the NFA is a state machine that implements the transition diagram.
请记住,NFA是一个实现转换图的状态机。
This function is relatively trivial, and does not require using a state machine.
该函数比较简单,没必要使用状态机。
As you might guess, the initial state is the state in which a state machine starts.
正如您可能猜测到的,初始状态是一个状态机开始时所处的状态。
At any given time, a state machine has one active state, also called a current state.
在任何一个给定的时间,状态机具有一个活动状态,也称为当前状态。
As many of you know, a state machine is a mathematical expression of a system's state.
正如很多人所了解的那样,状态机是一种关于系统状态的数学表达式。
NFA is simply a fancy word for a state machine that implements the transition diagram.
NFA仅仅是一个用于表示实现转换图的状态机的华丽词语。
In other words, we need to identify the operation that gets the state machine rolling.
也就是说,我们需要标识让状态机运转的操作。
A state machine has a mixture of nodes representing states and transitions between them.
状态机混合了表示状态的节点以及节点间的转换。
If the number is huge or indefinite, a state machine is probably not the right approach.
如果数字很大或者不确定,则状态机也许不是正确的解决方法。
You might think it would be simpler just to build a state machine and use it as a library.
您可能会想,仅仅构建一个状态机并将它当作库来使用岂不更加简单。
The finite state machine pattern used to design this behavior makes its logic transparent.
设计此行为所用的有限状态机模式使逻辑清晰透明。
At this point, I'm going to steer away from the details of implementing the state machine.
现在,我将避开实现状态机的具体细节,将主要介绍状态机与插件的接口。
You can also query the state machine? S current state to determine an operation? S validity.
您也可以查询状态机的当前状态来确定操作的有效性。
A transition does not have to occur based on the state machine component receiving a message.
状态转换并不一定要基于接收消息的状态机组件出现。
The state machine moves from one valid state to the next based on external events it receives.
状态机根据接收到的外部事件从一个有效状态转移到下一个有效状态。
This process is long running so that it manages persistence of the state of the state machine.
此进程可以长时间运行,因此它可以管理状态机状态的持久性。
Hence, the second rule may be a much better candidate for something resembling a state machine.
因此,第二个规则也许更适合于类似于状态机的机制。
However, this was simply a matter of choice; we could have used an interaction or state machine.
然而,这只是一个选择问题;我们可以使用交互作用或者状态机。
A correlation set tells the state machine which running instance to use for the given input data.
相关集告知状态机对于给定的输入数据使用哪个正在运行的实例。
How the state machine responds to a given event depends on the current state of the state machine.
状态机如何响应一个给定事件取决于该状态机的当前状态。
Since this is where the state machine starts, every state machine must have exactly one initial state.
由于这是状态机启动的位置,因此每个状态机均必须有一个确切的初始状态。
When deployed to a server, your state machine could have several instances, each in a different state.
当部署到服务器时,您的状态机可以具有多个实例,每个实例处于不同的状态中。
Then you saw how to test and debug an application, including some fine points of testing a state machine.
然后,您了解了如何测试和调试一个应用程序,包括一些测试状态机的要点。
Developers have used the finite state machine design pattern to organize event-driven programs like this.
开发人员可以使用有限状态机设计模式来组织这样的事件驱动程序。
We mentioned in the previous article that a business state machine is a special type of business process.
在上一部分中曾经提到,业务状态机是一种特殊类型的业务流程。
应用推荐