Hotel-project Week 4: Design 3

6 downloads 51002 Views 69KB Size Report
... separate document. Literature. • Leon Starr, ”How to Build Articulate UML Class Moels” . • Craig Larman, ”Applying UML and Patterns”, chapters 15 and 16. 2.
Hotel-project Week 4: Design 3

This weeks topics are: Sequence diagrams and Class diagrams.

Assignment Next week you will start implementing your models using Bridgepoint. Before that you will do a two more models, sequence diagrams and class diagrams. Besides these two models you shall also review the work of another group. The instructions for the halftime review can be found on the course homepage. While you work on the two models it is importnat to switch between them iteratively. The insights that you gain from working on one of the models will lead to new requisutes on the other model.

Sequence diagrams Construct a sequence diagram for each system operation that you have defined in the system sequence diagrams for the booking use-case. Most important is that the sequence of operations is described in sequence diagrams. This is a very important point since you need to get the sequencing right in the implementation. The implementation of the search for available rooms does not need to be sophisticated. For passing the course it is enough to return a room with the right amount of beds or deny the booking if there are no available rooms. Implementations returning a sufficient amount of rooms to accomodate the number of people in the booking is of course more satisfying. That said, you shouldn’t make the sequence diagram too abstract either. You should include enough details so that you make use of the most common things, e.g. loops and alternatives.

Class Diagram It is enough to make a class diagram that covers the classes and operations/events that you need for the interaction diagram. Use the domain model as a starting point for the class diagram. The class diagram should 1

be refined along the development of operations and interaction diagrams through the addition of classes, attributes and operations. Remember that the domain model reflects a conceptual perspective of the domain while class diagrams represent a software development perspective. So far you have been free to use any tool you want for drawing models. But the class diagram shall be drawn using Bridgepoint. While constructing the sequence diagram you will make changes to your class diagram again and again. So, it might be easier to use a white-board while designing the two models.

Checklist • Interaction Diagram. • Class Diagram. • Halftime review, see separate document.

Literature • Leon Starr, ”How to Build Articulate UML Class Moels” . • Craig Larman, ”Applying UML and Patterns”, chapters 15 and 16.

2