Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
Trigger Sets and Auto-Firing
Trigger Sets are a powerful means of automating and streamlining the execution, testing and validation of simulation models. By re-using sets of triggers (with or without parameters) it is possible to quickly and efficiently walk through many simulation scenarios, either manually or automatically using the 'auto-firing' tool.
Access Analyzer | Breakpoints & Events > Simulation Breakpoints
About Trigger Sets
Topic |
Detail |
See also |
||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Trigger Sets |
|
|
||||||||||||
Managing Sets |
Trigger sets can be created by manually dragging triggers into the active triggers list and then using the Manage Trigger Sets drop menu to save a new set. It is also possible to save a set of triggers built up during a single simulation setting as a new set. This is convenient for creating multiple test paths through a simulation, based on saving the manually fired triggers for each test case. The Manage Triggers Menu
You can also delete a set and delete all sets for the current diagram. It is also possible to load a set, modify parameters and/or order of firing and save the set with a new name. This is a convenient method for rapidly creating a suite of simulation test scripts.
|
|
||||||||||||
Using Sets |
To use a trigger set you first select it by name from the trigger set drop list as in the example image below. Once selected it loads the trigger list window with the defined trigger set. Note that the special item <no event set> means no set is currently selected. At the start of each simulation, if a set is selected, it will be loaded afresh for the next run. If <no event set> is selected, the trigger list will be cleared.
Once you have selected a trigger set and the list of triggers loaded you have two options:
|
|
||||||||||||
Auto-Firing |
Auto-firing is a convenient way of streamlining your simulations. Once you have loaded a trigger set, if you select the auto-fire button (below) then Enterprise Architect will automatically pick up waiting triggers when it reaches an impasse in the simulation. In practice, this means that trigger sets matching exactly a path through the simulation with automatically run without your intervention. As you can save any number of trigger sets with different pathways and trigger parameters, you can effectively and quickly test and work with many different scenarios.
|
|
||||||||||||
Auto-Firing Rules |
When a simulation runs with auto-firing enabled, Enterprise Architect will wait until a point is reached where the simulation is 'blocked' or stable, waiting on one or more triggers to advance the simulation. At that time, the first unfired trigger in the list will be picked up and fired into the simulation. The outcome depends on the relevance and perhaps on the parameters of the trigger.
|
|