Professional Documents
Culture Documents
Collaboration Diagrams MIT202A
Collaboration Diagrams MIT202A
Collaboration Diagrams MIT202A
1:firstMessage() 2:secondMessage()
object1 object1
4:finalResponse() 3:returnMessage()
4: returnDetails(price,desc,qty)
productItem inventoryItem
Interaction Diagram Development
1. Identify all of the objects and actors involved in
the scenario
2. Identify each message that will be required to
carry out the scenario
a) Identify source object or actor and the destination
object or actor (can be tricky)
b) Objects can only do things to themselves
Development (2)
2. Clues in identification source and destination of
messages:
a. Identify object that needs the service
b. Identify the object that has access to the required
input parameters
c. Most one-to-many association has the one side create
and send message to the many side (especially if
independent/dependent relationship exists
Development(3)
3. Determine whether each message is always sent
or whether it is sent only under certain conditions
4. Sequence the message correctly
5. Add formal syntax on the messages if needed
6. Review and revise if changes occur
Issues of Collaboration Diagrams
Diagrams get cluttered with increasing level of messages
:Order
1.1.2.1:needsToReorder()
1.1:*prepare()
:ProductOrder :StockItem
1.1.1:check()
1.1.2:[check==true]remove() 1.1.2.2:new
1.1.3:[check==true]new :DeliveryItem
:ReorderItem
Mini Cases
COLLABORATION DIAGRAMS
Deposit via Teller
Withdraw via Teller
Withdraw via ATM
Deposit with Envelope via ATM
Deposit, No Envelope via ATM
References
https://www.tutorialspoint.com/uml/index.htm
Satzinger et al (2002). Systems analysis and design in
a changing world (2nd Ed). Canada: Course
Technology