Exercise 4 - Constructing an Activity-Chart
In this exercise, you develop the top-level system diagram for the rear defog system, as shown in the following figure.
1. Click Graphic Editors from the main Rational Statemate window.
2. Create an Activity-chart called 'REAR_DEFOG_SS' based on the selections shown in the following figure.
●
Type: Activity
●
Usage: Regular
●
Name Pattern: REAR_DEFOG_SS
3. Click New from the Open Chart window to create and open a new diagram. The chart is now available for editing.
4. Click Create Internal Activity.
5. Draw the internal activity called 'REAR_DEFOG_SS'.
Place the cursor at the location you want for the upper, left-hand corner of the activity and drag to the location of the lower, right-hand corner of the activity and release the mouse. A ghost image shows the activity outline.
6. Click Create Internal Activity or Name Existing Activity and start entering the name of the activity. Click and release tat the location in which you want the text to reside within the activity.
Note: Rational Statemate, where appropriate, automatically performs the conversion to uppercase letters. Do not select the CAPS LOCK key before typing. Doing so might prevent you from making further selections.
8. Using the Activity-Chart - REAR_DEFOG_SS figure and the previous instructions as a guide, create and name two internal activities called 'REAR_DEFOG_FEATURES' and 'REAR_DEFOG_OUTPUT_FCTS'.
9. Click Create External Activity.
10. Draw the external activities for the REAR_DEFOG_SS. The same drawing rules apply for drawing and naming external activities Use the following figure as a guide as to which external activities should be on the left and which external activities should be on the right.
11. Click Create Data-Flow.
12. Draw a flow line from the external activity called 'SPEED_SENSOR' to the internal activity called 'REAR_DEFOG_FEATURES'.
13. Locate the external activity called 'SPEED_SENSOR'. This is the source activity. Place the cursor on the edge of the box and click and drag to enter the tail of the arrow.
14. Locate the internal activity called 'REAR_DEFOG_FEATURES'. This is the target activity. Place the cursor on the edge of the box and click and drag to enter the arrowhead.
Note: In order to create flow lines with angles, you can click/release the left mouse button at each location.
15. Label the flow line 'VEHICLE_SPEED_IN’.
With the Create Data-Flow or the Label Existing Flow-Line icon selected, start entering the name for the label. Click the flow line that you want to label.
16. Draw a flow line from the external activity called 'OPERATOR' to the internal activity 'REAR_DEFOG_FEATURES' and label the flow 'RDEFOG_SW_STATUS'.
17. Draw a flow line from the external activity called 'LOAD_MONITOR' to the internal activity 'REAR_DEFOG_FEATURES' and label the flow 'LOAD_SHED_IN'.
18. Draw a flow line from the internal activity called 'REAR_DEFOG_FEATURES' to the internal activity 'REAR_DEFOG_OUTPUT_FCTS' and label the flow 'DEFOG_DRIVE_SIG'.
19. Draw a flow line from the internal activity called 'REAR_DEFOG_FEATURES' to the external activity 'OPERATOR' and label the flow 'RDEFOG_LED'.
20. Draw a flow line from the internal activity called 'REAR_DEFOG_OUTPUT_FCTS' to the external activity 'REAR_DEFOG_RELAY' and label the flow 'DEFOG_DRIVE_OUT'.
21. Select File > Save from the chart and then File > Exit.