{"id":4248,"date":"2016-09-01T12:53:27","date_gmt":"2016-09-01T11:53:27","guid":{"rendered":"http:\/\/smart--grid.net\/?page_id=4248"},"modified":"2022-12-03T23:00:11","modified_gmt":"2022-12-03T22:00:11","slug":"diagramme-de-sequence","status":"publish","type":"page","link":"https:\/\/complex-systems-ai.com\/en\/software-analysis\/sequence-diagram\/","title":{"rendered":"Sequence diagram"},"content":{"rendered":"<div data-elementor-type=\"wp-page\" data-elementor-id=\"4248\" class=\"elementor elementor-4248\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-b386f5c elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"b386f5c\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-96facb4\" data-id=\"96facb4\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-a2a713c elementor-align-justify elementor-widget elementor-widget-button\" data-id=\"a2a713c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"button.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-button-wrapper\">\n\t\t\t\t\t<a class=\"elementor-button elementor-button-link elementor-size-sm\" href=\"https:\/\/complex-systems-ai.com\/en\/software-analysis\/\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">Software analysis<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-54127ef\" data-id=\"54127ef\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-8fa9b9f elementor-align-justify elementor-widget elementor-widget-button\" data-id=\"8fa9b9f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"button.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-button-wrapper\">\n\t\t\t\t\t<a class=\"elementor-button elementor-button-link elementor-size-sm\" href=\"https:\/\/complex-systems-ai.com\/en\/\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">Home page<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-33 elementor-top-column elementor-element elementor-element-ca1f5f6\" data-id=\"ca1f5f6\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-c5b96df elementor-align-justify elementor-widget elementor-widget-button\" data-id=\"c5b96df\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"button.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-button-wrapper\">\n\t\t\t\t\t<a class=\"elementor-button elementor-button-link elementor-size-sm\" href=\"https:\/\/fr.wikipedia.org\/wiki\/Diagramme_de_s%C3%A9quence\" target=\"_blank\" rel=\"noopener\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">Wiki<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-5e85b8b elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"5e85b8b\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-9992378\" data-id=\"9992378\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-151dd67f elementor-widget elementor-widget-text-editor\" data-id=\"151dd67f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1' ><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/complex-systems-ai.com\/en\/software-analysis\/sequence-diagram\/#Diagramme-de-sequence\" >Sequence diagram<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/complex-systems-ai.com\/en\/software-analysis\/sequence-diagram\/#Ligne-de-vie-des-objets\" >Object lifeline<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/complex-systems-ai.com\/en\/software-analysis\/sequence-diagram\/#Messages-et-activites\" >Messages and activities<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/complex-systems-ai.com\/en\/software-analysis\/sequence-diagram\/#Exemple\" >Example<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Diagramme-de-sequence\"><\/span>Sequence diagram<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>the <b>sequence diagram<\/b> is the graphic representation of the interactions between the actors and the system in chronological order in the Unified Modeling Language formulation:<\/p>\n\n<ul class=\"wp-block-list\">\n<li>Description of the order of interactions between the objects that make up the system.<\/li>\n<li>Representation focusing on the sequence of interactions from a temporal point of view.<\/li>\n<\/ul>\n\n<p>Sequence diagrams are interaction diagrams like collaboration diagrams. They are suitable for modeling the dynamic aspects of real-time systems and complex scenarios involving few objects.<\/p>\n\n<p>An interaction results in the sending of a message between objects. The sequence diagram makes it possible to show the objects involved in the interaction; description of the interaction and interactions between stakeholders.<\/p>\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Ligne-de-vie-des-objets\"><\/span>Object lifeline<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n<p>The object is made up of its role and \/ or the name of the instantiated class. The name is underlined to indicate that it is an instance. An object is always accompanied by its lifeline. It is represented by a vertical line below the object. It represents the period of time during which the instantiated object exists.<\/p>\n\n<p>To represent an object creation, a message points to the object symbol. The destruction of the object is represented by the end of its lifeline.<\/p>\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone wp-image-4573 size-full\" src=\"https:\/\/complex-systems-ai.com\/wp-content\/uploads\/2016\/09\/seq1.png\" alt=\"lifeline uml sequence diagram\" width=\"280\" height=\"202\" title=\"\"><\/figure>\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Messages-et-activites\"><\/span>Messages and activities<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n<p>Objects communicate by exchanging messages represented in the form of arrows. The vertical dimension represents the passage of time. A message placed below another will therefore be sent after the first. Messages are often labeled by the name of the operation or signal invoked. The message can represent an activation of the objects, a label, be a sequential sending or a parallel sending of n instances of the same message, and can have arguments.<\/p>\n\n<p>A results return message is shown in dotted lines. the sending of recursive messages is represented by a doubling of the activation band. An object can send itself a message.<\/p>\n\n<p>Messages are mainly sent during an activity, and trigger other activities. An activity period is the time during which an object performs a direct or indirect action. It is represented by a vertical strip along the object&#039;s lifeline.<\/p>\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" class=\"alignnone wp-image-4583 size-full\" src=\"https:\/\/complex-systems-ai.com\/wp-content\/uploads\/2016\/09\/seq2.png\" alt=\"uml sequence diagram lifeline message activity\" width=\"465\" height=\"133\" title=\"\" srcset=\"https:\/\/complex-systems-ai.com\/wp-content\/uploads\/2016\/09\/seq2.png 465w, https:\/\/complex-systems-ai.com\/wp-content\/uploads\/2016\/09\/seq2-300x86.png 300w\" sizes=\"(max-width: 465px) 100vw, 465px\" \/><\/figure>\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Exemple\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n<p>Let&#039;s take an example on a condition:<\/p>\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" class=\"alignnone wp-image-4593 size-full\" src=\"https:\/\/complex-systems-ai.com\/wp-content\/uploads\/2016\/09\/seq3.png\" alt=\"uml sequence diagram lifeline message activity\" width=\"426\" height=\"521\" title=\"\" srcset=\"https:\/\/complex-systems-ai.com\/wp-content\/uploads\/2016\/09\/seq3.png 426w, https:\/\/complex-systems-ai.com\/wp-content\/uploads\/2016\/09\/seq3-245x300.png 245w\" sizes=\"(max-width: 426px) 100vw, 426px\" \/><\/figure>\n\n<p>Or a loop:<\/p>\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4597 size-full\" src=\"https:\/\/complex-systems-ai.com\/wp-content\/uploads\/2016\/09\/seq4.png\" alt=\"uml sequence diagram lifeline message activity\" width=\"374\" height=\"141\" title=\"\" srcset=\"https:\/\/complex-systems-ai.com\/wp-content\/uploads\/2016\/09\/seq4.png 374w, https:\/\/complex-systems-ai.com\/wp-content\/uploads\/2016\/09\/seq4-300x113.png 300w\" sizes=\"(max-width: 374px) 100vw, 374px\" \/><\/figure>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>Software analysis Home page Wiki Sequence diagram The sequence diagram is the graphical representation of the interactions between the actors and the system according to \u2026 <\/p>","protected":false},"author":1,"featured_media":0,"parent":4609,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-4248","page","type-page","status-publish","hentry"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/complex-systems-ai.com\/en\/wp-json\/wp\/v2\/pages\/4248","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/complex-systems-ai.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/complex-systems-ai.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/complex-systems-ai.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/complex-systems-ai.com\/en\/wp-json\/wp\/v2\/comments?post=4248"}],"version-history":[{"count":4,"href":"https:\/\/complex-systems-ai.com\/en\/wp-json\/wp\/v2\/pages\/4248\/revisions"}],"predecessor-version":[{"id":17948,"href":"https:\/\/complex-systems-ai.com\/en\/wp-json\/wp\/v2\/pages\/4248\/revisions\/17948"}],"up":[{"embeddable":true,"href":"https:\/\/complex-systems-ai.com\/en\/wp-json\/wp\/v2\/pages\/4609"}],"wp:attachment":[{"href":"https:\/\/complex-systems-ai.com\/en\/wp-json\/wp\/v2\/media?parent=4248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}