Skip to main content

Transitions configuration

Set up transitions between the three States created in the previous operation. In the State Machine Editor, transitions are set using Transitions. This transition consists of a Sender, Condition, and Action. Therefore, if the set Condition is evaluated as "true," the set Action is executed.

Transition Configurations

The Transition function of the State Machine Editor is used to set up transitions between states. Transitions are indicated by connecting each state with an arrow.

  1. Drag a Transition from the toolbar in the upper right corner of the state machine editor, and drop the dragged transition into the "Car_Cluster" State (Transition start side).
    • A Transition (arrow) appears on the state machine editor and is in a dragging state.
      drawing-4-1706852745.png


  2. Extend the Transition (arrow) to the "Incoming_Call" State (Transition end side) and click.
    • The two states, "Car_Cluster" and "Incoming_Call", are connected by arrows.
      drawing-4-1706852802.png


  3. With Transition selected, from the lower left of the State Machine Editor panel, click [ Fusion... ].
    • The panel will switch to the Fusion panel and the Fusion diagram for the Transition will be displayed.
    • The connector (Condition) in the upper right corner of the Transition Fusion node is connected to the Check Click Fusion node.

  4. Drag and move the mouse over the Actions connector in the lower right corner of the Transition Fusion node and release the left mouse button anywhere.
    • The [ Select Behavior ] dialog will appear.
      drawing-4-1707890066.png


  5. Enter "Transition Request" in the search field at the top of the dialog.
    • The list of behaviors in the dialog will be narrowed down to [ Action>Transition>Transition Request ].

  6. Double-click Transition Request.
    • The Transition Request Fusion node will be linked to the Actions connector of the Transition Fusion node.

  7. The following settings are made for the Transition Request Fusion node.
    • Set the scene to be transitioned to in the [ Identifier ].
    • This operation completes the transition settings from "Car_Cluster" to "Incoming_Call".
    • Click the up arrow icon in the upper right corner of the Fusion panel to switch the display to the State Machine Editor.
      RequestType Activate
      Identifier Solution>Scenes>Incoming_Call
      drawing-4-1706853126.png

  8. Repeat the step 1 through step 7 above to set the following five transitions.
    • All RequestType will be Activate (default).
      Transition Identifier
      Incoming_Call to Car_Status Solution>Scenes>Car_Status
      Car_Status to Car_Cluster Solution>Scenes>Car_Cluster
      Solution>Scenes>Car_Cluster>Car_Status Solution>Scenes>Car_Status
      Car_Status to Incoming_Call Solution>Scenes>Incoming_Call
      Incoming_Call to Car_Cluster Solution>Scenes>Car_Cluster

  9. When all settings have been completed, the diagram below shows the state.

    drawing-4-1706772113.pngdrawing-4-1712032875.png

The above settings set the scene to be displayed when the transition from each scene occurs.


Handle Control State

In the previous section, you used Transition to set the transition between each scene. Next, you will set the conditions under which these transitions occur. The Transition you added has a Condition behavior called "Check Click" initially set. Therefore, a "Handle Control State" is added to the target node in order to send state events from each scene as triggers to this Condition behavior.

  1. From the Solution Explorer, click [ Scenes>Car_Cluster ].
    • "Car_Cluster" will appear in the scene tree.
    • An extra scene tree will appear to the right of the scene tree.

  2. Click on [ Cluster>StatusTop>Telltales ] in the scene tree to expand it.
    • The group nodes Brake, AirBag, Engine, OpenDoors, IndicatorRight, and IndicatorLeft will be displayed.

  3. Click on the IndicatorRight group node and click on [ Fusion... ] in the Extra Scene tree.
    • Switch to the Fusion panel and the Fusion diagram of IndicatorRight will be displayed.
      drawing-4-1707890561.png


  4. Drag and move the mouse over the connector on the right side of the IndicatorRight Fusion node in the Fusion diagram and release left click anywhere.
    • [ Select Behavior ] dialog will appear.

  5. Enter "Handle Control state" in the search field at the top of the dialog.
    • The list of behaviors in the dialog will be narrowed down to [ Control>Internal>Handle Control state ].

  6. Double-click the "Handle Control state".
    • Handle Control state Fusion node will be linked to the IndicatorLeft Fusion node.
      drawing-4-1706853401.png


  7. Perform the step 3 through step 6 above for "IndicatorLeft" as well.
    • The same settings are made for "IndicatoRight" and "IndicatorLeft" in the "Car_Status" and "Incoming_Call" scenes.

With the above settings, State events are sent to Condition "Check Click" as State conditions.

Transition Conditions

Finally, to connect the event destination of the Handle Control State to the Condition, the configuration work is done in the State Machine Editor.

  1. On the State Machine Editor, select Transition from "Car_Cluster" to "Incoming_Call".

  2. With Transition selected, from the lower left of the State Machine Editor panel, click [ Fusion... ].
    • The panel will switch to the Fusion panel and the Fusion diagram for the Transition will be displayed.
    • The connector (Condition) in the upper right corner of the Transition Fusion node is connected to the Check Click Fusion node.

  3. Click the Select item icon to the right of the [ Sender ] in the Check Click Fusion node.
    • [ Choose Item ] dialog will appear.

  4. Select the IndicatorRight node of the scene that will be the source of the screen transition from the list on the left side of the dialog and press the [ OK ] button in the dialog.
    • In this case, select [ Solution>Car_Cluster>Cluster>StatusTop>IndicatorRight ].
    • IndicationRight will appear in the Sender of Check Click.
      drawing-4-1706853557.png


  5. Click on the up arrow icon in the upper right corner of the Fusion panel.
    • The display switches from the Fusion panel to the State Machine Editor panel.

  6. Repeat the above operation for other interstate transitions to set the Sender.
    • Specify IndicatorRight for clockwise transitions and IndicatorLeft for counterclockwise transitions.
      Transition Check Click>Sender
      Incoming_Call to Car_Status Incoming_Call
      Car_Status to Car_Cluster Car_Status
      Car_Cluster to Car_Status Car_Cluster
      Car_Status to Incoming_Call Car_Status
      Incoming_Call to Car_Cluster Incoming_Call

The above steps completes the setup for executing transitions between States based on triggers and events received from the scene. Confirmation of the transitions setting on this page will be performed on the next page.