ea how-to run simulations

11
1 Jan. 2016 EA Simulations Model Simulations

Upload: laurence-white

Post on 16-Apr-2017

84 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: EA How-To Run Simulations

1Jan. 2016

EA Simulations

Model Simulations

Page 2: EA How-To Run 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

Page 3: EA How-To Run Simulations

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.)

Page 4: EA How-To Run Simulations

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.

Page 5: EA How-To Run Simulations

5Jan. 2016

EA Simulations

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

Page 6: EA How-To Run Simulations

6Jan. 2016

EA Simulations

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

Page 7: EA How-To Run Simulations

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’

Page 8: EA How-To Run Simulations

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

Page 9: EA How-To Run Simulations

9Jan. 2016

EA Simulations

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

Page 10: EA How-To Run Simulations

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

Page 11: EA How-To Run Simulations

11Jan. 2016

EA Simulations

End