Sie sind auf Seite 1von 6

Object Oriented Designing & Programming ECX4262 Answer for Assignment No.

(1)
1

i)

ii)
2

iii)
3

iv)
4

Sequence Diagram

Collaboration Diagram

1. Use to show the interactions between objects 1. An interaction diagram that shows similar in the sequential order that those interactions information to sequence diagrams but its occur. primary focus is on object relationships.

2. A lifeline represents an individual participant in a sequence diagram. A lifeline will usually have a rectangle containing its object name. A lifeline may be created or destroyed during the timescale represented by a sequence diagram.

2. A link is a relationship among objects across which messages can be sent. In collaboration diagrams, a link is shown as a solid line between two objects. Message flows are attached to links.

3. A thin rectangle running down the lifeline denotes the execution occurrence, or activation of a focus of control.

3. The sequence of messages is shown through a numbering scheme. . Sequence numbers are used in collaboration diagrams, because they are the only way of describing the relative sequencing of messages.

4. Messages are displayed as arrows. Messages can be synchronous denoted by the solid arrowhead or asynchronous denoted by line arrowhead. Dashed line use to denoted return message.

4. Message is a communication between objects that conveys information with the expectation that activity will ensue. In collaboration diagrams, a message is shown as a labeled arrow placed near a link. This means that the link is used to transport, or otherwise implement the delivery of the message to the target object. The arrow points along the link in the direction of the target. The arrow is labeled with the name of the message

v)
5

Das könnte Ihnen auch gefallen