[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-655648-105":59,"doc-detail-655648-en":130,"doc-similar-655648":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":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","object-oriented-software-engineering-practical-software-development-using-uml-and-java-chapter-8-modelling-interactions-and-behaviour","Object-Oriented Software Engineering Practical Software Development using UML and Java - Chapter 8 - Modelling Interactions and Behaviour","","Chapter 8 explains how UML interaction diagrams model the dynamic behavior of a software system. It introduces interaction diagrams as a way to visualize how actors and objects collaborate to perform use-case steps or other functionality through messages. The chapter covers key elements such as instances, actors, messages, lifelines, activation boxes, time ordering, and communication links, then contrasts sequence diagrams with collaboration diagrams and provides worked examples.",{"@graph":69,"@context":122},[70,84,105],{"@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/object-oriented-software-engineering-practical-software-development-using-uml-and-java-chapter-8-modelling-interactions-and-behaviour/655648/",{"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/object-oriented-software-engineering-practical-software-development-using-uml-and-java-chapter-8-modelling-interactions-and-behaviour/655648.png","ImageObject",300,407,{"name":92,"@type":93},"Bintang","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-25","2026-10-25",true,{"@type":102,"interactionType":103,"userInteractionCount":29},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What is the purpose of an interaction diagram in UML?","Question",{"text":112,"@type":113},"An interaction diagram models the dynamic aspects of a software system and helps visualize how it runs by showing how actors and objects accomplish required interactions.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What are the main elements shown in interaction diagrams?",{"text":117,"@type":113},"Instances of classes, actors (stick-person symbol), and messages (arrows between actors and objects, or between objects) are key elements.",{"name":119,"@type":110,"acceptedAnswer":120},"How do sequence diagrams and collaboration diagrams differ?",{"text":121,"@type":113},"Sequence diagrams emphasize the ordered exchange of messages over time using horizontal object placement and vertical lifelines, while collaboration diagrams emphasize object collaboration and use a graph structure with vertices and communication links plus message attachments.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},655648,1793051688,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":29,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"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},962085564381,"https://ap-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8","| \u003Cbr>Object-Oriented Software Engineering Practical Software Development using UML and Java\u003Cbr>Chapter 8:\u003Cbr>Modelling Interactions and Behaviour | 8.1 Interaction Diagrams\u003Cbr>Interaction diagrams are used to model the dynamic aspects of a software system\u003Cbr>They help you to visualize how the system runs.\u003Cbr>An interaction diagram is often built from a use case anda class diagram.\u003Cbr>—The objective is to show how a set of objects accomplish the required interactions with an actor.\u003Cbr>© Lethbridge/Laganière 2001 Chapter 8: Modelling Interactions and Behaviour 2 |\n| --- | --- |\n| Interactions and messages\u003Cbr>\u003Cbr>Interaction diagrams show how a set of actors and objects communicate with each other to perform:\u003Cbr>—The steps of a use case, or\u003Cbr>—The steps of some other piece of functionality.\u003Cbr>The set of steps, taken together, is called an interaction.\u003Cbr>Interaction diagrams can show several different types of communication.\u003Cbr>—E.g. method calls, messages send over the network\u003Cbr>—These are all referred to as messages.\u003Cbr>© Lethbridge/Laganière 2001 Chapter 8: Modelling Interactions and Behaviour 3 | Elements found in interaction diagrams\u003Cbr>Instances of classes\u003Cbr>—Shown as boxes with the class and object identifier underlined\u003Cbr>Actors\u003Cbr>—Use the stick-person symbol as in use case diagrams\u003Cbr>Messages\u003Cbr>—Shown as arrows from actor to object, or from object to object\u003Cbr>© Lethbridge/Laganière 2001 Chapter 8: Modelling Interactions and Behaviour 4 |\n\n\n| Creating instances diagrams\u003Cbr>\u003Cbr>You should develop a class diagram and a use case model before starting to create an interaction diagram.\u003Cbr>There are two kinds of interaction diagrams:\u003Cbr>—Sequence diagrams\u003Cbr>—Collaboration diagrams\u003Cbr>© Lethbridge/Laganière 2001 Chapter 8: Modelling Interactions and Behaviour 5 | Sequence diagrams – an example\u003Cbr>\u003Cbr>\u003Cbr>* *\u003Cbr>*\u003Cbr>CourseSection\u003Cbr>requestToRegister addToRegistrationList\u003Cbr>Registration\u003Cbr>Course\u003Cbr>getPrerequisite\u003Cbr>Student addToSchedule hasPassedCourse\u003Cbr>© Lethbridge/Laganière 2001 Chapter 8: Modelling Interactions and Behaviour 6 |\n| --- | --- |\n| Sequence diagrams\u003Cbr>\u003Cbr>A sequence diagram shows the sequence of messages exchanged by the set of objects performing a certain task\u003Cbr>The objects are arranged horizontally across the diagram.\u003Cbr>An actor that initiates the interaction is often shown on the left.\u003Cbr>The vertical dimension represents time.\u003Cbr>A vertical line, called a lifeline, is attached to each object or actor. The lifeline becomes a broad box, called an activation box during the live activation period.\u003Cbr>A message is represented as an arrow between activation boxes of the sender and receiver.\u003Cbr>—A message is labelled and can have an argument list and a return value.\u003Cbr>© Lethbridge/Laganière 2001 Chapter 8: Modelling Interactions and Behaviour 7 | Sequence diagrams –\u003Cbr>same example, more details\u003Cbr>\u003Cbr>© Lethbridge/Laganière 2001 Chapter 8: Modelling Interactions and Behaviour 8 |\n\n\n| Sequence diagrams –\u003Cbr>an example with replicated messages\u003Cbr>| Sequence diagrams –\u003Cbr>an example with object deletion\u003Cbr>If an object’s life ends, this is shown with an X at the end of the lifeline\u003Cbr>\u003Cbr>© Lethbridge/Laganière 2001 Chapter 8: Modelling Interactions and Behaviour 10 |\n| --- | --- |\n| Collaboration diagrams – an example\u003Cbr>\u003Cbr>:CourseSection\u003Cbr>1: \u003C\u003Ccreate>>\u003Cbr>\u003Cbr>3: addToRegistrationList\u003Cbr>:Registration :Student\u003Cbr>2: addToSchedule\u003Cbr>© Lethbridge/Laganière 2001 Chapter 8: Modelling Interactions and Behaviour 11 | Collaboration diagrams\u003Cbr>Collaboration diagrams emphasise how the objects collaborate in order to realize an interaction\u003Cbr>A collaboration diagram is a graph with the objects asthe vertices.\u003Cbr>Communication links are added between objects Messages are attached to these links.\u003Cbr>—Shown as arrows labelled with the message name Time ordering is indicated by prefixing the message with some numbering scheme.\u003Cbr>© Lethbridge/Laganière 2001 Chapter 8: Modelling Interactions and Behaviour 1","cbCait5tWINstnjF","https://ap.wps.com/l/cbCait5tWINstnjF","pdf",105952,13,"English","# 8.1 Interaction Diagrams\n## Interactions and messages\n## Elements found in interaction diagrams\n## Creating instances diagrams\n## Sequence diagrams\n## Collaboration diagrams\n## Communication links\n## Other communication links\n## Choosing between sequence and collaboration diagrams","[{\"question\":\"What is the purpose of an interaction diagram in UML?\",\"answer\":\"An interaction diagram models the dynamic aspects of a software system and helps visualize how it runs by showing how actors and objects accomplish required interactions.\"},{\"question\":\"What are the main elements shown in interaction diagrams?\",\"answer\":\"Instances of classes, actors (stick-person symbol), and messages (arrows between actors and objects, or between objects) are key elements.\"},{\"question\":\"How do sequence diagrams and collaboration diagrams differ?\",\"answer\":\"Sequence diagrams emphasize the ordered exchange of messages over time using horizontal object placement and vertical lifelines, while collaboration diagrams emphasize object collaboration and use a graph structure with vertices and communication links plus message attachments.\"}]","Object-Oriented Software Engineering Practical Software Development using UML and Java - Chapter 8 - Modelling Interactions and Behaviour | PDF",1792963009,33,[147,151,155,159],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/c36f2cb643ff3350f0bea619e94bb493.webp",983,759,{"page_no":14,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/caaf880df9c4615dce4cb13ecd3f9676.webp",982,758,{"page_no":81,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/747ad589f3841a35476fd7c11c93f769.webp",981,757,{"page_no":19,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/45f6320a58648afb7cf048f086a4d8ff.webp",980,756,{"list":164,"token":66},[165,171,177,184,190,195,201,207,213,220],{"doc_id":166,"doc_title":167,"file_type":137,"home_preview_img_url":168,"slug":169,"view_count":44,"category_name":30,"create_tm":170},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=1796111639&Signature=%2FkHr%2F3kV6bWzqRLCX29X6uwx7YQ%3D","chap56gl-eng1",1792963195,{"doc_id":172,"doc_title":173,"file_type":137,"home_preview_img_url":174,"slug":175,"view_count":52,"category_name":30,"create_tm":176},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=1796111639&Signature=jBKKe47AumwHqBGN3xnEfehnc20%3D","object-oriented-software-engineering-practical-software-development-using-uml-and-java-chapter-8-lecture-11-interaction-and-state-diagrams",1792963024,{"doc_id":178,"doc_title":179,"file_type":137,"home_preview_img_url":180,"slug":181,"view_count":182,"category_name":30,"create_tm":183},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=1796111639&Signature=8RXo7CSVWht8ojI6UXjbYY44Prc%3D","uml-sequence-diagrams-introduction-notation",12,1792962639,{"doc_id":185,"doc_title":186,"file_type":137,"home_preview_img_url":187,"slug":188,"view_count":182,"category_name":30,"create_tm":189},655557,"Sequence Diagrams - UML interaction diagrams for scenarios","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975285272/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111639&Signature=CT7Lyn2o7AsdYARAaBeP89jFYUI%3D","sequence-diagrams-uml-interaction-diagrams-for-scenarios",1792962629,{"doc_id":191,"doc_title":192,"file_type":137,"home_preview_img_url":193,"slug":194,"view_count":39,"category_name":30,"create_tm":189},655558,"Sequence Diagram Tutorial - Chapter 4 - Use Cases and Scenarios - UML Sequence Diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975285279/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111639&Signature=5a04w0BbRBIScnFneZ3a8KotLBE%3D","sequence-diagram-tutorial-chapter-4-use-cases-and-scenarios-uml-sequence-diagrams",{"doc_id":196,"doc_title":197,"file_type":137,"home_preview_img_url":198,"slug":199,"view_count":44,"category_name":30,"create_tm":200},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=1796111639&Signature=SIBJ4RTmWsPK7212AxKnmIG1LJQ%3D","uml-atm-class-diagram-use-case-sequence-communication-state-activity",1792962853,{"doc_id":202,"doc_title":203,"file_type":137,"home_preview_img_url":204,"slug":205,"view_count":44,"category_name":30,"create_tm":206},655737,"Interaction Diagram Notation - Applying UML and Patterns, Chapter 15 - Objectives","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975288577/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111639&Signature=yCNS68HQhEbSr8BsbCutVhReNhI%3D","interaction-diagram-notation-applying-uml-and-patterns-chapter-15-objectives",1792963524,{"doc_id":208,"doc_title":209,"file_type":137,"home_preview_img_url":210,"slug":211,"view_count":29,"category_name":30,"create_tm":212},655735,"Interactions Diagrams - Use Case Realization - Sequence and Communication Diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975288564/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111639&Signature=%2BTNOq6tU5PdNgRVko2gzNzXh218%3D","interactions-diagrams-use-case-realization-sequence-and-communication-diagrams",1792963517,{"doc_id":214,"doc_title":215,"file_type":137,"home_preview_img_url":216,"slug":217,"view_count":218,"category_name":30,"create_tm":219},655777,"Chapter 21: UML Communication Diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975289603/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111639&Signature=VcniKuJDaCdABeptJ6GrxWULYqA%3D","chapter-21-uml-communication-diagrams",11,1792963731,{"doc_id":221,"doc_title":222,"file_type":137,"home_preview_img_url":223,"slug":224,"view_count":44,"category_name":30,"create_tm":225},655563,"Sequence diagrams - Part 1 - Creating sequence diagrams for modelled system","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975285315/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111639&Signature=R0Fe9%2Fw0FcSHFqSPwy%2F9rPnrUPQ%3D","sequence-diagrams-part-1-creating-sequence-diagrams-for-modelled-system",1792962644]