This introduction assumes that you are already familiar with the basic concepts of a Petri Nets, if not please consider starting with the Introduction to Petri Nets sections TODO: .
The TAPAAL Main Window consist of the following components (see figure):
The content if each area will adopt based on the selected Petri Net features in the new net dialog.
The GUI consist of two main modes, editor mode aka. normal mode (shown above) and simulation mode (see section simulation). The current mode is indicated by the button in the toolbar, when pressed (as in depicted) the GUI is in simulation mode.
In the following section we will break down each of the main areas further.
The main menu contains links to all features in the program, and is handy for looking up shortcut keys (written left of the action).
The toolbar contains a quick alternative to using the Main Menu for a number of often used tasked.
The toolbar can be divided into five main sections:
Contains tabs for each open model. Switch between models by clicking on a tab. Use the (x) to close a tab.
The the side menus content depends on the current mode (here shown edit mode) and selected modeling features. The menu consists of a number of widgets, specific widgets can be shown and hidden from the “View” to fit your need.
In general a widget is marked by a border. The top dropdown menu allows you to select between different modes or values. Below is a list of values.
In the button row you can add, edit or create new elements by selecting a element and pressing the appropriate button.
You can resize a widget to fit your needs, by dragging the border with the mouse.
You can change the order of a list by selecting an element and using the up and down arrows to rearrange elements. You can sort the list alphanumerically by selecting the icon. Notice that the sort icon might be hidden on smaller screen.
For more details about features of individual widgets please consult the following sections: editor, simulation, verification, components, constants TODO:
This is the place you can draw and simulate Petri Nets. In editor mode you can select any place or transition of the toolbar and click the canvas to place them.
You can connect a place and transition by an Arc, by pressing a arc button on the toolbar and clicking between an place and transition.
To edit the properties of a specific place, transition or arc, you can double click it, or right click and select Edit
If the net size exceeds the current canvas in size, you can use the scrollbars below and to the right of the canvas to move around. You can also navigate using the mouse scroll wheel or by right clicking and dragging on the canvas.
You can increase or decrease the size of elements on the canvas by using zoom. Select a zoom level from the toolbar or main menu, or zoom using hotkey Ctrl + mousewheel
or Ctrl + J
/ Ctrl + K
.
By default TAPAAL will align all components to the grid. You can customize the size of the grid using the View - Cycle Grid
menu option or by selecting hotkey G
.
The grid cycles between 3 grid sizes and no grid. If a grid is used elements will automatically snap to the grid. You can also force all elements to align with the grid by selecting View - Align to Grid
.
See more in section editor TODO:
The feature indicator will display the current modeling features (and semantics) for the open net. You can at any time change the features available by clicking the feature indicator. A new net will be opened with the required modeling features enabled/disabled.
If you remove a feature, you will be prompted to confirm and the used feature will be removed from the net (best effort).