Creating a Traffic Light in MicroC : Exercise 4 - Constructing Statecharts

Exercise 4 - Constructing Statecharts

This exercise describes how to construct a statechart that demonstrates behavioral aspects of the traffic light system. See the figure.

Statechart TRAFFIC_LIGHT_CTRL
1.
Click Graphic Editor from the main Rational Statemate window.
2.
Note:

Type - Statechart

Usage - Regular

Name Pattern - TRAFFIC_LIGHT_CTRL

Open/Create Chart
3.
4.
Click Create State.
5.
Draw a state called TRAFFIC_LIGHT_CTRL. See the figure Statechart TRAFFIC_LIGHT_CTRL.