Author Archives: saumitt

DEVSML Studio Simulation Trace Viewer

The auto-generated code in the coupled model’s main function creates two coordinators:

  1. TraceCoordinator
  2. Coordinator

By default, TraceCoordinator is used so that it generates a Simulation Trace file when the main function is executed.

After the execution is completed, a timestamped “Simulation Run (<model name>) <timestamp>” is created in the project workspace. Note: Ensure that IDE workspace is automatically refreshed by checking this box as in figure below.

Auto refresh Eclipse workspace for generated files

                      Auto refresh Eclipse workspace for generated files

 

The generated file is vieweable as a UML Sequence Diagram in the associated PlantUml plugin. The Sequence Diagram reflects the flattened version of the coupled model. The component name reflects the fully Qualified name.

                             Autogenerated Simulation Sequence Diagram

 

DEVSML Eclipse Editor Installation

Setup

  1. Download Eclipse Mars Java-DSL version
  2. Download and Install New Software from Update Site
  3. Select DEVSML Studio
  4. Accept the license: Eclipse Public License

 

Test Installation

  • Using Eclipse Git perspective, import Git repository: https://saumitt@bitbucket.org/duniptech/fdssamples.git

Import Git repository

  • Import existing project as clone finishes

Import as Eclipse Project

  • Open the FdsSamples project in Plugin perspective and open entities.fds. Add Xtext nature if prompted

Import as Project

  • Open the PlantUml View if not open.

Open PlantUml Plugin

  • Open the atomics.fds for DEVS Statemachine visualization

PlantUml View

 

  • Open gpt.fds and gpCoupled/gpt.java and RunAs… Java Application. By default, a TraceCoordinator is used to run the simulation that generates a trace that is readily viewable as a UML Sequence diagram. 

GPT Executing

 

  • Congratulations! You have successfully installed DEVSML Editor and the backend xCore-DEVS simulation engine plugin