Process Editor Menus
The Process Editor provides operations for creating and working with process models. You access these operations from the Process Editor menu bar, which contains the following menus:
Table 97: Process Editor Menus
| Menu | Description | Reference |
|---|---|---|
| File | Contains operations that relate to high-level functions such as opening and closing projects, saving scenarios, importing models, and printing graphics and reports. | "File Menu" on page 30 |
| Edit | Contains operations that allow you to edit the preferences that control program operation and to manipulate text and objects. | "Edit Menu" on page 33 |
| Interfaces | Contains operations that allow you to edit a process model’s interfaces to other processes and to the project as a whole. | Interfaces Menu |
| FSM | Contains operations for creating a state transition diagram of the finite state machine that defines the process model. | FSM Menu |
| Code Blocks | Contains operations that allow you to specify the C/C++ code that implements a process. | Code Block Menu |
| Compile | Contains operations for processing the C/C++ code of a process model. | Compile Menu |
| Windows | Lists all open editor windows and allows you to make one active. | "Windows Menu" on page 35 |
| Help | Provides access to context-sensitive help, the product documentation and tutorials, and information about the program. | "Help Menu" on page 36 |
Note: The editor menus on your machine may vary from those described here, particularly if there has been any UI customization or use of ETS.
In addition to the menu bar menus, several pop-up menus are available within the Process Editor:
- Workspace pop-up menu – contains zoom operations, as described in "Pop-Up Menus" on page 115. It also contains these additional operations:
- The No Zoom operation returns the display to the initial display: the zoom level that existed when you first opened the model. The Process Editor does not save zoom levels, so the initial display does not change from one session to the next. The Project Editor, by contrast, does save zoom levels, so it lacks the No Zoom operation.
- The Show/Hide Line Counts operation. This operation either shows or hides a label under each state that lists the number of lines contained in the state’s enter and exit executives. Showing line counts can be helpful when you want to track down exactly which executive, in which state, has the code you need to examine.
- The Clip Titles/Show Full Titles operation. This operation either truncates the displayed titles of process states to the width of the state icons (the default setting) or displays the full titles of all process states.
- Child Processes. This item lists any child processes declared in the process model and lets you open them in an editor.
- External Files. This item lists any external files declared in the process model and lets you open them in an editor.
- Packet Formats. This item lists any packet formats used by the process model and lets you open them in the Packet Format Editor.
- Object pop-up menu – contains operations that allow you to
- edit object attributes (see "Edit Attributes" on page 361)
- make the state the initial state
- make the state forced or unforced
- open the enter executives edit pad. You can also activate this operation by double-clicking in the top half of a state icon or by clicking the enter execs button in the attributes dialog box
- open the exit executives edit pad. You can also activate this operation by double-clicking in the bottom half of a state icon or by clicking the exit execs button in the attributes dialog box
Note: Changes to Enter or Exit Execs are not saved to disk until you save the process model. Save the process model by selecting Save from the Process Editor’s File menu.
There is also an operation available within the Process Editor that does not appear on a menu:
- Move Label – moves a transition label. This operation is activated by left-clicking on the label, then dragging it to a new location.
Interfaces Menu
The Interfaces menu includes operations that allow you to edit a process model’s interfaces to other processes and to the project as a whole.
Table 98: Interfaces Menu Summary
| Menu item | Description | Reference |
|---|---|---|
| Model Attributes | Defines attributes for the process model. These attributes are promoted to processor or queue modules at the node level. | Model Attributes |
| Process Interfaces | Configures certain attributes of processors and queues that rely on the process model at the node level. | Process Interfaces |
| ODB Labels | Specifies descriptions of labels used in process model code, for display in ODB. | ODB Labels |
| Interrupt Code Map | Lets you assign text strings that will be printed along with interrupt codes when they appear in ODB event banners and traces of various op_intrpt_schedule_ KPs. |
Interrupt Code Map |
| Parallel Execution Support > | Opens a submenu for specifying the process model’s support for parallel execution. | Parallel Execution Support |
| Local Statistics | Declares named statistics that are scoped to the queue or processor module and that the process computes and generates. | Local Statistics |
| Global Statistics | Declares named statistics that are scoped to the simulation as a whole and are computed and generated by this process model. Global statistics usually represent system-wide metrics. | Global Statistics |
| Global Attributes | Defines attributes that have a simulation-wide scope. These are the global attributes that the process model expects to query during the simulation. | Global Attributes |
FSM Menu
The FSM menu includes operations for creating a state transition diagram of the finite state machine that defines the process model.
Table 99: FSM Menu Summary
| Menu item | Description | Reference |
|---|---|---|
| Create State | Creates a new state within the process model. | Create State |
| Create Transition | Creates transitions between states. | Create Transition |
| Set Initial State | Sets the selected state in the process to be the initial one. | Set Initial State |
Code Block Menu
The Code Block menu includes operations that allow you to specify the C/C++ code that implements a process.
Note: Changes to code blocks are not saved until you save the process model. Save the process model by selecting Save from the Process Editor’s File menu.
Table 100: Code Block Menu Summary
| Menu item | Description | Reference |
|---|---|---|
| State Variables | Defines variables that retain their value from one process invocation to the next. | State Variables |
| Temporary Variables | Defines variables that retain their value only during the span of a single process invocation. | Temporary Variables |
| Header Block | Defines constants, macro expressions, include files, global variables, data structures, data types, and function declarations for the process. Also declares whether the process model will be in C/C++. | Header Block |
| Function Block | Defines C/C++ functions that are associated with the process. | Function Block |
| Diagnostic Block | Defines C/C++ statements that send diagnostic information to the standard output device. | Diagnostic Block |
| Termination Block | Defines C/C++ statements that run just before a process is destroyed. | Termination Block |
Compile Menu
The Compile menu includes operations for processing the C/C++ code of a process model.
Table 101: Compile Menu Summary
| Menu item | Description | Reference |
|---|---|---|
| Enable C++ Code Generation | When selected, causes the Process Editor to generate C++ code instead of C code. | Enable C++ Code Generation |
| Include Temporary Variables in Termination Block | When selected, causes temporary variables to be generated in the termination block. | Include Temporary Variables in Diagnostic/Termination Block |
| Include Temporary Variables in Diagnostic Block | When selected, causes temporary variables to be generated in the diagnostic block. | Include Temporary Variables in Diagnostic/Termination Block |
| Compile Code | Generates the C or C++ source file and object code for the process model; saves the model. | Compile Code |
| Compile Code (Advanced) | Same as the Compile Code operation, but allows additional control over the compilation process and the types of object files created. | Compile Code (Advanced) |
| List Code | Displays the C/C++ source file generated by compiling the process model. | List Code |
| Show Recent Compilation Messages | Opens an edit pad containing messages from the most recent compilation error log. | — |