{"id":6486,"date":"2022-05-30T02:21:49","date_gmt":"2022-05-30T02:21:49","guid":{"rendered":"https:\/\/www.booksofall.com\/tw\/?post_type=product&#038;p=6486"},"modified":"2022-06-15T03:27:27","modified_gmt":"2022-06-15T03:27:27","slug":"uml-use-case-and-class-diagram","status":"publish","type":"product","link":"https:\/\/www.booksofall.com\/tw\/uml-use-case-and-class-diagram\/","title":{"rendered":"UML (Use Case and Class Diagram)"},"content":{"rendered":"<h3 id=\"firstHeading\" class=\"firstHeading mw-first-heading\">Use case diagram<\/h3>\n<p>A\u00a0<b>use case diagram<\/b>\u00a0is a graphical depiction of a user&#8217;s possible interactions with a system. A use case diagram shows various use cases and different types of users the system has and will often be accompanied by other types of diagrams as well. The use cases are represented by either circles or ellipses. The actors are often shown as stick figures.<\/p>\n<h4><span id=\"Application\" class=\"mw-headline\">Application<\/span><\/h4>\n<p>While a\u00a0<a title=\"Use case\" href=\"https:\/\/en.wikipedia.org\/wiki\/Use_case\">use case<\/a>\u00a0itself might drill into a lot of detail about every possibility, a use-case diagram can help provide a higher-level view of the system. It has been said before that &#8220;Use case diagrams are the blueprints for your system&#8221;.<sup id=\"cite_ref-1\" class=\"reference\"><\/sup><\/p>\n<p>Due to their simplistic nature, use case diagrams can be a good communication tool for\u00a0<a title=\"\" href=\"https:\/\/en.wikipedia.org\/wiki\/Project_stakeholder\">stakeholders<\/a>. The drawings attempt to mimic the real world and provide a view for the\u00a0<a title=\"Project stakeholder\" href=\"https:\/\/en.wikipedia.org\/wiki\/Project_stakeholder\">stakeholder<\/a>\u00a0to understand how the system is going to be designed. Siau and Lee conducted research to determine if there was a valid situation for use case diagrams at all or if they were unnecessary. What was found was that the use case diagrams conveyed the intent of the system in a more simplified manner to\u00a0<a title=\"Project stakeholder\" href=\"https:\/\/en.wikipedia.org\/wiki\/Project_stakeholder\">stakeholders<\/a>\u00a0and that they were &#8220;interpreted more completely than class diagrams&#8221;.<\/p>\n<h3 id=\"firstHeading\" class=\"firstHeading mw-first-heading\">Class diagram<\/h3>\n<p>In\u00a0<a title=\"Software engineering\" href=\"https:\/\/en.wikipedia.org\/wiki\/Software_engineering\">software engineering<\/a>, a\u00a0<b>class diagram<\/b>\u00a0in the\u00a0<a title=\"Unified Modeling Language\" href=\"https:\/\/en.wikipedia.org\/wiki\/Unified_Modeling_Language\">Unified Modeling Language<\/a>\u00a0(UML) is a type of static structure diagram that describes the structure of a system by showing the system&#8217;s\u00a0<a class=\"mw-redirect\" title=\"Class (computer science)\" href=\"https:\/\/en.wikipedia.org\/wiki\/Class_(computer_science)\">classes<\/a>, their attributes, operations (or methods), and the relationships among objects.<\/p>\n<p>The class diagram is the main building block of\u00a0<a title=\"Object-oriented programming\" href=\"https:\/\/en.wikipedia.org\/wiki\/Object-oriented_programming\">object-oriented<\/a>\u00a0modeling. It is used for general\u00a0<a title=\"Conceptual model\" href=\"https:\/\/en.wikipedia.org\/wiki\/Conceptual_model\">conceptual modeling<\/a>\u00a0of the structure of the application, and for detailed modeling, translating the models into\u00a0<a class=\"mw-redirect\" title=\"Programming code\" href=\"https:\/\/en.wikipedia.org\/wiki\/Programming_code\">programming code<\/a>. Class diagrams can also be used for\u00a0<a title=\"Data modeling\" href=\"https:\/\/en.wikipedia.org\/wiki\/Data_modeling\">data modeling<\/a>. <sup id=\"cite_ref-1\" class=\"reference\"><\/sup>The classes in a class diagram represent both the main elements, interactions in the application, and the classes to be programmed.<\/p>\n<p>In the diagram, classes are represented with boxes that contain three compartments:<\/p>\n<ul>\n<li>The top compartment contains the name of the class. It is printed in bold and centered, and the first letter is capitalized.<\/li>\n<li>The middle compartment contains the attributes of the class. They are left-aligned and the first letter is lowercase.<\/li>\n<li>The bottom compartment contains the operations the class can execute. They are also left-aligned and the first letter is lowercase.<\/li>\n<\/ul>\n<div class=\"thumb tright\">\n<div class=\"thumbinner\">\n<div class=\"thumbcaption\">A class with three compartments.<\/div>\n<\/div>\n<\/div>\n<p>In the design of a system, a number of classes are identified and grouped together in a class diagram that helps to determine the static relations between them. In detailed modeling, the classes of the conceptual design are often split into subclasses.<\/p>\n<p>In order to further describe the behavior of systems, these class diagrams can be complemented by a\u00a0<a title=\"State diagram\" href=\"https:\/\/en.wikipedia.org\/wiki\/State_diagram\">state diagram<\/a>\u00a0or\u00a0<a title=\"UML state machine\" href=\"https:\/\/en.wikipedia.org\/wiki\/UML_state_machine\">UML state machine<\/a>.<\/p>\n<h4><span id=\"Members\" class=\"mw-headline\">Members<\/span><\/h4>\n<p>UML provides mechanisms to represent class members, such as attributes and methods, and additional information about them like constructors.<\/p>\n<h5><span id=\"Visibility\" class=\"mw-headline\">Visibility<\/span><\/h5>\n<p>To specify the visibility of a class member (i.e. any attribute or method), these notations must be placed before the members&#8217; name:<sup id=\"cite_ref-HOL07_3-0\" class=\"reference\"><\/sup><\/p>\n<table class=\"wikitable&lt;beta\">\n<tbody>\n<tr>\n<td><code>+<\/code><\/td>\n<td>Public<\/td>\n<\/tr>\n<tr>\n<td><code>-<\/code><\/td>\n<td>Private<\/td>\n<\/tr>\n<tr>\n<td><code>#<\/code><\/td>\n<td>Protected<\/td>\n<\/tr>\n<tr>\n<td><code>~<\/code><\/td>\n<td>Package<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>A\u00a0<b>derived property<\/b>\u00a0is a property whose value (or values) is produced or computed from other information, for example, by using values of other properties.<\/p>\n<p>A derived property is shown with its name preceded by a forward slash &#8216;\/&#8217;.<sup id=\"cite_ref-4\" class=\"reference\"><\/sup><\/p>\n<h5><span id=\"Scope\" class=\"mw-headline\">Scope<\/span><\/h5>\n<p>The UML specifies two types of\u00a0<a title=\"Scope (computer science)\" href=\"https:\/\/en.wikipedia.org\/wiki\/Scope_(computer_science)\">scope<\/a>\u00a0for members:\u00a0<i>instance<\/i>\u00a0and\u00a0<i>class<\/i>, and the latter is represented by\u00a0<u>underlined names<\/u>.<sup id=\"cite_ref-OMG00_5-0\" class=\"reference\"><\/sup><\/p>\n<ul>\n<li><b>Instance members<\/b>\u00a0are scoped to a specific instance.\n<ul>\n<li>Attribute values may vary between instances<\/li>\n<li>Method invocation may affect the instance\u2019s state (i.e. change instance\u2019s attributes)<\/li>\n<\/ul>\n<\/li>\n<li><b>Class members<\/b>\u00a0are commonly recognized as \u201cstatic\u201d in many programming languages. The scope is the class itself.\n<ul>\n<li>Attribute values are equal for all instances<\/li>\n<li>Method invocation does not affect the classifier\u2019s state<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>To indicate a classifier scope for a member, its name must be underlined. Otherwise, instance scope is assumed by default.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><iframe style=\"width: 100%; height: 700px; border: none;\" src=\"https:\/\/online.visual-paradigm.com\/share\/book\/uml-use-case-and-class-diagram--yy1dgsps2?enforceShowPromotionBar=true\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n","protected":false},"featured_media":6489,"template":"","meta":{"_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"UML or Unified Modelling Language is a multipurpose modelling language that aims to providea standard for modelling a system."},"product_brand":[],"product_cat":[213],"product_tag":[201],"class_list":{"0":"post-6486","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 (Use Case and Class Diagram) - BooksOfAll Traditional Chinese<\/title>\n<meta name=\"description\" content=\"UML or Unified Modelling Language is a multipurpose modelling language that aims to providea standard for modelling a system.\" \/>\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\/tw\/uml-use-case-and-class-diagram\/\" \/>\n<meta property=\"og:locale\" content=\"zh_TW\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"UML (Use Case and Class Diagram) - BooksOfAll Traditional Chinese\" \/>\n<meta property=\"og:description\" content=\"UML or Unified Modelling Language is a multipurpose modelling language that aims to providea standard for modelling a system.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.booksofall.com\/tw\/uml-use-case-and-class-diagram\/\" \/>\n<meta property=\"og:site_name\" content=\"BooksOfAll Traditional Chinese\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-15T03:27:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.booksofall.com\/tw\/wp-content\/uploads\/sites\/3\/2022\/06\/img_62a18ef68f87b.jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.booksofall.com\/tw\/wp-content\/uploads\/sites\/3\/2022\/06\/img_62a18ef68f87b.jpeg\" \/>\n<meta name=\"twitter:label1\" content=\"\u9810\u4f30\u95b1\u8b80\u6642\u9593\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 \u5206\u9418\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.booksofall.com\/tw\/uml-use-case-and-class-diagram\/\",\"url\":\"https:\/\/www.booksofall.com\/tw\/uml-use-case-and-class-diagram\/\",\"name\":\"UML (Use Case and Class Diagram) - BooksOfAll Traditional Chinese\",\"isPartOf\":{\"@id\":\"https:\/\/www.booksofall.com\/tw\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.booksofall.com\/tw\/uml-use-case-and-class-diagram\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.booksofall.com\/tw\/uml-use-case-and-class-diagram\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.booksofall.com\/tw\/wp-content\/uploads\/sites\/3\/2022\/06\/img_62a18ef68f87b.jpeg\",\"datePublished\":\"2022-05-30T02:21:49+00:00\",\"dateModified\":\"2022-06-15T03:27:27+00:00\",\"description\":\"UML or Unified Modelling Language is a multipurpose modelling language that aims to providea standard for modelling a system.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.booksofall.com\/tw\/uml-use-case-and-class-diagram\/#breadcrumb\"},\"inLanguage\":\"zh-TW\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.booksofall.com\/tw\/uml-use-case-and-class-diagram\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\/\/www.booksofall.com\/tw\/uml-use-case-and-class-diagram\/#primaryimage\",\"url\":\"https:\/\/www.booksofall.com\/tw\/wp-content\/uploads\/sites\/3\/2022\/06\/img_62a18ef68f87b.jpeg\",\"contentUrl\":\"https:\/\/www.booksofall.com\/tw\/wp-content\/uploads\/sites\/3\/2022\/06\/img_62a18ef68f87b.jpeg\",\"width\":\"596\",\"height\":\"842\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.booksofall.com\/tw\/uml-use-case-and-class-diagram\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.booksofall.com\/tw\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Categories\",\"item\":\"https:\/\/www.booksofall.com\/tw\/categories\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"UML (Use Case and Class Diagram)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.booksofall.com\/tw\/#website\",\"url\":\"https:\/\/www.booksofall.com\/tw\/\",\"name\":\"BooksOfAll Traditional Chinese\",\"description\":\"Biggest IT eBooks library and learning resources - Free eBooks for programming, computing, artificial intelligence and more.\",\"publisher\":{\"@id\":\"https:\/\/www.booksofall.com\/tw\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.booksofall.com\/tw\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-TW\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.booksofall.com\/tw\/#organization\",\"name\":\"BooksOfAll Traditional Chinese\",\"url\":\"https:\/\/www.booksofall.com\/tw\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\/\/www.booksofall.com\/tw\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.booksofall.com\/tw\/wp-content\/uploads\/sites\/3\/2022\/06\/booksofall-logo-2.png\",\"contentUrl\":\"https:\/\/www.booksofall.com\/tw\/wp-content\/uploads\/sites\/3\/2022\/06\/booksofall-logo-2.png\",\"width\":166,\"height\":30,\"caption\":\"BooksOfAll Traditional Chinese\"},\"image\":{\"@id\":\"https:\/\/www.booksofall.com\/tw\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"UML (Use Case and Class Diagram) - BooksOfAll Traditional Chinese","description":"UML or Unified Modelling Language is a multipurpose modelling language that aims to providea standard for modelling a system.","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\/tw\/uml-use-case-and-class-diagram\/","og_locale":"zh_TW","og_type":"article","og_title":"UML (Use Case and Class Diagram) - BooksOfAll Traditional Chinese","og_description":"UML or Unified Modelling Language is a multipurpose modelling language that aims to providea standard for modelling a system.","og_url":"https:\/\/www.booksofall.com\/tw\/uml-use-case-and-class-diagram\/","og_site_name":"BooksOfAll Traditional Chinese","article_modified_time":"2022-06-15T03:27:27+00:00","og_image":[{"url":"https:\/\/www.booksofall.com\/tw\/wp-content\/uploads\/sites\/3\/2022\/06\/img_62a18ef68f87b.jpeg","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_image":"https:\/\/www.booksofall.com\/tw\/wp-content\/uploads\/sites\/3\/2022\/06\/img_62a18ef68f87b.jpeg","twitter_misc":{"\u9810\u4f30\u95b1\u8b80\u6642\u9593":"3 \u5206\u9418"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.booksofall.com\/tw\/uml-use-case-and-class-diagram\/","url":"https:\/\/www.booksofall.com\/tw\/uml-use-case-and-class-diagram\/","name":"UML (Use Case and Class Diagram) - BooksOfAll Traditional Chinese","isPartOf":{"@id":"https:\/\/www.booksofall.com\/tw\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.booksofall.com\/tw\/uml-use-case-and-class-diagram\/#primaryimage"},"image":{"@id":"https:\/\/www.booksofall.com\/tw\/uml-use-case-and-class-diagram\/#primaryimage"},"thumbnailUrl":"https:\/\/www.booksofall.com\/tw\/wp-content\/uploads\/sites\/3\/2022\/06\/img_62a18ef68f87b.jpeg","datePublished":"2022-05-30T02:21:49+00:00","dateModified":"2022-06-15T03:27:27+00:00","description":"UML or Unified Modelling Language is a multipurpose modelling language that aims to providea standard for modelling a system.","breadcrumb":{"@id":"https:\/\/www.booksofall.com\/tw\/uml-use-case-and-class-diagram\/#breadcrumb"},"inLanguage":"zh-TW","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.booksofall.com\/tw\/uml-use-case-and-class-diagram\/"]}]},{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/www.booksofall.com\/tw\/uml-use-case-and-class-diagram\/#primaryimage","url":"https:\/\/www.booksofall.com\/tw\/wp-content\/uploads\/sites\/3\/2022\/06\/img_62a18ef68f87b.jpeg","contentUrl":"https:\/\/www.booksofall.com\/tw\/wp-content\/uploads\/sites\/3\/2022\/06\/img_62a18ef68f87b.jpeg","width":"596","height":"842"},{"@type":"BreadcrumbList","@id":"https:\/\/www.booksofall.com\/tw\/uml-use-case-and-class-diagram\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.booksofall.com\/tw\/"},{"@type":"ListItem","position":2,"name":"Categories","item":"https:\/\/www.booksofall.com\/tw\/categories\/"},{"@type":"ListItem","position":3,"name":"UML (Use Case and Class Diagram)"}]},{"@type":"WebSite","@id":"https:\/\/www.booksofall.com\/tw\/#website","url":"https:\/\/www.booksofall.com\/tw\/","name":"BooksOfAll Traditional Chinese","description":"Biggest IT eBooks library and learning resources - Free eBooks for programming, computing, artificial intelligence and more.","publisher":{"@id":"https:\/\/www.booksofall.com\/tw\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.booksofall.com\/tw\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-TW"},{"@type":"Organization","@id":"https:\/\/www.booksofall.com\/tw\/#organization","name":"BooksOfAll Traditional Chinese","url":"https:\/\/www.booksofall.com\/tw\/","logo":{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/www.booksofall.com\/tw\/#\/schema\/logo\/image\/","url":"https:\/\/www.booksofall.com\/tw\/wp-content\/uploads\/sites\/3\/2022\/06\/booksofall-logo-2.png","contentUrl":"https:\/\/www.booksofall.com\/tw\/wp-content\/uploads\/sites\/3\/2022\/06\/booksofall-logo-2.png","width":166,"height":30,"caption":"BooksOfAll Traditional Chinese"},"image":{"@id":"https:\/\/www.booksofall.com\/tw\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.booksofall.com\/tw\/wp-json\/wp\/v2\/product\/6486","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.booksofall.com\/tw\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/www.booksofall.com\/tw\/wp-json\/wp\/v2\/types\/product"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.booksofall.com\/tw\/wp-json\/wp\/v2\/media\/6489"}],"wp:attachment":[{"href":"https:\/\/www.booksofall.com\/tw\/wp-json\/wp\/v2\/media?parent=6486"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/www.booksofall.com\/tw\/wp-json\/wp\/v2\/product_brand?post=6486"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.booksofall.com\/tw\/wp-json\/wp\/v2\/product_cat?post=6486"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/www.booksofall.com\/tw\/wp-json\/wp\/v2\/product_tag?post=6486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}