对于状态机响应的每个操作或事件,都使用属性别名来确定与每个已定义的相关性属性对应的输入的位置。
For each operation, or event, that the state machine responds to, a property alias locates the input that corresponds to each defined correlation property.
设备会用两种状态来表示,即可用或已定义,用这两种状态表示设备是否可以使用。
Devices can be presented in one of two states-available or defined-denoting whether the device can be used.
这些规则的代码可以在update函数(参见清单5)内找到,它迭代2 - d空间以决定根据已定义的规则,状态如何转换。
These rules are encoded in the update function (see Listing 5), which iterates through the 2-d space to determine how states transition per the defined rules.
应用推荐