FSM Menu Operations
This section contains descriptions and procedures for using the operations available from the FSM menu in the Process Editor. The items that appear on this menu are described below in alphabetical order.
Create State
This operation creates a new state within the process model being edited. If the newly created state is the first state created in the process model, then the state is set to be the initial state. This is indicated by the white arrow (black arrow on monochrome monitors) to the left of the state. Newly created states are named by default, but do not contain executive statements or have transitions. These elements can be added via the state's attribute menu (name and executives) or via the Create Transition operation.
Newly created states are unforced by default. They appear red on color displays and white on monochrome displays. Unforced states allow the process model to release control back to the Simulation Kernel and "rest" while the Simulation Kernel attends to other tasks. Forced states bypass the rest phase and force the FSM to continue through and execute with no logical breaks.
For more information about forced versus unforced states, see "Process Domain" on page 165.
Create Transition
This operation creates transitions between states in a process model. A transition is depicted by an arc (or alternatively, a series of straight segments) connecting two states, and defines the possible progress of the FSM from one state to another. The beginning state of the transition is called the source state; the ending state is the destination state.
A transition is characterized by its association with the two states, and by a condition statement and an executive statement. The condition statement is optional. It defines the conditions under which the transition will be traversed. The executive statement is also optional. It contains actions that are implemented if and when the transition is traversed. These executives are edited via the transitions's attribute menu.
For detailed information about transitions, see Process Editor.
Multiple-Segment Transitions
It is possible to draw transitions with more than one line segment. The presence of additional line segments does not affect the process model logic in any way. If a transition has multiple line segments, you can use the mouse to move it to a new location (the end segments change to reflect the new location).
Procedure 210: Drawing a Multi-Segment Transition
-
Choose FSM > Create Transition and left-click on the source state.
-
Left-click on the desired location of the first vertex. This location must be within the Process Editor window and not over a state.
-
Continue left-clicking at each desired vertex.
Result: Riverbed follows with a "rubber band" line extending from the last vertex to the current location of the pointer.
-
Click on the destination state.
Result: The transition completes.
Transition Drawing Styles
The transition's drawing style can be either "line" or "spline". Drawing style is changed using the transition's attribute menu. By default, the style is set to "spline". The spline style draws transitions so each vertex of the transition is curved. The line style depicts the transition as a series of adjoining straight line segments.
Moving Condition and Executive Statements
Sometimes Riverbed places the condition/executive statements over the transition, making them difficult to view. Moving the condition/executive labels can improve the appearance of the model and make the association between the transition and its statements more clear. To move a condition/executive label, left-click on it, then drag it to a new position.
Set Initial State
This operation specifies which state in the process is the initial state. The initial state is indicated by a large arrow which appears to its left. Riverbed automatically assigns this status to the first state that it is created in a process model, but you can use this operation to indicate a different initial state.
The initial state has the following uses and properties:
- It is used to set the initial values of key variables in the process. These variables are initialized when the process is first "awakened". Awakening may occur at the beginning of the simulation if the "begsim interrupt" is enabled on the module associated with the process. Otherwise, awakening may occur when the first interrupt arrives at the process.
- The initial state of a process is usually executed only once in the course of the simulation.