Creating a Traffic Light in MicroC : Exercise 2 - Defining Textual Elements

Exercise 2 - Defining Textual Elements

This exercise describes how to define the textual elements that were entered into the activity chart TRAFFIC_LIGHT_SS.

1.
From the Chart Tab, click on the chart called TRAFFIC_LIGHT_SS. The element matrix opens in the right pane. See the figure.
Element Matrix for Chart TRAFFIC_LIGHT_SS
2.
Select the element called CHANGE from within the element matrix.
3.
Select Edit > Properties. This invokes the Properties window for this element. See the following figure.
Note: Double-clicking on the element name also opens the properties window for this element.
Properties - CHANGE
4.
Define the textual element CHANGE using the following steps:
a.
Change the Type: of the element from Information Flow to Event. See the figure.
b.
Click Save .
c.
Unresolved Element - CHANGE
5.
Set the Type: to Condition for the other three elements (RED_LIGHT, YELLOW_LIGHT, GREEN_LIGHT), and save the settings.
6.
a.
Change the Type from External to Environment
b.
Click Save
c.