Skip to main content

Structure

Description

A state machine consists in a set of states, a set of possible inputs and rules to trigger transitions to another state or to itself for any of the possible inputs.

States

A state denotes a given logical status. Each state machine shall have an initial state, which is the entry point for the state machine. When a state machine is executed it starts always in the initial state.

drawing-4-1676449821.png

A state can have a set of actions associated when the state is activated (On Entry) and when deactivated (On Exit). All actions defined for the state changes are executed when entering or leaving the state.

drawing-4-1676449833.png

Transitions

One or more transitions can be defined between two states. A transition is executed when the associated condition is met.

A transition aggregates a sender object, a condition and an action. If the condition is evaluated to true, the action is executed. Transitions are evaluated based on their logical order according to their definition.

drawing-4-1676449854.png

CGI Studio provides a large number of standard events for its controls and a predefined set of conditions to choose from.

drawing-4-1676449865.png

Transitionの優先順位Priority of Transitions

同じステートに複数のTransitionが接続されている場合は、2つの方法によりTransitionの優先順位を設定することができます。複数のTransitionの発生条件が同一の場合などに有用な機能です。When multiple transitions are connected to the same state, the priority of the transitions can be set in two ways. This function is useful when the conditions for the occurrence of multiple transitions are the same.

  1. Setting Transition Priority in State Machine EditorツリーによるTransitionの優先順位設定Editor tree
    Transitionは、Transitions are displayed in the tree view in the upper left corner of State Machine Editorの左上のツリービューに表示されます。Transitionは、優先度が高いものから上から順に表示されます。マウスのドラッグアンドドロップ操作により順序を入れ替えることができます。下図の場合、Transition_1の優先度が最も高く、Transition_3の優先度が最も低く設定されます。Editor. Transitions can be reordered by dragging and dropping them with the mouse. In the figure below, Transition_1 has the highest priority and Transition_3 has the lowest priority.
    drawing-7-1698045617.png

  2. プロパティパネルによるTransitionの優先順位設定Setting Transition Priority in Properties Panel
    Transitionは、プロパティパネルのTransitions are displayed in Properties Panel under [Transitions] Transitions > [ Exit Transitions ]. に表示されます。Transitionは、優先度が高いものから上から順に表示されます。Transitions are ordered from highest priority to lowest priority, and can be reordered using the [ アイテムを下に移動Move Item Down ] and [ アイテムを上に移動Move Item Up ] アイコンにより順序を入れ替えることができます。下図の場合、icons. In the figure below, ExitTransitions 0 (= Transition_1)の優先度が最も高く、Transition_1) has the highest priority and ExitTransitions 2 (= Transition_3)の優先度が最も低く設定されます。Transition_3) has the lowest priority.
    drawing-7-1698045738.png

State Machine Behavior

The state machine behavior is a standard CGI Studio behavior which allows to configure a state machine instance. The associated state machine will receive all the events of the associated node and could trigger further actions as they are defined in the state machine.

drawing-4-1682657638.png