Exercise 5 - Defining Textual Elements
In this exercise. you formally define the textual elements that were entered into the activity-chart 'REAR_DEFOG_SS'.
1. Select the chart called 'REAR_DEFOG_SS' from right panel of the Chart Tab. Refer to the following figure.
2. Select the element called 'VEHICLE_SPEED_IN'.
3. Select Edit > Properties. This opens the Properties window for this element (refer to the following figure). Double-clicking on the element name also opens the properties window for this element.
a. Change the type from Information Flow to Data-Item from the pull-down menu.
b. Change the Data Type from None to Integer from the pull-down menu.
c. Enter a Min Value of 0.
d. Enter a Max Value of 150.
e. Enter a Default Value of 50.
f. Enter the following text in the Description field: 'Vehicle Speed from Powertrain (KPH).'
g. Click Save.
h.
6. Change the Data Type from Information Flow to Event.
7.
8. Click Save.
9.
10. Select the flow line and define the textual element called 'DEFOG_DRIVE_SIG'.
11. Change the Type from Information Flow to Condition.
12.
13. Click Save.
14.
15. Select the flow line and define the textual element called 'DEFOG_DRIVE_OUT'.
16. Change the Type from Information Flow to Data-Item.
17. Change the Data Type from None to Bit.
18.
19. Click Save.
20.
21.
22. Change the Type from Information Flow to Condition.
23.
24. Click Save.
25.
Note: The final element that needs to be defined is the element 'LOAD_SHED_IN'. This element can be one of four possible values. To accomplish this, an enumerated type is created.
26. From the main Rational Statemate window, click GDS Editor.
27. Enter the name 'REAR_DEFOG_GDS' for the GDS name and click OK.
28. Click New from the Properties window.
●
Element Name: LOAD_MGMT_CMD_TYPE
●
Chart Name: REAR_DEFOG_GDS
●
Element Type: User-Defined Type
Note: You now need to define the User-Defined Type called 'LOAD_MGMT_CMD_TYPE' (refer to the following figure).
30. Change the Change the Data Type from None to Enum Type from the pull-down menu.
31.
32.
33. Click Save.
34.
Note: You can now return to the Chart Tab view and select the activity-chart “REAR_DEFOG_SS” and define the textual element called 'LOAD_SHED_IN'.
35. Double-click on the element called “LOAD_SHED_IN” to bring up the properties window (refer to the following figure).
36. Change the Type from Information Flow to Data-Item from the pull-down menu.
37. Change the Data Type from None to User Type.
38. Select 'LOAD_MGMT_CMD_TYPE' from the drop down selection window next to the Data Type.
39.
40. Click Save.
41.