| iMatix home page | Libero home page | Libero documentation | << | < | > | >> |
Libero Version 2.32 |
Some dialogs have a lot of states that are similar except for small differences, like Expecting-Initial and Expecting-Operand above. We can write these in a more compact way using a shorthand technique called super-states. We put the super-state name between '<' and '>' after the state name:
Expecting-Initial: <Expecting-Operand> (--) End-Mark -> + Terminate-The-Program
The state inherits the events in the super-state, if they are not already defined. In the above example we say that Expecting-Initial inherits events from Expecting-Operand, and also handles the End-Mark event.
A super-state can itself be based on super-states, to any level. My advice is: use super-states with care to simplify large dialogs. Don't exaggerate. Some more points about super-states:
| << | <
| > | >>
| Using Libero | The Dialog File Syntax | Libero Options | Using Exceptions | Using The Defaults State | Using Sub-Dialogs | Using Super-States | Using Templates | Using Get-External-Event | Efficiency | Care and Feeding of Dialogs | When To Use Libero |
Copyright © 1996-97 iMatix |