Escolar Documentos
Profissional Documentos
Cultura Documentos
4.1. Draw a UML use case diagram for the problem statement. Provide a text based
description for the normal scenario for each use case. If the problem statement has
missing information then you may act as the client of the system and fill in the
gaps, clearly stating where you have done so and why. [10]
4.2. Draw a Domain Model Diagram for this system showing all associations (including
inheritance and aggregation, if any). [8]
4.3. Draw System Sequence Diagram for two main Use Cases and identify main events[4]
Q.5. A social network service focuses on building online communities of people who share
interests and/or activities, or who are interested in exploring the interests and activities of
others. Facebook support groups that people can join. Each group has a title, administrative
members, a group type (open/ closed), and a list of related groups. If somebody writes on the
wall page of the group, the information is broadcasted to all the members and it is visualized
in the news feeds of the members. Users should be able to join a group as well as leave a
group if they get bored. Once a user has joined a group it will automatically receive any
updates that are published on the wall.
Q.5 (a). Which design pattern is the most appropriate to handle this basic functionality of
such a Facebook group? Give proper explanation. [5]
Q.5 (b). Show appropriate class diagram(s) and enough code fragments to illustrate your use
of the pattern to solve the problem. [15]
Q.6. Suppose we would like to extend the functionality of Facebook group mentioned in Q.2
above by adding the possibility that besides normal users a group page can also be a member
of another group. For example it should be possible that the group page of the XYZ car
lovers joins the Design Patterns group. As a consequence all the members of the XYZ
group become automatically members of the Design Patterns group.
Q.6 (a). Which design pattern is most appropriate to accommodate this change? How can the
solution proposed in the Q.2 above shall be extended? [5]
Q.6 (b). Show appropriate class diagram(s) and enough code fragments to illustrate your use
of the pattern to solve the problem.
Q.7Give the activity diagram that describes the overall activity in the given domain.
Q.8. Consider processing an order at Amazon.com. When you place an order, Amazon must
notify you that your order has been received, schedule the order for shipping, if the
item is not available it must be back-ordered, prepare the order for shipping, ship the
order, notify you that the order has been shipped (or back-ordered), and bill your credit
card. In addition, you can cancel the order, or modify the information on it before it has
shipped. Draw a UML statechart diagram showing the Order classs states and the
events that cause the order to change from one state to the next