[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-655777-105":59,"doc-detail-655777-en":131,"doc-similar-655777":163},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":124,"head_meta":126,"extra_data":128,"updated_unix":130},105,"en","chapter-21-uml-communication-diagrams","Chapter 21: UML Communication Diagrams","","Chapter 21 explains UML 2.0 communication diagrams and how they model object interactions through message passing. It introduces basic notational elements such as objects, actors, link lines, and messages, including how method call direction and labels are represented. The chapter further contrasts communication diagrams with sequence diagrams, highlighting readability trade-offs and layout freedom. It also outlines advanced elements like creation and destruction, conditional messages, and iteration, supported by concrete examples.",{"@graph":69,"@context":123},[70,84,106],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/chapter-21-uml-communication-diagrams/655777/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/chapter-21-uml-communication-diagrams/655777.png","ImageObject",300,407,{"name":92,"@type":93},"Finn","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-25","2026-10-25",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",11,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"What is the purpose of a UML communication diagram?","Question",{"text":113,"@type":114},"A UML communication diagram models which objects interact by showing the messages they pass to each other. It emphasizes relationships between message originators and receivers.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"How are objects and actors represented in communication diagrams?",{"text":118,"@type":114},"Objects are drawn as rectangles with the object name and class name separated by a colon. Actors are represented as stick figures labeled with the object name and class name (often with the colon omitted).",{"name":120,"@type":111,"acceptedAnswer":121},"How do link lines and messages work in these diagrams?",{"text":122,"@type":114},"A link line is a solid line connecting two objects to indicate that communication is possible. Messages are shown as small arrows on the link line, with arrow direction pointing to the object executing the method, typically labeled with a method signature or action description.","https://schema.org",{"og:url":83,"og:type":125,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":127,"canonical":83},"index,follow",{"doc_id":129,"site_id":62},655777,1792982787,{"code":4,"msg":5,"data":132},{"doc_id":129,"user_id":133,"nickname":92,"user_avatar":134,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":44,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":144,"read_time":145,"preview_page_count":19,"preview_urls":146},34359740700684,"https://ap-avatar.wpscdn.com/avatar/1f400023980c374ae676?_k=1777273430885731487","Department of Computer Science  \nTackling Design Patterns  \nChapter 21: UML Communication Diagrams  \nCopyright 􀀍c 2016 by Linda Marshall and Vreda Pieterse. All rights reserved.  \nContents  \n21.1 Introduction ................................. 2  \n21.2 Basic Notational Elements ........................ 3  \n21.2.1 Objects and Actors ............................. 3  \n21.2.2 Link line ................................... 3  \n21.2.3 Messages ................................... 4  \n21.2.4 Sequence numbers .............................. 5  \n21.3 Advanced notational elements ...................... 5  \n21.3.1 Creation and Destruction .......................... 5  \n21.3.2 Conditional messages ............................ 6  \n21.3.3 Iteration ................................... 6  \n21.4 Examples ................................... 7  \n21.4.1 Get relevant reports ............................. 7  \n21.4.2 Preparing an order .............................. 8  \n21.4.3 Sending mail to a mailing list ........................ 8  \nReferences ....................................... 8  \n21.1 Introduction  \nUML 2 .0 includes a number of interaction diagrams. These are sequence diagrams, interaction overview diagrams, timing diagrams and communication diagrams. In this lecture we look speci􀀌cally at communication diagrams. They are used to model which objects interact with one another in terms of the messages they pass to one another. While all interaction diagrams model these interactions, communication diagrams emphasise relations between the originators and the receivers of messages.  \nThe way in which object oriented programs systems produce useful results is mainly through passing messages between objects. These messages appear in the form of method calls. A communication diagram is used to visualise which objects are involved in the execution of a reaction to some event. In UML 1 these diagrams were called Collaboration diagrams.  \nCommunication diagrams and sequence diagrams are very similar. Figure 1 illustrate the di􀀋erences and similarities between these types of diagrams. As can be seen in the 􀀌gure they both model method calls between objects. They use di􀀋erent layouts to show the same information.  \nSequence diagram  \nCommunication diagram  \nFigure 1: Comparison of UML Sequence diagrams and UML Communication diagrams  \nThe di􀀋erence between sequence diagrams and communication diagrams can be summarised as follows:  \n􀀏 sequence diagrams  \n{ Easier to read call-􀀍ow sequence  \n{ More notation options allows for higher expressiveness  \n􀀏 communication diagrams  \n{ Easier to observe which objects are involved in the communication  \n{ Free format spacing allows for easier maintainance  \n21.2 Basic Notational Elements  \nThe basic elements in a communication diagram are objects. A communication diagram shows that there exist communication between objects by connecting them with a link line. The detail of the communication between objects is visualised in terms of the messages that are passed between these objects. Often the order in which messages are passed are indicated by using sequence numbers.  \n21.2.1 Objects and Actors  \nFigure 2: An object Figure 3: An actor  \nFigure 2 shows an object. The same notation that is used in UML Object diagrams and UML Sequence diagrams to show objects, are used in UML Communication diagrams. An object is shown as a rectangle containing the object name and the class name of which it is an instance. The object name is separated from the class name using a colon. An object my be anonymous. For example when an object is created but not assigned to a variable. When an object is anonymous it is shown as a rectangle containing only the class name of the class of which it is an instance. In this case the class name is preceded by a colon. The objects shown in Figure 4 are anonymous objects.  \nFigure 3 shows the same object shown in Figure 2 as an actor. Any object may be shown as an actor. An actor is a stick man label","cbCaike6uyJFHYvM","https://ap.wps.com/l/cbCaike6uyJFHYvM","pdf",899016,"English","# 21.1 Introduction\n# 21.2 Basic Notational Elements\n## 21.2.1 Objects and Actors\n## 21.2.2 Link line\n## 21.2.3 Messages\n## 21.2.4 Sequence numbers\n# 21.3 Advanced notational elements\n## 21.3.1 Creation and Destruction\n## 21.3.2 Conditional messages\n## 21.3.3 Iteration\n# 21.4 Examples\n## 21.4.1 Get relevant reports\n## 21.4.2 Preparing an order\n## 21.4.3 Sending mail to a mailing list\n# References","[{\"question\":\"What is the purpose of a UML communication diagram?\",\"answer\":\"A UML communication diagram models which objects interact by showing the messages they pass to each other. It emphasizes relationships between message originators and receivers.\"},{\"question\":\"How are objects and actors represented in communication diagrams?\",\"answer\":\"Objects are drawn as rectangles with the object name and class name separated by a colon. Actors are represented as stick figures labeled with the object name and class name (often with the colon omitted).\"},{\"question\":\"How do link lines and messages work in these diagrams?\",\"answer\":\"A link line is a solid line connecting two objects to indicate that communication is possible. Messages are shown as small arrows on the link line, with arrow direction pointing to the object executing the method, typically labeled with a method signature or action description.\"}]","Chapter 21: UML Communication Diagrams | PDF",1792963731,23,[147,151,155,159],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/fb70dad87ca998035f5a3542bf016d26.webp",983,1390,{"page_no":14,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/f49e35e32cfaaff2eab2dfbfbe1eb8bd.webp",982,1388,{"page_no":81,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/e46a71682dcef486c6f501f00356a0d5.webp",981,1387,{"page_no":19,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/2c8f5769339743e40784b60e351b9c9f.webp",980,1385,{"list":164,"token":66},[165,171,177,184,190,196,202,208,214,220],{"doc_id":166,"doc_title":167,"file_type":138,"home_preview_img_url":168,"slug":169,"view_count":29,"category_name":30,"create_tm":170},655648,"Object-Oriented Software Engineering Practical Software Development using UML and Java - Chapter 8 - Modelling Interactions and Behaviour","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975286609/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=1k%2B5nXqw7RN3PyGpeKAl%2FLIkzP4%3D","object-oriented-software-engineering-practical-software-development-using-uml-and-java-chapter-8-modelling-interactions-and-behaviour",1792963009,{"doc_id":172,"doc_title":173,"file_type":138,"home_preview_img_url":174,"slug":175,"view_count":44,"category_name":30,"create_tm":176},655682,"Chap56GL - eng(1)","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975287376/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=8QzDhFxYwgps%2F9hYYxLxiMB8J9E%3D","chap56gl-eng1",1792963195,{"doc_id":178,"doc_title":179,"file_type":138,"home_preview_img_url":180,"slug":181,"view_count":182,"category_name":30,"create_tm":183},655696,"Visual Paradigm Handbook - Sequence Diagram - Overview of UML Sequence Diagram Concepts","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975288090/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=0x49xsoh%2FNTTOdUHOSibc2hJ4pM%3D","visual-paradigm-handbook-sequence-diagram-overview-of-uml-sequence-diagram-concepts",12,1792963364,{"doc_id":185,"doc_title":186,"file_type":138,"home_preview_img_url":187,"slug":188,"view_count":44,"category_name":30,"create_tm":189},655800,"UML basics - The sequence diagram - Introductory","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974777531/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=tiNsgEpvkGChtvIPccNGtwWXFAU%3D","uml-basics-the-sequence-diagram-introductory",1792963921,{"doc_id":191,"doc_title":192,"file_type":138,"home_preview_img_url":193,"slug":194,"view_count":52,"category_name":30,"create_tm":195},655652,"Object-Oriented Software Engineering Practical Software Development using UML and Java - Chapter 8 - Lecture 11 - Interaction and State Diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975286672/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=6D701F4JZZFyUYM4C%2FiEmt9gQtM%3D","object-oriented-software-engineering-practical-software-development-using-uml-and-java-chapter-8-lecture-11-interaction-and-state-diagrams",1792963024,{"doc_id":197,"doc_title":198,"file_type":138,"home_preview_img_url":199,"slug":200,"view_count":39,"category_name":30,"create_tm":201},655787,"Lecture 12 - Sequence Diagrams - Collaboration and Time","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975290000/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=aD9DEqpFWs21X%2Fji%2BPa1Y%2FRT6ns%3D","lecture-12-sequence-diagrams-collaboration-and-time",1792963779,{"doc_id":203,"doc_title":204,"file_type":138,"home_preview_img_url":205,"slug":206,"view_count":44,"category_name":30,"create_tm":207},655604,"UML-ATM - Class Diagram, Use Case, Sequence, Communication, State, Activity","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974775471/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=hQigx%2FIzBiwiFPyE0TIi40u52BY%3D","uml-atm-class-diagram-use-case-sequence-communication-state-activity",1792962853,{"doc_id":209,"doc_title":210,"file_type":138,"home_preview_img_url":211,"slug":212,"view_count":182,"category_name":30,"create_tm":213},655562,"UML-Sequence Diagrams - Introduction - Notation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975285301/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=5dulgJj%2BuJY5nsCDQW%2BesWOnl84%3D","uml-sequence-diagrams-introduction-notation",1792962639,{"doc_id":215,"doc_title":216,"file_type":138,"home_preview_img_url":217,"slug":218,"view_count":52,"category_name":30,"create_tm":219},655587,"Chapter 16 - UML Activity Diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975285692/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=uOtYad%2BTysy8MYFOzbuunw%2FIMFA%3D","chapter-16-uml-activity-diagrams",1792962750,{"doc_id":221,"doc_title":222,"file_type":138,"home_preview_img_url":223,"slug":224,"view_count":182,"category_name":30,"create_tm":225},655561,"UML Sequence Diagrams - Engineering Notebook Column - April, 98","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975285299/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111879&Signature=NC6k%2FBCFNglg7GKVn3kmv4AOtmk%3D","uml-sequence-diagrams-engineering-notebook-column-april-98",1792962636]