[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-655589-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-655589-en":130,"doc-similar-655589":161},{"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","chapter-13-sequence-diagrams-introduction-to-sequence-diagrams","CHAPTER 13 - SEQUENCE DIAGRAMS - Introduction to Sequence Diagrams","","Chapter 13 explains how sequence diagrams realize use cases in the analysis model and clarifies how they differ from collaboration diagrams. It defines key elements of sequence diagrams, including objects across the top, dashed lifelines, and vertical time ordering of method calls. Examples illustrate method invocation, return handling, focus of control, and threading. The chapter also shows how use cases map onto class diagrams via sequence diagrams using an Employee inheritance tree and polymorphism for correct method selection.",{"@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/chapter-13-sequence-diagrams-introduction-to-sequence-diagrams/655589/",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/chapter-13-sequence-diagrams-introduction-to-sequence-diagrams/655589.png","ImageObject",300,407,{"name":42,"@type":43},"iuabcfuw","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-26","2026-10-25",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",9,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"How do sequence diagrams differ from collaboration diagrams?","Question",{"text":63,"@type":64},"Sequence diagrams emphasize interactions over time for a task or series of tasks, while collaboration diagrams focus on cooperating objects to accomplish the work.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"What information does a sequence diagram show about method calls?",{"text":68,"@type":64},"The arrowhead indicates the called method and information can flow both directions; if a method is fully specified, the call details are included, while return values are not shown.",{"name":70,"@type":61,"acceptedAnswer":71},"How can sequence diagrams help map use cases to the analysis model?",{"text":72,"@type":64},"They support accurate and complete class diagrams by assigning responsibilities to classes and ensuring behaviors are associated with the correct class when mapping use cases.","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},655589,1793074055,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,105,110,115,119,122,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":55,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"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":111,"language":139,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":12,"update_tm":143,"read_time":117,"preview_page_count":33,"preview_urls":144},3985747874027,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","CHAPTER  \nUse Case Realization  \nby Means of Sequence Diagrams  \nNonfunctional Requirement  \nInterface Requirements Specification  \n116  \nCHAPTER 13  \n◗ SEQUENCE DIAGRAMS  \nWe use sequence diagrams to realize use cases in the analysis model. Before we demonstrate the realization, we need to have a good understanding of sequence diagrams. Sequence diagrams are a type of interaction diagram. Collaboration diagrams are another type of interaction diagram. Although each of these types of interaction diagrams provides the same information, the focus of attention is different. Collaboration diagrams focus on the objects that work together to accomplish a given task or series of tasks. Sequence diagrams focus on the interaction of a given task or series of tasks as observed over time. In fact, some modeling tools automatically convert one diagram to the other. In this chapter we focus on sequence diagrams since use cases model the services the system provides over time.  \nWe discuss the elements that make up the sequence diagram. We then discuss how we map use cases onto a class diagram with sequence diagrams. Finally, we map a use case from our Change Management System onto the class diagram or analysis model of the Change Management System.  \nIntroduction to Sequence Diagrams    \nA sequence diagram is a collection of objects interacting to accomplish a given task or series of tasks over time. Objects appear across the top of the diagram. A dashed line extends from the object to the bottom of the sequence diagram. Time is represented on the vertical axis. Methods that appear higher on the diagram occur earlier than methods that appear lower on the diagram. Figure 13.1 illustrates a sequence diagram.  \nFigure 13.1 shows a simple sequence diagram. In the example, an object of type USER triggers the occurrence of some event by calling the method METHODA in the object OBJECTA of type CLASSA. METHODA then calls the method METHODB in OBJECTB of type CLASSB. METHODB then calls method PRIVATEMETHODB within the object that contains METHODB.  \nThe arrowhead points to the method that was called. Information can flow both ways. If the method is fully specified, as is the case for METHODB of OBJECTB, the information about the call is included in the method call. The return value is not shown in the sequence diagram.  \nThe thick bar in the sequence diagram indicates the focus of control. Focus of control implies that one method called another; control will return to the first method. This focus can continue through any number of method calls. Focus of control does not always return to the calling method. Sometimes the new method starts a new thread of execution that takes the focus of control.  \nIntroduction to Sequence Diagrams 117   \nmethodA( )  \nprivateMethodB(  \n)  \nFIGURE 13.1  \nSequence diagram  \nRecall from Chapter 11, that for a method from one object to call a method from another object, that object must have a public access specifier. Private methods can only be called by methods within the same object. Protected methods in a base class can be called by other methods declared in the same class or by methods that are declared in a derived class. If a method in a base class is defined as private, only methods declared in the base class can call that method. In Figure 13.2 we look at another example.  \nThe example in Figure 13.2 shows an inheritance tree for an employee record. In the example, all objects of type EMPLOYEE include a method PRINTRECORD. The EMPLOYEE class also includes method CALCULATEPAY to allow polymorphism. Each of the derived objects—HOURLYEMPLOYEE and  \n\n| Employee |\n| --- |\n|  |\n|  printRecord()\u003Cbr> calculatePay() |\n\n\n| HourlyEmployee |\n| --- |\n|  |\n|  calculatePay() |\n\nCommissionEmployee  \n|  |\n| --- |\n| calculatePay() |\n\nFIGURE 13.2  \nEmployee inheritance tree  \n118  \nCHAPTER 13  \n◗ SEQUENCE DIAGRAMS  \n| printRecord( ) |\n| --- |\n| \u003Cbr>calculatePay( ) |\n| |\n\nFIGURE 13.3  \nEmployee sequence diagram  \nCOMMISSIONEMPLOYE","cbCaitaq3bTUN22n","https://ap.wps.com/l/cbCaitaq3bTUN22n","pdf",100553,"English","# Introduction to Sequence Diagrams\n## Sequence diagram elements and interaction over time\n## Focus of control and method call behavior\n## Mapping use cases with sequence diagrams to class diagrams","[{\"question\":\"How do sequence diagrams differ from collaboration diagrams?\",\"answer\":\"Sequence diagrams emphasize interactions over time for a task or series of tasks, while collaboration diagrams focus on cooperating objects to accomplish the work.\"},{\"question\":\"What information does a sequence diagram show about method calls?\",\"answer\":\"The arrowhead indicates the called method and information can flow both directions; if a method is fully specified, the call details are included, while return values are not shown.\"},{\"question\":\"How can sequence diagrams help map use cases to the analysis model?\",\"answer\":\"They support accurate and complete class diagrams by assigning responsibilities to classes and ensuring behaviors are associated with the correct class when mapping use cases.\"}]","CHAPTER 13 - SEQUENCE DIAGRAMS - Introduction to Sequence Diagrams | PDF",1792962756,[145,149,153,157],{"page_no":22,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/44e4df902234dc4252756bee9250ae61.webp",983,1272,{"page_no":26,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/7ffe6897d9cda7968b94c609e8466d7a.webp",982,1270,{"page_no":30,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/646baef5f4314c2b504eae5925db1898.webp",981,1269,{"page_no":33,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/64b31a19e2bdd43727f24f6fa6789424.webp",980,1268,{"list":162,"token":11},[163,169,175,181,187,193,199,205,211,218],{"doc_id":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":106,"category_name":29,"create_tm":168},655700,"UML Sequence Diagrams - Interaction Diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974776062/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796144699&Signature=c%2FYjz3ELQXGCs2XzC4hyjPJYSnA%3D","uml-sequence-diagrams-interaction-diagrams",1792963371,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":111,"category_name":29,"create_tm":174},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=1796144699&Signature=buTAdBvjtKZDyrhyKAui4ZU8lnA%3D","sequence-diagram-tutorial-chapter-4-use-cases-and-scenarios-uml-sequence-diagrams",1792962629,{"doc_id":176,"doc_title":177,"file_type":137,"home_preview_img_url":178,"slug":179,"view_count":55,"category_name":29,"create_tm":180},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=1796144699&Signature=lDweIa044vsWvwtPc%2F1iH4kjzmc%3D","chap56gl-eng1",1792963195,{"doc_id":182,"doc_title":183,"file_type":137,"home_preview_img_url":184,"slug":185,"view_count":102,"category_name":29,"create_tm":186},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=1796144699&Signature=yLZ6Gydld9MoNZKQeSGt29Pe9E4%3D","object-oriented-software-engineering-practical-software-development-using-uml-and-java-chapter-8-modelling-interactions-and-behaviour",1792963009,{"doc_id":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":192,"category_name":29,"create_tm":174},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=1796144699&Signature=aEKXSt%2BNnaHUIxDfYiZeDskBfj0%3D","sequence-diagrams-uml-interaction-diagrams-for-scenarios",12,{"doc_id":194,"doc_title":195,"file_type":137,"home_preview_img_url":196,"slug":197,"view_count":55,"category_name":29,"create_tm":198},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=1796144699&Signature=iUAafTEUWi%2B4kjyozaxlvSIOaR8%3D","sequence-diagrams-part-1-creating-sequence-diagrams-for-modelled-system",1792962644,{"doc_id":200,"doc_title":201,"file_type":137,"home_preview_img_url":202,"slug":203,"view_count":192,"category_name":29,"create_tm":204},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=1796144699&Signature=ws8qxkjwFmgH55ufnjLwcjalp6A%3D","uml-sequence-diagrams-introduction-notation",1792962639,{"doc_id":206,"doc_title":207,"file_type":137,"home_preview_img_url":208,"slug":209,"view_count":123,"category_name":29,"create_tm":210},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=1796144699&Signature=oQLp6vA4B5X2D8qtXznTMipIICU%3D","object-oriented-software-engineering-practical-software-development-using-uml-and-java-chapter-8-lecture-11-interaction-and-state-diagrams",1792963024,{"doc_id":212,"doc_title":213,"file_type":137,"home_preview_img_url":214,"slug":215,"view_count":216,"category_name":29,"create_tm":217},655556,"Sequence Diagrams - Part 1 - Introduction and Notations","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975285263/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796144699&Signature=1%2FTvr0t9vFQm6%2FUzaeyjx2LpPf8%3D","sequence-diagrams-part-1-introduction-and-notations",16,1792962626,{"doc_id":219,"doc_title":220,"file_type":137,"home_preview_img_url":221,"slug":222,"view_count":192,"category_name":29,"create_tm":223},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=1796144699&Signature=t2Sop5BeSKd9f2syj%2FsEbrkCu98%3D","uml-sequence-diagrams-engineering-notebook-column-april-98",1792962636]