The Simulation view is used to manually raise events and to inspect and modify variables of a running simulation. By default, that view is located on the right-hand side of the SC Simulation perspective, see figure "Simulation view" for an example.
The Simulation view groups events and variables by their interfaces. The unnamed interface appears as default in the interface list. Click on the small triangle left from an interface’s name to show or hide that interface’s contents, i.e., events and variables.
The simulation view also displays time events, provided the statechart uses time constructs like after or every. Press or release the "show time events" button to toggle between displaying and not displaying time events. You can click on a time event to raise it, i.e., you don’t have to wait for 24 hours to elapse in real time until the "after 24 * 60 * 60 s" transition fires.
You can have multiple simulation instances running at the same time. They may simulate the same or different statecharts. Use the simulation view’s drop-down menu to switch between simulation instances.
A digital clock right from the drop-down menu displays the virtual time elapsed in the simulation. It pauses while the simulation is suspended.
The Simulation view
Depending on your screen resolution and font size settings, you might not be able to spot the Simulation view by its name, because the tab containing it is quite narrow and might not provide enough space for displaying the title. Hover over the tabs to reveal their respective titles in a pop-up window.
Figure "The SC Simulation perspective" is demonstrating this: The user has hovered the mouse pointer over a tab that just displays the first letters of its title. However, a pop-up window right under the pointer shows the tab’s full title „Simulation”.
You can interact with a running simulation by manually raising events and by inspecting and modifying variables. You can do so at any point in time, but in most cases you will do it while the simulation „sits idle” at its active state and waits for an event to trigger a transition.
To raise an event, proceed as follows:
To inspect a variable’s value, proceed as follows:
Watch the displayed values change as the simulation progresses and actions in states or transitions are executed that modify the variables' contents.
To manually modify a variable’s value, proceed as follows:
[Enter]. The new value is assigned to the variable and replaces the former value.