Skip to content

Represent a FSM graphically

Emmanuel Chebbi edited this page Feb 8, 2018 · 3 revisions

Table of Contents

1. Define a graphical editor

A graphical editor can be defined with Sirius. To this end, go back to the first Eclipse and:

  1. Right-click on the *.melange file
  2. Select GEMOC Language
  3. Click on Generate Animatior Project for language

A new <melange-project-name>.debug.design project should be created. Here, it is ice.master.fsm.design.

This project contains a file description/<language-name>.odesign that can be edited to configure the graphical editor. See Sirius Guide for further details. A GEMOC tutorial also shows how to set up an animation.

2. Debug with the Model Animator

Create the representation

Once the editor is ready, we can use it to display the model. To test it:

  1. Launch a new GEMOC with Run > Run Configurations... > Eclipse Application
  2. Create a new Representation of your model.

Launch the Model Animator

It is the same as Executing the model with the Model Animator except that the Animator field must be filled with the path to the .aird representation file.