{"id":4689,"date":"2016-09-19T10:19:50","date_gmt":"2016-09-19T09:19:50","guid":{"rendered":"http:\/\/smart--grid.net\/?page_id=4689"},"modified":"2022-12-03T23:00:12","modified_gmt":"2022-12-03T22:00:12","slug":"diagramme-de-cas-dutilisation","status":"publish","type":"page","link":"https:\/\/complex-systems-ai.com\/en\/software-analysis\/use-case-diagram\/","title":{"rendered":"Use case diagram"},"content":{"rendered":"<div data-elementor-type=\"wp-page\" data-elementor-id=\"4689\" class=\"elementor elementor-4689\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-47f0fe4 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"47f0fe4\" 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-73ad3f9\" data-id=\"73ad3f9\" 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-1598e41 elementor-align-justify elementor-widget elementor-widget-button\" data-id=\"1598e41\" 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-045d048\" data-id=\"045d048\" 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-d416ba5 elementor-align-justify elementor-widget elementor-widget-button\" data-id=\"d416ba5\" 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-4d94113\" data-id=\"4d94113\" 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-e7ca87c elementor-align-justify elementor-widget elementor-widget-button\" data-id=\"e7ca87c\" 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_cas_d%27utilisation\" 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-102829c1 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"102829c1\" 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-1e8a8352\" data-id=\"1e8a8352\" 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-30816b9a elementor-widget elementor-widget-text-editor\" data-id=\"30816b9a\" 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\/use-case-diagram\/#Diagramme-de-cas-dutilisation\" >Use case 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\/use-case-diagram\/#Acteur\" >Actor<\/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\/use-case-diagram\/#Cas-dutilisation\" >Use case<\/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\/use-case-diagram\/#Relations\" >Relationships<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Diagramme-de-cas-dutilisation\"><\/span>Use case diagram<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The first question to ask yourself is: &quot;What will the software be used for?&quot; &quot;. The use case diagram. The use case diagram includes actors and use cases. It is important to provide with a diagram of use a detailed description if possible including a nominal scenario (typical sequence) and alternative sequences on the particular cases.<\/p>\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Acteur\"><\/span>Actor<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n<p>The first are represented by figures. An actor is an entity external to the modeled system and which interacts directly with it. The actors are the users of the system: integrated software, external computer systems, an element external to the system with which it interacts.<\/p>\n\n<p>Actors are therefore roles and not a physical person. A natural person can be represented by different actors. If several people play the same role vis-\u00e0-vis the system, they will be represented by a single actor.<\/p>\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" class=\"alignnone wp-image-4829 size-full\" src=\"https:\/\/complex-systems-ai.com\/wp-content\/uploads\/2016\/09\/casutilisation1.png\" alt=\"use case diagram uml actor relationship\" width=\"68\" height=\"98\" title=\"\"><\/figure>\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Cas-dutilisation\"><\/span>Use case<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n<p>A use case is a service rendered to an actor, it is a functionality by the latter. Actors requesting services from systems are called primary actors. When they are called upon by the system, they are called secondary actors.<\/p>\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone wp-image-4840 size-full\" src=\"https:\/\/complex-systems-ai.com\/wp-content\/uploads\/2016\/09\/casutilisation2.png\" alt=\"use case diagram uml actor relationship\" width=\"530\" height=\"194\" title=\"\" srcset=\"https:\/\/complex-systems-ai.com\/wp-content\/uploads\/2016\/09\/casutilisation2.png 530w, https:\/\/complex-systems-ai.com\/wp-content\/uploads\/2016\/09\/casutilisation2-300x110.png 300w\" sizes=\"(max-width: 530px) 100vw, 530px\" \/><\/figure>\n\n<h1 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Relations\"><\/span>Relationships<span class=\"ez-toc-section-end\"><\/span><\/h1>\n\n<p>There are several types of relationship: between actors, between use cases or between actor and use cases.<\/p>\n\n<p>Relations between actors symbolize a generalization, and is represented by a solid line and an empty arrow. There is generalization between A and B if we can say &quot;A is a kind of B&quot;. This would amount to inheritance in an object oriented language.<\/p>\n\n<p>There are two possible relationships between use cases (we have already seen the generalization). The inclusion between A and B means that B is an obligatory part of A. In the other direction we speak of extension, B is an optional part of A. It is represented by a dotted arrow from A to B. On can read A includes B or B extends A.<\/p>\n\n<p>the inclusion and extension relationships allow a reusable service to be isolated as part of several other use cases, this is called reuse.<\/p>\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" class=\"alignnone wp-image-4856 size-full\" src=\"https:\/\/complex-systems-ai.com\/wp-content\/uploads\/2016\/09\/casutilisation3.png\" alt=\"use case diagram uml actor relationship\" width=\"472\" height=\"212\" title=\"\" srcset=\"https:\/\/complex-systems-ai.com\/wp-content\/uploads\/2016\/09\/casutilisation3.png 472w, https:\/\/complex-systems-ai.com\/wp-content\/uploads\/2016\/09\/casutilisation3-300x135.png 300w\" sizes=\"(max-width: 472px) 100vw, 472px\" \/><\/figure>\n\n<p>It may happen that a use case covers a set of exchanges and treatments. In this case, the inclusion and extension relations allow us to better write the case.<\/p>\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4861 size-full\" src=\"https:\/\/complex-systems-ai.com\/wp-content\/uploads\/2016\/09\/casutilisation4.png\" alt=\"use case diagram uml actor relationship\" width=\"460\" height=\"206\" title=\"\" srcset=\"https:\/\/complex-systems-ai.com\/wp-content\/uploads\/2016\/09\/casutilisation4.png 460w, https:\/\/complex-systems-ai.com\/wp-content\/uploads\/2016\/09\/casutilisation4-300x134.png 300w\" sizes=\"(max-width: 460px) 100vw, 460px\" \/><\/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 Wiki home page Use case diagram The first question to ask is: &quot;What will the software be used for?&quot; &quot;. The \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-4689","page","type-page","status-publish","hentry"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/complex-systems-ai.com\/en\/wp-json\/wp\/v2\/pages\/4689","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=4689"}],"version-history":[{"count":4,"href":"https:\/\/complex-systems-ai.com\/en\/wp-json\/wp\/v2\/pages\/4689\/revisions"}],"predecessor-version":[{"id":17952,"href":"https:\/\/complex-systems-ai.com\/en\/wp-json\/wp\/v2\/pages\/4689\/revisions\/17952"}],"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=4689"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}