|
The State Chart
The State Chart models embedded systems without heavyweight, expensive CASE tools. The State Chart gives you a "birds's-eye view" of your application's logical structure and flow. It graphically constructs the state hierarchy, with child states nested within their parent state. Another State Chart's major advantage over the State Tree is that is displays every state's transitions, in the form of arrows from one state to another state. Click an arrow, a state transition table between these two states will be displayed
The following diagram shows the PowerUpDown application's state chart according to state tree definitions.

Figure: State Chart of PowerUpDown Application
The rules of the State Chart are listed as below:
1) The rectange represents the state. It graphically displays the state hierarchy, with child states nested within their parent state.
2) Click a rectangle, this rectange will be highlighted in yellow.
3) Right click the highlighted rectangle, the State Chart will provide some commands on the corresponding state or application:
If it is a state, provide the following commands:
- New State
- Set as Default
- Delete State
- Add Event Handler
- Go to State Entry function if available
- Go to State Exit function if available
If it is an application, provide the following commands:
- New State
- Delete Application
- Add Event Handler
- Go to State Entry function if available
- Go to State Exit function if available
4) The arrowhead indicates the default state.
5) The arrow from one state to another state displays the state transition between these two state.
6) Click an arrow, the State Chart will display the state transition list in the format of
Source State -> Destination State : Event Name
If click an transition item and there is an event handler for this transition, the State Machine Wizard will go to this event handler implemenation.
Top
|