Activity Diagrams

Exercises


Form teams of 4-6 students for the following exercises

Exrecise 1: Diagram Description

Describe the Activity diagram "Check-In" you receive in the exercise. Make a nimberes step-by-step description. Don't forget to describe the alternative paths. Discuss the meaning of the modelling elements of activity diagrams in the group.

Exercise 2: Diagram Completion

The diagram from exercise 1 contains the guard [Ticket ok], but the branch for the case [Ticket not ok] is missing. Add this branch to the diagram: In this case the ticket should be retuned and the customer leaves the counter.

Exercise 3: Diagram Refinement

The diagram form exercise 1 contains the Activity "check in luggage". This activity can be further refined:

Define a subactivity for this purpose. Discuss different possibilities to add this subactivity to the diagram from exercise 1.

Exercise 4. Insertion of Responsibilities

Until now we only viewed the flow of activities. Now we want to take a look on responsibilities for these activities. Take the diagram resulting from exercise 2 as a starting point. Add responsibilities, i.e. make clear, who is responsible for which activity. Use swimlanes for this purpose.

Exercise 5: Parallelism

Now we take a look at the activities following the check-in we considered so far. These activities are full of parallelism, because a lot of things are done at the same time by different people in order to get the plane up into the air as fast as possible. Here is a list of the activities (You can add more activities, if you like)

Draw a diagram that contains these activities and shows the potential parallelism. Don't forget to think about points, where synchronization is necessary.



Software Systems Institute

Home of the Java Course Claudia Niederée, Michael Skusa, jan 2000