ea how-to run simulations

Post on 16-Apr-2017

85 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

1Jan. 2016

EA Simulations

Model Simulations

2Jan. 2016

EA Simulations

Simulations may be run using the following diagram types: State, Activity, Sequence In EA Ultimate Edition it is also possible to run simulations of BPMN diagrams

You can record, save, export, and import simulations as XML

3Jan. 2016

EA Simulations

The workspace layout shown below was created for running simulations. It has some of the more useful windows for this purpose.

Simulati

on Window

Call Stack

Project Browser

Recording H

istory

Breakpoints

&

Markers

An asterisk at the front of the workspace name indicates it was created by a user (i.e. not a standard view that comes with the product.)

4Jan. 2016

EA Simulations

In the EA repository, the Help node includes links to a video and a PowerPoint deck showing how to set up a custom workspace.

5Jan. 2016

EA Simulations

The EA repository also includes an example Simulation, under ‘Reference Models.’

6Jan. 2016

EA Simulations

The simulation may be started from the menu bar or by right-clicking on the diagram (see below)

7Jan. 2016

EA Simulations

The Activity Diagrams from multiple use cases may be strung together in any order and invoked from ‘Action’ elements Action elements are available for selection from the diagram toolbox for Activity Diagrams Within an Action you can specify JavaScript based actions under ‘Effect’

8Jan. 2016

EA Simulations

pause/resume

Step-by-s

tep execution

What’s in

the Call S

tack

Threads and ca

lls

While the simulation is running, it may be paused/resumed

No Breakpoints

in

this sim

ulation

9Jan. 2016

EA Simulations

If you run a manual simulation (as opposed to an interpreted simulation) you will be prompted at each decision point.

10Jan. 2016

EA Simulations

Here sim.tripCount is initialized to value 1

Here sim.tripCount is incremented

If sim.tripCount < 2 the loop executes again

A control variable (“trip count”) can be used to control looping.

Note: the variable sim.tripCount must be prefixed “sim.” to be recognized by the Simulator

11Jan. 2016

EA Simulations

End

top related