[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-655736-105":59,"doc-detail-655736-en":130,"doc-similar-655736":161},{"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","chapter-8-modeling-interactions-and-behavior","Chapter 8 - Modeling Interactions and Behavior","","Chapter 8 focuses on modeling system dynamics in a software system, emphasizing two complementary views: interaction and behavior. It explains how interaction models represent actors and objects exchanging messages, and how behavior models capture state changes caused by event sequences. The chapter introduces UML interaction diagrams, especially sequence and communication diagrams, and clarifies key notation such as lifelines, activation boxes, message labels, and arrowhead types. It also illustrates these concepts with examples like a student course registration workflow.",{"@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":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/chapter-8-modeling-interactions-and-behavior/655736/",{"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-8-modeling-interactions-and-behavior/655736.png","ImageObject",300,407,{"name":92,"@type":93},"Guten Appetit_Joghurt","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-28","2026-10-25",true,{"@type":102,"interactionType":103,"userInteractionCount":39},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What is the difference between an interaction model and a behavior model in UML?","Question",{"text":112,"@type":113},"An interaction model shows actors and objects exchanging messages to carry out execution steps. A behavior model describes how an object or system changes state in response to events.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What are the main elements found in an interaction diagram?",{"text":117,"@type":113},"An interaction diagram includes instances of classes or actors and the messages exchanged between them. Messages are drawn as arrows between actors and objects, often to help understand message sequence.",{"name":119,"@type":110,"acceptedAnswer":120},"How does a sequence diagram represent time and message exchange?",{"text":121,"@type":113},"A sequence diagram uses a vertical dimension to show time, with lifelines drawn for each participant. Messages are shown as arrows between activation boxes, labeled with optional arguments and responses.","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},655736,1793096856,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":39,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":46,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":143,"read_time":31,"preview_page_count":19,"preview_urls":144},1374408768420,"https://ap-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8","Modeling interactiboeas8vaion   \nIn Chapters 5 and 6 we showed you how to use class diagrams to build a static model of objects in a software system.  \nIn this chapter, we look at how to model system dynamics, focusing on two aspects: interactions and behavior. An interaction model shows a set of actors and objects interacting by exchanging messages. A behavior model shows how an object or system changes state in reaction to a series of events.  \nIn this chapter you will learn about the following  \n■ Two types of UML interaction diagram used to model detailed scenarios of system execution: sequence diagrams and communication diagrams.  \n■ State and activity diagrams, two other UML diagram types that are used to model the possible behavior of a system.  \n8.1 Interaction diagrams  \nInteraction diagrams are used to model the dynamic aspects of a software system – they help to visualize how the system runs. They show how a set of actors and objects communicate with each other to perform the steps of a use case, or of some other piece of functionality. The set of steps, taken together, is called an interaction.  \nInteraction diagrams can show several different types of communication. These include messages exchanged over a network, simple procedure calls, and commands issued by an actor through the user interface. Collectively, these are referred to as messages.  \n286   \nChapter 8  \nModeling interactions and behavior  \nThe following elements can be found in an interaction diagram:  \n■ Instances of classes or actors. As discussed in Chapter 5, instances of classes (i.e. objects) are shown as boxes with the class and object identifier underlined. Actors are shown using the same stick-person symbol as in use case diagrams, introduced in Chapter 4.  \n■ Messages. These are shown as arrows from actor to object, or from object to object. One of the main objectives of drawing interaction diagrams is to better understand the sequence of messages.  \nSince you need to know the actors and objects involved in an interaction, you should normally develop a class diagram and a use case model before starting to create an interaction diagram.  \nTwo kinds of diagrams are used to show interactions: sequence diagrams and communication diagrams. Both contain similar information about an interaction, although sequence diagrams have notations that make them somewhat more powerful. Sequence diagrams explicitly show the sequence of events on a time line, whereas communication diagrams are more compact.  \nSequence diagrams  \nA sequence diagram shows the sequence of messages exchanged by the set of objects (and optionally an actor) performing a certain task. Figure 8.1 gives an example.  \nThe objects are arranged from left to right across the diagram – an actor that initiates the interaction is often shown on the left. The vertical dimension represents time. The top of the diagram is the starting point, and time progresses downwards towards the bottom of the diagram. A vertical dashed line, called a lifeline, is attached to each object or actor. The lifeline becomes a box, called an activation box, during the period of time that the object is performing computations. The object is said to have live activation during these times.  \nA message is represented as an arrow between activation boxes of the sender and receiver. You give each message a label; it can optionally have an argument list and a response. The complete syntax is as follows:  \nresponse:=message(arg,...)  \nFigure 8.1 shows how the classes work together to allow a student actor to register in a course; the corresponding class diagram is shown in Figure 8.2.  \nThere are three objects and one actor involved in this interaction. A Student object and a CourseSection object exist initially; a Registration object is created asthe interaction proceeds. A creation message is shown using a dashed line with the label create. Note the different types of arrowheads used by the create message and the others; i","cbCaij6jPesS2Xrf","https://ap.wps.com/l/cbCaij6jPesS2Xrf","pdf",401647,"English","# 8.1 Interaction diagrams\n## Purpose and basic concepts\n## Sequence diagrams\n## Communication diagrams\n## Message syntax and diagram elements","[{\"question\":\"What is the difference between an interaction model and a behavior model in UML?\",\"answer\":\"An interaction model shows actors and objects exchanging messages to carry out execution steps. A behavior model describes how an object or system changes state in response to events.\"},{\"question\":\"What are the main elements found in an interaction diagram?\",\"answer\":\"An interaction diagram includes instances of classes or actors and the messages exchanged between them. Messages are drawn as arrows between actors and objects, often to help understand message sequence.\"},{\"question\":\"How does a sequence diagram represent time and message exchange?\",\"answer\":\"A sequence diagram uses a vertical dimension to show time, with lifelines drawn for each participant. Messages are shown as arrows between activation boxes, labeled with optional arguments and responses.\"}]","Chapter 8 - Modeling Interactions and Behavior | PDF",1792963522,[145,149,153,157],{"page_no":8,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/0940d4f90507e0b0799ee08e094175f7.webp",983,1280,{"page_no":14,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/6b879dafa336d99331f7e81d364e7eab.webp",982,1279,{"page_no":81,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/b158756e9669668b0638467bc02c6042.webp",981,1278,{"page_no":19,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/aa8323b0bca62cf84bc78e9a14ccdf49.webp",980,1276,{"list":162,"token":66},[163,169,175,181,187,193,199,205,211,217],{"doc_id":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":34,"category_name":40,"create_tm":168},655761,"Use Case Modelling of Bingham University Library Management System","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974776569/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108819&Signature=rerv9IqULtQzbTlhtzE2XrqydjY%3D","use-case-modelling-of-bingham-university-library-management-system",1792963623,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":39,"category_name":40,"create_tm":174},655701,"ROLE OF UML SEQUENCE DIAGRAM CONSTRUCTS IN OBJECT LIFECYCLE CONCEPT","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974776054/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108819&Signature=7WTlnHmgjtsPSNAP%2BYhaTVKBIYo%3D","role-of-uml-sequence-diagram-constructs-in-object-lifecycle-concept",1792963372,{"doc_id":176,"doc_title":177,"file_type":137,"home_preview_img_url":178,"slug":179,"view_count":29,"category_name":40,"create_tm":180},655929,"UML Modeling in Design of Error Detection and Correction Circuits","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975294514/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108819&Signature=ieozZnJYX0fuHfC68%2FQuRoLoJew%3D","uml-modeling-in-design-of-error-detection-and-correction-circuits",1792964985,{"doc_id":182,"doc_title":183,"file_type":137,"home_preview_img_url":184,"slug":185,"view_count":44,"category_name":40,"create_tm":186},655546,"UNIFIED MODELING LANGUAGE (UML) OVERVIEW - Document","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975284951/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108819&Signature=4SyRuokhKXLnoU8kc4SltCXqZgs%3D","unified-modeling-language-uml-overview-document",1792962562,{"doc_id":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":24,"category_name":40,"create_tm":192},655802,"Behavioral Fuzzing Operators for UML Sequence Diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974777790/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108819&Signature=mNx0GAJL4rxW6KmWdsQrNqWq%2BMk%3D","behavioral-fuzzing-operators-for-uml-sequence-diagrams",1792963973,{"doc_id":194,"doc_title":195,"file_type":137,"home_preview_img_url":196,"slug":197,"view_count":34,"category_name":40,"create_tm":198},655650,"A UML profile for feature diagrams - Initiating a model driven engineering approach for software product lines","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975286660/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108819&Signature=nvMa%2BOWgeND1brfOU7hJZSV4zkM%3D","a-uml-profile-for-feature-diagrams-initiating-a-model-driven-engineering-approach-for-software-product-lines",1792963021,{"doc_id":200,"doc_title":201,"file_type":137,"home_preview_img_url":202,"slug":203,"view_count":34,"category_name":40,"create_tm":204},655932,"Logical View - Static Structures - Interactions - Dynamic Behavior - Example: Logical View for the ATM","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975294539/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108819&Signature=bL6KEcU%2FxBRz6kYJ%2BNnDTa%2B5akc%3D","logical-view-static-structures-interactions-dynamic-behavior-example-logical-view-for-the-atm",1792964991,{"doc_id":206,"doc_title":207,"file_type":137,"home_preview_img_url":208,"slug":209,"view_count":34,"category_name":40,"create_tm":210},665334,"Defining Atomic Composition in UML Behavioral Diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229983828155/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108819&Signature=xpcvGn1vwE1hJvPjtX%2BDyNllX5Q%3D","defining-atomic-composition-in-uml-behavioral-diagrams",1793298356,{"doc_id":212,"doc_title":213,"file_type":137,"home_preview_img_url":214,"slug":215,"view_count":44,"category_name":40,"create_tm":216},655644,"Classification of UML Diagrams from Images in Software Engineering - Using Deep Learning","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975286545/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108819&Signature=zpvTaB1%2FD4386gFpfBuReBggE84%3D","classification-of-uml-diagrams-from-images-in-software-engineering-using-deep-learning",1792962994,{"doc_id":218,"doc_title":219,"file_type":137,"home_preview_img_url":220,"slug":221,"view_count":39,"category_name":40,"create_tm":222},655773,"THE USE OF UML CLASS DIAGRAMS TO TEACH DATABASE MODELLING AND DATABASE DESIGN","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975289146/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108819&Signature=ygLeFjkI1lfvAdI3QVmfu2Z0sUg%3D","the-use-of-uml-class-diagrams-to-teach-database-modelling-and-database-design",1792963670]