110 likes | 247 Views
Object-oriented modeling Communication diagrams. Karolina Muszyńska. Based on : S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”. Object Modeling. Dynamic view – communication diagrams role of communication diagrams basic concepts
E N D
Object-oriented modelingCommunication diagrams Karolina Muszyńska Based on: S. Wrycza, B. Marcinkowski, K. Wyrzykowski „Język UML 2.0 w modelowaniu SI”
Object Modeling • Dynamic view – communication diagrams • role of communication diagrams • basic concepts • comparison of concepts in sequence and communication diagrams • examples
Communication Diagram –role • Communication diagram is a kind of interaction diagram, describing structural relationships among system classifiers taking part in the interaction and interchange of messages between them. • Communication diagram includes two closely related elements: • structural organization of classifiers expressed by associations • interaction among classifiers realized by messages assigned to specified associations • Communication diagrams are isomorphic with sequence diagrams which means that one type of diagram can be transformed into the other type without loss of any important information.
Communication Diagrams –basic concepts Basic concepts common for both communication and sequence diagrams: classifier message Basic concept specific only for communication diagram: association – same meaning as in the class diagram
Communication Diagrams – rules When creating communication diagrams the following rules should be observed: • every message must be numbered and have a name indicating the operation to be executed by the object-recipient, • the necessary features of a message within the communication diagram are: message type and message direction, • in case of overflow of the diagram with messages an aggregated information can be made by grouping the messages of the same type and flow direction
Communication Diagrams –basic concepts Classifier(actor, object, interface, package) Association Message
Communication and Sequence Diagrams comparison of selected concepts
Communication Diagrams – advanced concepts Multiple object Multiple objects represent a set of objects of a specified class Reference to multiple objects has an iterative character (can indicate iteration)
Building a communication diagram Identification of classifiers Specification of relationships among classifiers and connecting them using associations Identification and naming of messages sent among classifiers Specification of types of messages and their numbering Adding advanced concepts (multiple objects, conditions, etc.) Optional aggregation of messages of same types and directions