Visualization Window
The visualization window is used in the unit production
removal and the useless production removal. In both cases, it is
used to model the dependencies of variables. In the unit
production removal, it is used only to model the dependencies of
the unit production variables. In the useless production removal,
it is used to model the dependencies of all productions. Below is
a picture of the visualization window.
With the visualization window, several operations can be
performed on the states:
- Adding Transitions - The user must add the transitions
from one state, or variable, to the other. This is done
by clicking and dragging from the FROM state to the TO
state with LEFT MOUSE BUTTON. If the transition has the
same FROM state as the TO state, then press and release
the left mouse button over the same state. You will be
prompted when you have displayed all of the transitions
for the given grammar.
- Moving States - The states are originally displayed in a
circular fashion. It may be difficult to see the flow of
transitions from one state to another. Therefore, you
can move the states into any arrangement you want by
simply dragging the state from one position of the screen
to another using the MIDDLE MOUSE BUTTON. Just hold the
mouse button down on the state you want to move, move the
mouse to where you want it, and release the mouse button.
- Adding Final States - Final States are only
available in the useless production removal. You can add
a final state to the states by clicking the state
with the RIGHT MOUSE BUTTON.
NOTE: The middle mouse button can be simulated by pressing
SHIFT or ALT when pressing the left mouse button. The right mouse
button can be simulated by pressing CTRL when pressing the left
mouse button.