{"id":6490,"date":"2022-05-30T02:30:33","date_gmt":"2022-05-30T02:30:33","guid":{"rendered":"https:\/\/www.booksofall.com\/pl\/?post_type=product&#038;p=6490"},"modified":"2022-06-15T03:27:30","modified_gmt":"2022-06-15T03:27:30","slug":"uml-lecture-notes-sequence-diagrams","status":"publish","type":"product","link":"https:\/\/www.booksofall.com\/pl\/uml-lecture-notes-sequence-diagrams\/","title":{"rendered":"UML Lecture Notes: Sequence Diagrams"},"content":{"rendered":"<h3>Sequence Diagram<\/h3>\n<p>A\u00a0<b>sequence diagram<\/b>\u00a0or\u00a0<b>system sequence diagram<\/b>\u00a0(SSD) shows\u00a0<a title=\"Process (computing)\" href=\"https:\/\/en.wikipedia.org\/wiki\/Process_(computing)\">process<\/a>\u00a0interactions arranged in time sequence in the field of\u00a0<a title=\"Software engineering\" href=\"https:\/\/en.wikipedia.org\/wiki\/Software_engineering\">software engineering<\/a>. It depicts the processes involved and the sequence of messages exchanged between the processes needed to carry out the functionality. Sequence diagrams are typically associated with use case realizations in the\u00a0<a title=\"4+1 architectural view model\" href=\"https:\/\/en.wikipedia.org\/wiki\/4%2B1_architectural_view_model\">4+1 architectural view model<\/a>\u00a0of the system under development. Sequence diagrams are sometimes called\u00a0<b>event diagrams<\/b>\u00a0or\u00a0<b>event scenarios<\/b>.<\/p>\n<p>For a particular scenario of a\u00a0<a title=\"Use case\" href=\"https:\/\/en.wikipedia.org\/wiki\/Use_case\">use case<\/a>, the diagrams show the events that external actors generate, their order, and possible inter-system events.\u00a0<sup id=\"cite_ref-1\" class=\"reference\"><\/sup>All\u00a0<a title=\"Software system\" href=\"https:\/\/en.wikipedia.org\/wiki\/Software_system\">systems<\/a>\u00a0are treated as a\u00a0<a title=\"Black box\" href=\"https:\/\/en.wikipedia.org\/wiki\/Black_box\">black box<\/a>; the diagram places emphasis on events that cross the system boundary from actors to systems. A system sequence diagram should be done for the main success scenario of the\u00a0<a title=\"Use case\" href=\"https:\/\/en.wikipedia.org\/wiki\/Use_case\">use case<\/a>, and frequent or complex alternative scenarios.<\/p>\n<h3><span id=\"Key_elements\" class=\"mw-headline\">Key elements<\/span><\/h3>\n<p>A sequence diagram shows, as parallel vertical lines (<i>lifelines<\/i>), different processes or objects that live simultaneously, and, as horizontal arrows, the messages exchanged between them, in the order in which they occur. This allows the specification of simple runtime scenarios in a graphical manner.<\/p>\n<p>A system sequence diagram should specify and show the following:<\/p>\n<ul>\n<li>External actors<\/li>\n<li>Messages (methods) invoked by these actors<\/li>\n<li><a class=\"new\" title=\"Return values (page does not exist)\" href=\"https:\/\/en.wikipedia.org\/w\/index.php?title=Return_values&amp;action=edit&amp;redlink=1\">Return values<\/a>\u00a0(if any) associated with previous messages<\/li>\n<li>Indication of any loops or iteration area<\/li>\n<\/ul>\n<h3><span id=\"Reading_a_system_sequence_diagram\" class=\"mw-headline\">Reading a system sequence diagram<\/span><\/h3>\n<p>In developing a project, professionals often use system sequence diagrams to illustrate how certain tasks are done between users and the system. These tasks may include repetitive, simple, or complex tasks. The purpose is to illustrate the\u00a0<a title=\"Use case\" href=\"https:\/\/en.wikipedia.org\/wiki\/Use_case\">use case<\/a>\u00a0in a visual format. In order to construct a system sequence diagram, you need to be familiar with the\u00a0<a class=\"mw-redirect\" title=\"Unified modeling language\" href=\"https:\/\/en.wikipedia.org\/wiki\/Unified_modeling_language\">unified modeling language<\/a>\u00a0(UML). These models show the logic behind the actors (people who affect the system) and the system in performing the task. Reading a sequence diagram begins at the top with the actor(s) or the system(s) (which is located at the top of the page). Under each actor or system there are long dotted lines called lifelines, which are attached to them. Actions are performed with lines that extend between these lifelines. When an action line is connected to a lifeline it shows the interaction between the actor or system. Messages will often appear at the top or bottom of a system sequence diagram to illustrate the action in detail. For example, the actor could request to log in, represented by login (username, password). After each action is performed, the response or next action is located under the previous one. As you read down the lines you will see in detail how certain actions are performed in the provided model, and in what order.<\/p>\n<h3><span id=\"Diagram_building_blocks\" class=\"mw-headline\">Diagram building blocks<\/span><\/h3>\n<p>If the lifeline is that of an object, it demonstrates a role. Leaving the instance name blank can represent anonymous and unnamed instances.<\/p>\n<p>Messages, written with horizontal\u00a0<a title=\"Arrow (symbol)\" href=\"https:\/\/en.wikipedia.org\/wiki\/Arrow_(symbol)\">arrows<\/a>\u00a0with the message name written above them, display interaction. Solid arrow heads represent synchronous calls, open arrow heads represent\u00a0<a class=\"external text\" href=\"http:\/\/www.uml-diagrams.org\/sequence-diagrams.html\" rel=\"nofollow\">asynchronous messages<\/a>, and dashed lines represent reply messages.\u00a0<sup id=\"cite_ref-2\" class=\"reference\"><\/sup>If a caller sends a synchronous message, it must wait until the message is done, such as invoking a subroutine. If a caller sends an asynchronous message, it can continue processing and doesn\u2019t have to wait for a response. Asynchronous calls are present in multithreaded applications, event-driven applications and in\u00a0<a title=\"Message-oriented middleware\" href=\"https:\/\/en.wikipedia.org\/wiki\/Message-oriented_middleware\">message-oriented middleware<\/a>. Activation boxes, or\u00a0<a class=\"mw-redirect\" title=\"Method (computer science)\" href=\"https:\/\/en.wikipedia.org\/wiki\/Method_(computer_science)\">method<\/a>-call boxes, are opaque rectangles drawn on top of lifelines to represent that processes are being performed in response to the message (ExecutionSpecifications in\u00a0<a title=\"Unified Modeling Language\" href=\"https:\/\/en.wikipedia.org\/wiki\/Unified_Modeling_Language\">UML<\/a>).<\/p>\n<p>Objects calling methods on themselves use messages and add new activation boxes on top of any others to indicate a further level of\u00a0<a title=\"Process (computing)\" href=\"https:\/\/en.wikipedia.org\/wiki\/Process_(computing)\">processing<\/a>. If an object is\u00a0<a title=\"Object lifetime\" href=\"https:\/\/en.wikipedia.org\/wiki\/Object_lifetime\">destroyed<\/a>\u00a0(removed from\u00a0<a class=\"mw-redirect\" title=\"Computer storage\" href=\"https:\/\/en.wikipedia.org\/wiki\/Computer_storage\">memory<\/a>), an X is drawn on bottom of the lifeline, and the dashed line ceases to be drawn below it. It should be the result of a message, either from the object itself, or another.<\/p>\n<p>A message sent from outside the diagram can be represented by a message originating from a filled-in circle (<i>found message<\/i>\u00a0in UML) or from a border of the sequence diagram (<i>gate<\/i>\u00a0in UML).<\/p>\n<p>UML has introduced significant improvements to the capabilities of sequence diagrams. Most of these improvements are based on the idea of\u00a0<i>interaction fragments\u00a0<\/i><sup id=\"cite_ref-3\" class=\"reference\"><\/sup>which represent smaller pieces of an enclosing interaction. Multiple interaction fragments are combined to create a variety of\u00a0<i>combined fragments<\/i>,\u00a0<sup id=\"cite_ref-4\" class=\"reference\"><\/sup>which are then used to model interactions that include parallelism, conditional branches, optional interactions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><iframe style=\"width: 100%; height: 700px; border: none;\" src=\"https:\/\/online.visual-paradigm.com\/share\/book\/uml-lecture-notes--sequence-diagrams-yy1zj0pzz?enforceShowPromotionBar=true\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n","protected":false},"featured_media":6493,"template":"","meta":{"_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"A\u00a0sequence diagram\u00a0or SSD shows\u00a0process\u00a0interactions arranged in time sequence in the field of\u00a0software engineering."},"product_brand":[],"product_cat":[213],"product_tag":[201],"class_list":{"0":"post-6490","1":"product","2":"type-product","3":"status-publish","4":"has-post-thumbnail","6":"product_cat-computer-uml","7":"product_tag-lecture-notes","9":"first","10":"instock","11":"shipping-taxable","12":"product-type-simple"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>UML Lecture Notes: Sequence Diagrams - BooksOfAll Polish<\/title>\n<meta name=\"description\" content=\"A\u00a0sequence diagram\u00a0or SSD shows\u00a0process\u00a0interactions arranged in time sequence in the field of\u00a0software engineering.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.booksofall.com\/pl\/uml-lecture-notes-sequence-diagrams\/\" \/>\n<meta property=\"og:locale\" content=\"pl_PL\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"UML Lecture Notes: Sequence Diagrams - BooksOfAll Polish\" \/>\n<meta property=\"og:description\" content=\"A\u00a0sequence diagram\u00a0or SSD shows\u00a0process\u00a0interactions arranged in time sequence in the field of\u00a0software engineering.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.booksofall.com\/pl\/uml-lecture-notes-sequence-diagrams\/\" \/>\n<meta property=\"og:site_name\" content=\"BooksOfAll Polish\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-15T03:27:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.booksofall.com\/pl\/wp-content\/uploads\/sites\/11\/2022\/06\/img_62a18f278530d.jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.booksofall.com\/pl\/wp-content\/uploads\/sites\/11\/2022\/06\/img_62a18f278530d.jpeg\" \/>\n<meta name=\"twitter:label1\" content=\"Szacowany czas czytania\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minuty\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.booksofall.com\/pl\/uml-lecture-notes-sequence-diagrams\/\",\"url\":\"https:\/\/www.booksofall.com\/pl\/uml-lecture-notes-sequence-diagrams\/\",\"name\":\"UML Lecture Notes: Sequence Diagrams - BooksOfAll Polish\",\"isPartOf\":{\"@id\":\"https:\/\/www.booksofall.com\/pl\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.booksofall.com\/pl\/uml-lecture-notes-sequence-diagrams\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.booksofall.com\/pl\/uml-lecture-notes-sequence-diagrams\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.booksofall.com\/pl\/wp-content\/uploads\/sites\/11\/2022\/06\/img_62a18f278530d.jpeg\",\"datePublished\":\"2022-05-30T02:30:33+00:00\",\"dateModified\":\"2022-06-15T03:27:30+00:00\",\"description\":\"A\u00a0sequence diagram\u00a0or SSD shows\u00a0process\u00a0interactions arranged in time sequence in the field of\u00a0software engineering.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.booksofall.com\/pl\/uml-lecture-notes-sequence-diagrams\/#breadcrumb\"},\"inLanguage\":\"pl-PL\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.booksofall.com\/pl\/uml-lecture-notes-sequence-diagrams\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pl-PL\",\"@id\":\"https:\/\/www.booksofall.com\/pl\/uml-lecture-notes-sequence-diagrams\/#primaryimage\",\"url\":\"https:\/\/www.booksofall.com\/pl\/wp-content\/uploads\/sites\/11\/2022\/06\/img_62a18f278530d.jpeg\",\"contentUrl\":\"https:\/\/www.booksofall.com\/pl\/wp-content\/uploads\/sites\/11\/2022\/06\/img_62a18f278530d.jpeg\",\"width\":\"596\",\"height\":\"842\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.booksofall.com\/pl\/uml-lecture-notes-sequence-diagrams\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.booksofall.com\/pl\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Categories\",\"item\":\"https:\/\/www.booksofall.com\/pl\/categories\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"UML Lecture Notes: Sequence Diagrams\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.booksofall.com\/pl\/#website\",\"url\":\"https:\/\/www.booksofall.com\/pl\/\",\"name\":\"BooksOfAll Polish\",\"description\":\"Biggest IT eBooks library and learning resources - Free eBooks for programming, computing, artificial intelligence and more.\",\"publisher\":{\"@id\":\"https:\/\/www.booksofall.com\/pl\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.booksofall.com\/pl\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pl-PL\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.booksofall.com\/pl\/#organization\",\"name\":\"BooksOfAll Polish\",\"url\":\"https:\/\/www.booksofall.com\/pl\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pl-PL\",\"@id\":\"https:\/\/www.booksofall.com\/pl\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.booksofall.com\/pl\/wp-content\/uploads\/sites\/11\/2022\/06\/booksofall-logo-2.png\",\"contentUrl\":\"https:\/\/www.booksofall.com\/pl\/wp-content\/uploads\/sites\/11\/2022\/06\/booksofall-logo-2.png\",\"width\":166,\"height\":30,\"caption\":\"BooksOfAll Polish\"},\"image\":{\"@id\":\"https:\/\/www.booksofall.com\/pl\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"UML Lecture Notes: Sequence Diagrams - BooksOfAll Polish","description":"A\u00a0sequence diagram\u00a0or SSD shows\u00a0process\u00a0interactions arranged in time sequence in the field of\u00a0software engineering.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.booksofall.com\/pl\/uml-lecture-notes-sequence-diagrams\/","og_locale":"pl_PL","og_type":"article","og_title":"UML Lecture Notes: Sequence Diagrams - BooksOfAll Polish","og_description":"A\u00a0sequence diagram\u00a0or SSD shows\u00a0process\u00a0interactions arranged in time sequence in the field of\u00a0software engineering.","og_url":"https:\/\/www.booksofall.com\/pl\/uml-lecture-notes-sequence-diagrams\/","og_site_name":"BooksOfAll Polish","article_modified_time":"2022-06-15T03:27:30+00:00","og_image":[{"url":"https:\/\/www.booksofall.com\/pl\/wp-content\/uploads\/sites\/11\/2022\/06\/img_62a18f278530d.jpeg","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_image":"https:\/\/www.booksofall.com\/pl\/wp-content\/uploads\/sites\/11\/2022\/06\/img_62a18f278530d.jpeg","twitter_misc":{"Szacowany czas czytania":"4 minuty"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.booksofall.com\/pl\/uml-lecture-notes-sequence-diagrams\/","url":"https:\/\/www.booksofall.com\/pl\/uml-lecture-notes-sequence-diagrams\/","name":"UML Lecture Notes: Sequence Diagrams - BooksOfAll Polish","isPartOf":{"@id":"https:\/\/www.booksofall.com\/pl\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.booksofall.com\/pl\/uml-lecture-notes-sequence-diagrams\/#primaryimage"},"image":{"@id":"https:\/\/www.booksofall.com\/pl\/uml-lecture-notes-sequence-diagrams\/#primaryimage"},"thumbnailUrl":"https:\/\/www.booksofall.com\/pl\/wp-content\/uploads\/sites\/11\/2022\/06\/img_62a18f278530d.jpeg","datePublished":"2022-05-30T02:30:33+00:00","dateModified":"2022-06-15T03:27:30+00:00","description":"A\u00a0sequence diagram\u00a0or SSD shows\u00a0process\u00a0interactions arranged in time sequence in the field of\u00a0software engineering.","breadcrumb":{"@id":"https:\/\/www.booksofall.com\/pl\/uml-lecture-notes-sequence-diagrams\/#breadcrumb"},"inLanguage":"pl-PL","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.booksofall.com\/pl\/uml-lecture-notes-sequence-diagrams\/"]}]},{"@type":"ImageObject","inLanguage":"pl-PL","@id":"https:\/\/www.booksofall.com\/pl\/uml-lecture-notes-sequence-diagrams\/#primaryimage","url":"https:\/\/www.booksofall.com\/pl\/wp-content\/uploads\/sites\/11\/2022\/06\/img_62a18f278530d.jpeg","contentUrl":"https:\/\/www.booksofall.com\/pl\/wp-content\/uploads\/sites\/11\/2022\/06\/img_62a18f278530d.jpeg","width":"596","height":"842"},{"@type":"BreadcrumbList","@id":"https:\/\/www.booksofall.com\/pl\/uml-lecture-notes-sequence-diagrams\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.booksofall.com\/pl\/"},{"@type":"ListItem","position":2,"name":"Categories","item":"https:\/\/www.booksofall.com\/pl\/categories\/"},{"@type":"ListItem","position":3,"name":"UML Lecture Notes: Sequence Diagrams"}]},{"@type":"WebSite","@id":"https:\/\/www.booksofall.com\/pl\/#website","url":"https:\/\/www.booksofall.com\/pl\/","name":"BooksOfAll Polish","description":"Biggest IT eBooks library and learning resources - Free eBooks for programming, computing, artificial intelligence and more.","publisher":{"@id":"https:\/\/www.booksofall.com\/pl\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.booksofall.com\/pl\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pl-PL"},{"@type":"Organization","@id":"https:\/\/www.booksofall.com\/pl\/#organization","name":"BooksOfAll Polish","url":"https:\/\/www.booksofall.com\/pl\/","logo":{"@type":"ImageObject","inLanguage":"pl-PL","@id":"https:\/\/www.booksofall.com\/pl\/#\/schema\/logo\/image\/","url":"https:\/\/www.booksofall.com\/pl\/wp-content\/uploads\/sites\/11\/2022\/06\/booksofall-logo-2.png","contentUrl":"https:\/\/www.booksofall.com\/pl\/wp-content\/uploads\/sites\/11\/2022\/06\/booksofall-logo-2.png","width":166,"height":30,"caption":"BooksOfAll Polish"},"image":{"@id":"https:\/\/www.booksofall.com\/pl\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.booksofall.com\/pl\/wp-json\/wp\/v2\/product\/6490","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.booksofall.com\/pl\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/www.booksofall.com\/pl\/wp-json\/wp\/v2\/types\/product"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.booksofall.com\/pl\/wp-json\/wp\/v2\/media\/6493"}],"wp:attachment":[{"href":"https:\/\/www.booksofall.com\/pl\/wp-json\/wp\/v2\/media?parent=6490"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/www.booksofall.com\/pl\/wp-json\/wp\/v2\/product_brand?post=6490"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.booksofall.com\/pl\/wp-json\/wp\/v2\/product_cat?post=6490"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/www.booksofall.com\/pl\/wp-json\/wp\/v2\/product_tag?post=6490"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}