[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-655787-105":59,"doc-detail-655787-en":130,"doc-similar-655787":162},{"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","lecture-12-sequence-diagrams-collaboration-and-time","Lecture 12 - Sequence Diagrams - Collaboration and Time","","Lecture 12 explains sequence diagrams in UML, contrasting their temporal focus with collaboration/communication diagrams and noting their lack of association information. It details core elements: vertical time axis, object lifelines, activation rectangles, and message arrows. A concrete example about land() shows how a synchronous call with an implicit return value is represented, then addresses how to depict conditionally called setAngle(int). Finally, it introduces UML 2.0 frame fragments, including OPT and related alternatives like Alt, Loop, Par, and Region.",{"@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/lecture-12-sequence-diagrams-collaboration-and-time/655787/",{"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/lecture-12-sequence-diagrams-collaboration-and-time/655787.png","ImageObject",300,407,{"name":92,"@type":93},"Theodore","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-25","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},"How do sequence diagrams differ from collaboration/communication diagrams in UML 2.0?","Question",{"text":112,"@type":113},"Sequence diagrams emphasize temporal ordering of messages. Collaboration diagrams focus on interaction structure, while sequence diagrams do not provide association information.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What are the main components of a UML sequence diagram?",{"text":117,"@type":113},"They use a vertical time axis, horizontal object positions, dashed lifelines to show lifetime, activation rectangles for active execution time, and arrows to depict messages with labels.",{"name":119,"@type":110,"acceptedAnswer":120},"How can UML 2.0 show that setAngle(int) is conditionally called?",{"text":121,"@type":113},"Use an OPT frame (optional fragment) so the diagram explicitly indicates that the message is executed only when the guard condition is true.","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},655787,1793051830,{"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":39,"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},7971461740886,"https://ap-avatar.wpscdn.com/davatar_3d24733baf745e90a7e4bdd5f77d97b2","Sequence Diagrams  \nComp-304 : Sequence Diagrams  \nLecture 12  \nAlexandre Denault Original notes by Hans Van gheluwe  \nComputer Science McGill University Fall 2006  \nCollaboration and Time  \n■ Last class, we took a look at Collaboration Diagrams  \n■ These diagrams are also known as Communication Diagrams in UML 2.0.  \n■ As already mentioned, ordering of messages is achieved by illustrating them.  \n■ This is not very visual.  \nSequence Diagrams  \n■ Sequence diagrams have more of a temporal focus.  \n■ However, they contain no association information.  \nA closer look  \nComponents of Seq Diags  \n■ Vertical time axis , time increasing downwards.  \n■ Objects that exchange messages in the current execution are shown on the horizontal axis, at the top.  \n■ With every object is a vertical dashed line, which depicts object lifetime.  \n■ Over the object lifetime line is a rectangle , which depicts when an object is active ( i.e. executing) .  \n􀀂 The rectangle's size is proportional to how much time the execution takes.  \n● Arrows depict messages from a sender object to a target object and the message is written along the arrow.  \nIn this diagram ...  \n■ In the example above , we assume that ac1 has a leftFlap and a rightFlap.  \n■ Note that when we send the getAngle() message, we don't have an arrow that shows the return value.  \n■ Given the message is synchronous, this is implicit and it is not shown on the diagram.  \nProblem  \n■ Suppose the code for land() was the following. .. function land()  \nleft = leftFlap.getAngle()  \nright = rightFlap.getAngle()  \nif (left != landAngle)  \nleftFlap.setAngle(landAngle)  \nif (right != landAngle)  \nrightFlap.setAngle(landAngle)  \n■ How can we show that setAngle(int) will be conditionally called ?  \nSolution in UML 1.4  \n■ How can we show that setAngle(int) will be conditionally called ?  \n■ We Can't !  \n■ The solution is to add little notes to the diagram, on the far left.  \n■ The note will let us know of this conditional message.  \n■ The note can be pseudocode or just a plain sentence.  \nSolution in UML 2.0  \n■ Use an OPT frame.  \nAll types of Frames  \n■ Alt: Alternative fragment for mutual exclusion conditional logic expressed in the guards.  \n■ Loop: Loop fragment while guard is true.  \n■ Opt: Optional fragment that executes if guard is true.  \n■ Par: Parallel fragments that execute in parallel.  \n■ Region: Critical region within which only one thread can run.","cbCaihQT8VFfAmJc","https://ap.wps.com/l/cbCaihQT8VFfAmJc","pdf",160089,21,"English","# Collaboration and Time\n# A closer look\n## Components of Seq Diags\n# In this diagram ...\n# Problem\n# Solution in UML 1.4\n# Solution in UML 2.0\n# All types of Frames","[{\"question\":\"How do sequence diagrams differ from collaboration/communication diagrams in UML 2.0?\",\"answer\":\"Sequence diagrams emphasize temporal ordering of messages. Collaboration diagrams focus on interaction structure, while sequence diagrams do not provide association information.\"},{\"question\":\"What are the main components of a UML sequence diagram?\",\"answer\":\"They use a vertical time axis, horizontal object positions, dashed lifelines to show lifetime, activation rectangles for active execution time, and arrows to depict messages with labels.\"},{\"question\":\"How can UML 2.0 show that setAngle(int) is conditionally called?\",\"answer\":\"Use an OPT frame (optional fragment) so the diagram explicitly indicates that the message is executed only when the guard condition is true.\"}]","Lecture 12 - Sequence Diagrams - Collaboration and Time | PDF",1792963779,53,[147,151,155,158],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/ee2fea26d8b0335a3634bf316bf7a882.webp",983,736,{"page_no":14,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/328af01ae430ea6b0944e747e8d175e6.webp",982,735,{"page_no":81,"url":156,"width":157,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/16d916f3b4e84797b9087f3075f8c0ee.webp",981,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/1a978d032da0b8b12d48d3d2b8c73d42.webp",980,734,{"list":163,"token":66},[164,171,178,184,190,196,202,208,213,220],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":169,"category_name":30,"create_tm":170},655564,"Papyrus Tutorial - How to use Sequence Diagrams in Papyrus MDT - Version 0.1","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975285319/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796135819&Signature=IeGuNT8FfWQIMeS4Eu2tRDhqyZo%3D","papyrus-tutorial-how-to-use-sequence-diagrams-in-papyrus-mdt-version-01",15,1792962645,{"doc_id":172,"doc_title":173,"file_type":137,"home_preview_img_url":174,"slug":175,"view_count":176,"category_name":30,"create_tm":177},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=1796135819&Signature=1%2Fk7vfyNQR4g0X0E9vY8qHxYULk%3D","uml-sequence-diagrams-introduction-notation",12,1792962639,{"doc_id":179,"doc_title":180,"file_type":137,"home_preview_img_url":181,"slug":182,"view_count":44,"category_name":30,"create_tm":183},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=1796135819&Signature=eYW8NrrKcIAGaVHSqnPS7fUsTAs%3D","chap56gl-eng1",1792963195,{"doc_id":185,"doc_title":186,"file_type":137,"home_preview_img_url":187,"slug":188,"view_count":176,"category_name":30,"create_tm":189},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=1796135819&Signature=u3EPmqmIgIvOTk7wloaVOJ6UlaI%3D","uml-sequence-diagrams-engineering-notebook-column-april-98",1792962636,{"doc_id":191,"doc_title":192,"file_type":137,"home_preview_img_url":193,"slug":194,"view_count":176,"category_name":30,"create_tm":195},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=1796135819&Signature=Sr1pb%2F8sgvQR0x2rZoqVuD4Z%2B5Y%3D","visual-paradigm-handbook-sequence-diagram-overview-of-uml-sequence-diagram-concepts",1792963364,{"doc_id":197,"doc_title":198,"file_type":137,"home_preview_img_url":199,"slug":200,"view_count":39,"category_name":30,"create_tm":201},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=1796135819&Signature=o8Lys9laPiqVbnIKyfMwb3CcJSQ%3D","sequence-diagram-tutorial-chapter-4-use-cases-and-scenarios-uml-sequence-diagrams",1792962629,{"doc_id":203,"doc_title":204,"file_type":137,"home_preview_img_url":205,"slug":206,"view_count":52,"category_name":30,"create_tm":207},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=1796135819&Signature=%2FuCYBVa969KlqmzmLlkxrRX6DqU%3D","software-engineering-a-short-introduction-to-uml-sequence-diagrams",1792962882,{"doc_id":209,"doc_title":210,"file_type":137,"home_preview_img_url":211,"slug":212,"view_count":176,"category_name":30,"create_tm":201},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=1796135819&Signature=RQYu9nbsXZFnOBHuKL0m%2FoC%2Fcaw%3D","sequence-diagrams-uml-interaction-diagrams-for-scenarios",{"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},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=1796135819&Signature=S%2BDfi0b7UETGfadMo%2BrwVAtLqwQ%3D","sequence-diagrams-part-1-introduction-and-notations",16,1792962626,{"doc_id":221,"doc_title":222,"file_type":137,"home_preview_img_url":223,"slug":224,"view_count":29,"category_name":30,"create_tm":225},655559,"Concurrency in UML - Version 2.6 - A Guide for Representing Concurrent Execution","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975285294/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796135819&Signature=crCeGOuBGz8peCempTpV3ckavS0%3D","concurrency-in-uml-version-26-a-guide-for-representing-concurrent-execution",1792962632]