[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-655652-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-655652-en":130,"doc-similar-655652":162},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","object-oriented-software-engineering-practical-software-development-using-uml-and-java-chapter-8-lecture-11-interaction-and-state-diagrams","Object-Oriented Software Engineering Practical Software Development using UML and Java - Chapter 8 - Lecture 11 - Interaction and State Diagrams","","Lecture 11 within Chapter 8 explains how UML interaction diagrams and state diagrams model dynamic behaviour in object-oriented systems. It covers interaction diagrams’ purpose to show object interactions with actors, the role of actors, message types, and diagram elements. It then distinguishes sequence diagrams from communication diagrams, including lifelines, activation boxes, message labels, numbering for time ordering, and how communication links arise from associations, local variables, parameters, global references, or network communication. Finally it introduces state diagrams as directed graphs of states and transitions driven by events.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/object-oriented-software-engineering-practical-software-development-using-uml-and-java-chapter-8-lecture-11-interaction-and-state-diagrams/655652/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/object-oriented-software-engineering-practical-software-development-using-uml-and-java-chapter-8-lecture-11-interaction-and-state-diagrams/655652.png","ImageObject",300,407,{"name":42,"@type":43},"Rizky","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-25","2026-10-25",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",10,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What is the objective of UML interaction diagrams in a software system?","Question",{"text":63,"@type":64},"They show how a set of objects accomplish the required interactions with an actor, helping visualize how the system runs dynamically.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How do sequence diagrams represent time and messages?",{"text":68,"@type":64},"Objects are arranged horizontally, a lifeline is attached to each object or actor, time is shown by the vertical dimension, and messages are drawn as labeled arrows between activation boxes (often with arguments and return values).",{"name":70,"@type":61,"acceptedAnswer":71},"What does a state diagram model and how do state changes occur?",{"text":72,"@type":64},"It describes system or object behaviour by showing the states at any given time as nodes and the changes between them as transitions, where events trigger the move to a new state.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},655652,1793051689,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,105,110,115,120,123,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":103,"slug":104},6,50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":112,"show_sort_weight":113,"slug":114},8,"Research & Report",30,"research-report",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":117,"show_sort_weight":118,"slug":119},9,"Religion & Spirituality",20,"religion-spirituality",{"id":118,"doc_module":4,"doc_module_name":25,"category_name":121,"show_sort_weight":118,"slug":122},"World Cup","world-cup",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":55,"slug":125},"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":97,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":102,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":144,"read_time":99,"preview_page_count":33,"preview_urls":145},962085564807,"https://ap-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8","Object-Oriented Software Engineering Practical Software Development using UML and Java  \nChapter 8:  \nModelling Interactions and Behaviour  \nLecture 11  \n8.1 Interaction Diagrams  \nInteraction diagrams are used to model the dynamic aspects of a software system  \n• They help you to visualize how the system runs.  \n• An interaction diagram is often built from a use case and a class diagram.  \n—The objective is to show how a set of objects accomplish the required interactions with an actor.  \nInteractions and messages  \n• Interaction diagrams show how a set of actors and objects communicate with each other to perform:  \n—The steps of a use case, or  \n—The steps of some other piece of functionality.  \n• The set of steps, taken together, is called an interaction.  \n• Interaction diagrams can show several different types of communication.  \n—E.g. method calls, messages send over the network  \n—These are all referred to as messages.  \nElements found in interaction diagrams  \n547  \n• Instances of classes  \n—Shown as boxes with the class and object identiﬁer underlined  \n• Actors  \n—Use the stick-person symbol as in use case diagrams  \n• Messages  \n—Shown as arrows from actor to object, or from object to object  \nCreating interaction diagrams  \nYou should develop a class diagram and a use case model before starting to create an interaction diagram.  \n• There are two kinds of interaction diagrams:  \n—Sequence diagrams  \n—Communication diagrams  \n549  \nSequence diagrams – an example  \nSequence diagrams  \nA sequence diagram shows the sequence of messages exchanged by the set of objects performing a certain task  \n• The objects are arranged horizontally across the diagram.  \n• An actor that initiates the interaction is often shown on the left.  \n• The vertical dimension represents time.  \n• A vertical line, called a lifeline , is attached to each object or actor.  \n• The lifeline becomes a broad box, called an activation box during the live activation period.  \n• A message is represented as an arrow between activation boxes of thesender and receiver.  \n—A message is labelled and can have an argument list and a return value.  \n551  \nSequence diagrams – same example, more details  \nSequence diagrams –  \nan example with replicated messages  \n• An iteration over objects is indicated by an asterisk preceding the message name  \n553  \nSequence diagrams – an example with object deletion  \n• If an object’s life ends, this is shown with an X at the end of the lifeline  \nCommunication diagrams – an example  \n555  \nCommunication diagrams  \nCommunication diagrams emphasize how the objects collaborate in order to realize an interaction  \n• A communication diagram is a graph with the objects as the vertices.  \n• Communication links are added between objects  \n• Messages are attached to these links.  \n—Shown as arrows labelled with the message name  \n• Time ordering is indicated by preﬁxing the message with some numbering scheme.  \nCommunication diagrams – same example, more details  \n557  \nCommunication links  \n• A communication link can exist between two objects whenever it is possible for one object to send a message to the other one.  \n• Several situations can make this message exchange possible:  \n1. The classes of the two objects have an association between them.  \n- This is the most common case.  \n- If all messages are sent in the same direction, then probably the association can be made unidirectional.  \nOther communication links  \n2. The receiving object is stored in a local variable of the sending method.  \n- This often happens when the object is created in the sending method or when some computation returns an object .  \n- The stereotype to be used is «local» or [L] .  \n3. A reference to the receiving object has been received as a parameter of the sending method.  \n- The stereotype is «parameter» or [P] .  \n559  \nOther communication links  \n4. The receiving object is global.  \n- This is the case when a reference to an object can be obtained usi","cbCaihGEteCw3k8r","https://ap.wps.com/l/cbCaihGEteCw3k8r","pdf",902194,24,"English","# 8.1 Interaction Diagrams\n## Interaction diagrams’ purpose and elements\n## Creating interaction diagrams\n## Sequence diagrams (examples and concepts)\n## Communication diagrams (examples and concepts)\n## Choosing between sequence and communication diagrams\n# 8.2 State Diagrams\n## State diagrams as state-transition models","[{\"question\":\"What is the objective of UML interaction diagrams in a software system?\",\"answer\":\"They show how a set of objects accomplish the required interactions with an actor, helping visualize how the system runs dynamically.\"},{\"question\":\"How do sequence diagrams represent time and messages?\",\"answer\":\"Objects are arranged horizontally, a lifeline is attached to each object or actor, time is shown by the vertical dimension, and messages are drawn as labeled arrows between activation boxes (often with arguments and return values).\"},{\"question\":\"What does a state diagram model and how do state changes occur?\",\"answer\":\"It describes system or object behaviour by showing the states at any given time as nodes and the changes between them as transitions, where events trigger the move to a new state.\"}]","Object-Oriented Software Engineering Practical Software Development using UML and Java - Chapter 8 - Lecture 11 - Interaction and State Diagrams | PDF",1792963024,[146,150,154,158],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/3e7afe8e68b8ab9cedacbbf84d044448.webp",983,1310,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/caf8e9d986eb574885f987aaa02cf049.webp",982,1309,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/c8766a9689505ad6b1e01c04bdfbe0ac.webp",981,1308,{"page_no":33,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/9928d031c153bf4b74021d6d0c47c681.webp",980,1306,{"list":163,"token":11},[164,170,177,183,189,195,201,208,214,220],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":116,"category_name":29,"create_tm":169},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=1796111699&Signature=qVhbBCA0h5HaUrSMnSqwfTfwlsQ%3D","chap56gl-eng1",1792963195,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":175,"category_name":29,"create_tm":176},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=1796111699&Signature=kSM%2B485IDyYa4CnWiF%2FQPsK6gzI%3D","uml-sequence-diagrams-introduction-notation",12,1792962639,{"doc_id":178,"doc_title":179,"file_type":137,"home_preview_img_url":180,"slug":181,"view_count":102,"category_name":29,"create_tm":182},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=1796111699&Signature=Ibu%2Fom05%2BK7vFI5jHwtawDBuV%2BI%3D","object-oriented-software-engineering-practical-software-development-using-uml-and-java-chapter-8-modelling-interactions-and-behaviour",1792963009,{"doc_id":184,"doc_title":185,"file_type":137,"home_preview_img_url":186,"slug":187,"view_count":116,"category_name":29,"create_tm":188},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=1796111699&Signature=YVGKqFEgpNmLu15aMEXTm96yo1Q%3D","uml-atm-class-diagram-use-case-sequence-communication-state-activity",1792962853,{"doc_id":190,"doc_title":191,"file_type":137,"home_preview_img_url":192,"slug":193,"view_count":102,"category_name":29,"create_tm":194},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=1796111699&Signature=kgLv9NXdFBjEJlBbicFQwHCGSwU%3D","interactions-diagrams-use-case-realization-sequence-and-communication-diagrams",1792963517,{"doc_id":196,"doc_title":197,"file_type":137,"home_preview_img_url":198,"slug":199,"view_count":175,"category_name":29,"create_tm":200},655784,"Unified Modeling Language (UML) Enterprise Architect - User Guide Series - Table of Contents","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975289647/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=rvPp%2BoSPqtkNHO8zN0zd%2FIcIutM%3D","unified-modeling-language-uml-enterprise-architect-user-guide-series-table-of-contents",1792963746,{"doc_id":202,"doc_title":203,"file_type":137,"home_preview_img_url":204,"slug":205,"view_count":206,"category_name":29,"create_tm":207},655781,"AMSS Lecture 8 - UML Design - Additional Diagram Types","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974776864/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=6EigY8ZZFJ1%2FGGOgb5ja9%2Fa4VfI%3D","amss-lecture-8-uml-design-additional-diagram-types",11,1792963739,{"doc_id":209,"doc_title":210,"file_type":137,"home_preview_img_url":211,"slug":212,"view_count":55,"category_name":29,"create_tm":213},655616,"Software Engineering - A Short Introduction to UML Sequence Diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975286124/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=7AY5RL4z5NVB%2FsAXX%2BcRNJ7uMe4%3D","software-engineering-a-short-introduction-to-uml-sequence-diagrams",1792962882,{"doc_id":215,"doc_title":216,"file_type":137,"home_preview_img_url":217,"slug":218,"view_count":106,"category_name":29,"create_tm":219},655746,"Interaction Diagrams - Session 10","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975288660/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111699&Signature=AJU30lHmbEEaq0Pul9%2BVqEXS6jA%3D","interaction-diagrams-session-10",1792963546,{"doc_id":221,"doc_title":222,"file_type":137,"home_preview_img_url":223,"slug":224,"view_count":111,"category_name":29,"create_tm":225},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=1796111699&Signature=1oy5sXfGG73JLJ%2B4tsovy8uHyS4%3D","lecture-12-sequence-diagrams-collaboration-and-time",1792963779]