SDA SE Wiki

Software Engineering for Smart Data Analytics & Smart Data Analytics for Software Engineering

User Tools

Site Tools


In case you had trouble solving the previous Java tasks, because of missing Eclipse or Java knowledge, please have a look at the following Eclipse/Java Tutorials. The tutorials give a step by step introduction to the Java language, Unit testing and debugging using the Eclipse environment.

Assignment 3: Requirements Elicitation

Due at Friday, May 07th, 23:59

Task 9: Relationships between Use Cases

2 point

Explain in your own words in one or two sentences, what «include», «extends», and generalization between use cases mean.

Explain the difference between «include» and «extend».

Explain the difference between «extend» and generalization.

Task 10: Abstract a Use Case from Scenarios

2 points

Your colleague collected three scenarios about reserving hotel rooms. She already rearranged them a bit, so that they are already very similar. Abstract (the flow of events of) a Use Case from these scenarios:

Mr. Smith (Click to expand)

Ms. Marple (Click to expand)

Johnny (Click to expand)


Use Case: Reserve Room

  1. The customer selects to reserve a room.
  2. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  3. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  4. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  5. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  6. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  7. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  8. The system displays the reservation confirmation number and check-in instructions.
  9. The use case terminates.

Task 11: Improving Use Case Diagrams

4 points

Check out the project A03T11_AtmUseCases and open the use case diagram.

Study the use case diagram. Then make sure that it covers the following scenario as well:

Inattentive Heinz charges his card with e-money (Click to expand)

Tip: There are reasons to use each of the possible relationships between use cases.

Task 12: Represent the Flow of Events in a Sequence Diagram

2+1 points

a) Represent the use case of task 10 in form of a sequence diagram. This sequence diagram shows only two objects: The customer and the system.

b) Now we assume that the database is not part of the system that we are specifying but an external system. Change the Sequence diagram accordingly. What would you change in the corresponding use case diagram?

teaching/lectures/oosc/2010/assignment_3.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2024