Run Model Simulation
A Simulation executes the model step-by-step, enabling you to validate the logic of your behavioral model. The current execution step is automatically highlighted in the model's diagram to make it easy to understand the various processes and state changes as they occur during the Simulation.
There are several ways to start a model Simulation:
- When the active diagram can be simulated, the Simulation window will process the current diagram, either by running an existing script or defining a new temporary one on the main
- When the active diagram can not be simulated, the Run button on the main Simulation window will run the Simulation for the active Execution Analyzer script
- By right-clicking on a Simulation script in the Execution Analyzer window and selecting the 'Start Simulation' option
- By right-clicking on a suitable diagram and selecting one of the 'Execute Simulation' options
There are visual cues during execution. When the Simulation is running, Enterprise Architect will actively highlight each active node for each executed step. In addition, all outgoing transitions and control flows will be highlighted, showing the possible paths forward. Elements at the end of possible paths forward will be de-emphasized to half-strength and any other remaining elements will be 90% 'grayed out'. This provides a very dynamic and easy to follow execution that continually refocuses attention on the execution context.
Simulate > Dynamic Simulation > Simulator > Open Simulation Window
Simulate > Run Simulation > Start
Edition Specific Details
In the Professional Edition, if a branch is encountered in the execution, the Simulator prompts you to choose the appropriate path to take in your execution.
Run a Simulation Using the Toolbar
Start the Simulator for the current diagram or, if the current diagram cannot be simulated, run the Simulation using the activated Simulation script.
|Activate Simulation Script
Pause the Simulation.
When the Simulation is paused, step over, step in and step out to control the Simulator's execution at the required step in the model Simulation.
Stop the Simulation.
Click on the drop-down arrow and select the type of Simulation to run:
Click on the drop-down arrow and select from a menu of options for performing specific operations on the Simulation script and output, such as Build, Run, Generate and View Breakpoints.
Vary the execution rate of the Simulation, between 0% and 100%; at:
- The Simulation tool only becomes active when a valid Simulation Execution Script is activated
- You can set a Simulation script as the current default by setting its checkbox in the Execution Analyzer window