{"id":5425,"date":"2022-05-20T01:22:47","date_gmt":"2022-05-20T01:22:47","guid":{"rendered":"https:\/\/www.booksofall.com\/tw\/?post_type=product&#038;p=5425"},"modified":"2022-06-15T05:24:41","modified_gmt":"2022-06-15T05:24:41","slug":"object-oriented-software-development-interaction-diagrams","status":"publish","type":"product","link":"https:\/\/www.booksofall.com\/tw\/object-oriented-software-development-interaction-diagrams\/","title":{"rendered":"Object-Oriented Software Development &#8211; Interaction Diagrams"},"content":{"rendered":"<h2>Interaction Diagrams<\/h2>\n<ul>\n<li>UML interaction diagrams represent interaction (communication, collaboration) between objects\/classes<\/li>\n<li>For dynamic object modeling<\/li>\n<li>UML interaction diagrams consist of<br \/>\n&#8211; Sequence diagrams<br \/>\n&#8211; Communication diagrams<\/li>\n<\/ul>\n<h3>Sequence diagram<\/h3>\n<p>A sequence diagram or system sequence diagram (SSD) shows process interactions arranged in time sequence in the field of software engineering. 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 4+1 architectural view model of the system under development. Sequence diagrams are sometimes called event diagrams or event scenarios.<\/p>\n<p>For a particular scenario of a use case, the diagrams show the events that external actors generate, their order, and possible inter-system events. All systems are treated as a black box; 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 use case, and frequent or complex alternative scenarios.<\/p>\n<h4><span id=\"Key_elements\" class=\"mw-headline\">Key elements<\/span><\/h4>\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>Return values\u00a0(if any) associated with previous messages<\/li>\n<li>Indication of any loops or iteration area<\/li>\n<\/ul>\n<h4><span id=\"Reading_a_system_sequence_diagram\" class=\"mw-headline\">Reading a system sequence diagram<\/span><\/h4>\n<p>Professionals, in developing a project, 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, this would be 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 id=\"firstHeading\" class=\"firstHeading mw-first-heading\">Communication diagram<\/h3>\n<p>A\u00a0<b>communication 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) 2.0, is a simplified version of the UML 1.x collaboration diagram.<sup id=\"cite_ref-Fowler2004_1-0\" class=\"reference\"><\/sup><\/p>\n<p>UML has four types of interaction diagrams:<\/p>\n<ul>\n<li><a title=\"Sequence diagram\" href=\"https:\/\/en.wikipedia.org\/wiki\/Sequence_diagram\">Sequence diagram<\/a><\/li>\n<li>Communication diagram<\/li>\n<li><a title=\"Interaction overview diagram\" href=\"https:\/\/en.wikipedia.org\/wiki\/Interaction_overview_diagram\">Interaction overview diagram<\/a><\/li>\n<li><a class=\"mw-redirect\" title=\"UML Timing Diagram\" href=\"https:\/\/en.wikipedia.org\/wiki\/UML_Timing_Diagram\">Timing diagram<\/a><\/li>\n<\/ul>\n<p>A Communication diagram models the interactions between objects or parts in terms of sequenced messages. Communication diagrams represent a combination of information taken from\u00a0<a title=\"Class diagram\" href=\"https:\/\/en.wikipedia.org\/wiki\/Class_diagram\">Class<\/a>,\u00a0<a title=\"Sequence diagram\" href=\"https:\/\/en.wikipedia.org\/wiki\/Sequence_diagram\">Sequence<\/a>, and\u00a0<a title=\"Use case diagram\" href=\"https:\/\/en.wikipedia.org\/wiki\/Use_case_diagram\">Use Case Diagrams<\/a>\u00a0describing both the static structure and dynamic behavior of a system.<\/p>\n<p>However, communication diagrams use the free-form arrangement of objects and links as used in Object diagrams. In order to maintain the ordering of messages in such a free-form diagram, messages are labeled with a chronological number and placed near the link the message is sent over. Reading a communication diagram involves starting at message 1.0, and following the messages from object to object.<\/p>\n<p>Communication diagrams show much of the same information as sequence diagrams, but because of how the information is presented, some of it is easier to find in one diagram than the other. Communication diagrams show which elements each one interacts with better, but sequence diagrams show the order in which the interactions take place more clearly.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><iframe style=\"width: 100%; height: 500px; border: none;\" src=\"https:\/\/online.visual-paradigm.com\/share\/book\/object-oriented-software-development-interaction-diagrams-yjopcqi3x?enforceShowPromotionBar=true\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n","protected":false},"featured_media":5429,"template":"","meta":{"_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"Unified Modeling Language interaction diagrams represent interaction (communication, collaboration) between objects\/classes."},"product_brand":[],"product_cat":[213],"product_tag":[201],"class_list":{"0":"post-5425","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>Object-Oriented Software Development - Interaction Diagrams - BooksOfAll Traditional Chinese<\/title>\n<meta name=\"description\" content=\"Unified Modeling Language interaction diagrams represent interaction (communication, collaboration) between objects\/classes.\" \/>\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\/object-oriented-software-development-interaction-diagrams\/\" \/>\n<meta property=\"og:locale\" content=\"zh_TW\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Object-Oriented Software Development - Interaction Diagrams - BooksOfAll Traditional Chinese\" \/>\n<meta property=\"og:description\" content=\"Unified Modeling Language interaction diagrams represent interaction (communication, collaboration) between objects\/classes.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.booksofall.com\/tw\/object-oriented-software-development-interaction-diagrams\/\" \/>\n<meta property=\"og:site_name\" content=\"BooksOfAll Traditional Chinese\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-15T05:24:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.booksofall.com\/tw\/wp-content\/uploads\/sites\/3\/2022\/06\/img_62a153a2c2b9e.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_62a153a2c2b9e.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\/object-oriented-software-development-interaction-diagrams\/\",\"url\":\"https:\/\/www.booksofall.com\/tw\/object-oriented-software-development-interaction-diagrams\/\",\"name\":\"Object-Oriented Software Development - Interaction Diagrams - BooksOfAll Traditional Chinese\",\"isPartOf\":{\"@id\":\"https:\/\/www.booksofall.com\/tw\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.booksofall.com\/tw\/object-oriented-software-development-interaction-diagrams\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.booksofall.com\/tw\/object-oriented-software-development-interaction-diagrams\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.booksofall.com\/tw\/wp-content\/uploads\/sites\/3\/2022\/06\/img_62a153a2c2b9e.jpeg\",\"datePublished\":\"2022-05-20T01:22:47+00:00\",\"dateModified\":\"2022-06-15T05:24:41+00:00\",\"description\":\"Unified Modeling Language interaction diagrams represent interaction (communication, collaboration) between objects\/classes.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.booksofall.com\/tw\/object-oriented-software-development-interaction-diagrams\/#breadcrumb\"},\"inLanguage\":\"zh-TW\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.booksofall.com\/tw\/object-oriented-software-development-interaction-diagrams\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\/\/www.booksofall.com\/tw\/object-oriented-software-development-interaction-diagrams\/#primaryimage\",\"url\":\"https:\/\/www.booksofall.com\/tw\/wp-content\/uploads\/sites\/3\/2022\/06\/img_62a153a2c2b9e.jpeg\",\"contentUrl\":\"https:\/\/www.booksofall.com\/tw\/wp-content\/uploads\/sites\/3\/2022\/06\/img_62a153a2c2b9e.jpeg\",\"width\":\"596\",\"height\":\"842\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.booksofall.com\/tw\/object-oriented-software-development-interaction-diagrams\/#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\":\"Object-Oriented Software Development &#8211; Interaction Diagrams\"}]},{\"@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":"Object-Oriented Software Development - Interaction Diagrams - BooksOfAll Traditional Chinese","description":"Unified Modeling Language interaction diagrams represent interaction (communication, collaboration) between objects\/classes.","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\/object-oriented-software-development-interaction-diagrams\/","og_locale":"zh_TW","og_type":"article","og_title":"Object-Oriented Software Development - Interaction Diagrams - BooksOfAll Traditional Chinese","og_description":"Unified Modeling Language interaction diagrams represent interaction (communication, collaboration) between objects\/classes.","og_url":"https:\/\/www.booksofall.com\/tw\/object-oriented-software-development-interaction-diagrams\/","og_site_name":"BooksOfAll Traditional Chinese","article_modified_time":"2022-06-15T05:24:41+00:00","og_image":[{"url":"https:\/\/www.booksofall.com\/tw\/wp-content\/uploads\/sites\/3\/2022\/06\/img_62a153a2c2b9e.jpeg","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_image":"https:\/\/www.booksofall.com\/tw\/wp-content\/uploads\/sites\/3\/2022\/06\/img_62a153a2c2b9e.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\/object-oriented-software-development-interaction-diagrams\/","url":"https:\/\/www.booksofall.com\/tw\/object-oriented-software-development-interaction-diagrams\/","name":"Object-Oriented Software Development - Interaction Diagrams - BooksOfAll Traditional Chinese","isPartOf":{"@id":"https:\/\/www.booksofall.com\/tw\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.booksofall.com\/tw\/object-oriented-software-development-interaction-diagrams\/#primaryimage"},"image":{"@id":"https:\/\/www.booksofall.com\/tw\/object-oriented-software-development-interaction-diagrams\/#primaryimage"},"thumbnailUrl":"https:\/\/www.booksofall.com\/tw\/wp-content\/uploads\/sites\/3\/2022\/06\/img_62a153a2c2b9e.jpeg","datePublished":"2022-05-20T01:22:47+00:00","dateModified":"2022-06-15T05:24:41+00:00","description":"Unified Modeling Language interaction diagrams represent interaction (communication, collaboration) between objects\/classes.","breadcrumb":{"@id":"https:\/\/www.booksofall.com\/tw\/object-oriented-software-development-interaction-diagrams\/#breadcrumb"},"inLanguage":"zh-TW","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.booksofall.com\/tw\/object-oriented-software-development-interaction-diagrams\/"]}]},{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/www.booksofall.com\/tw\/object-oriented-software-development-interaction-diagrams\/#primaryimage","url":"https:\/\/www.booksofall.com\/tw\/wp-content\/uploads\/sites\/3\/2022\/06\/img_62a153a2c2b9e.jpeg","contentUrl":"https:\/\/www.booksofall.com\/tw\/wp-content\/uploads\/sites\/3\/2022\/06\/img_62a153a2c2b9e.jpeg","width":"596","height":"842"},{"@type":"BreadcrumbList","@id":"https:\/\/www.booksofall.com\/tw\/object-oriented-software-development-interaction-diagrams\/#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":"Object-Oriented Software Development &#8211; Interaction Diagrams"}]},{"@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\/5425","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\/5429"}],"wp:attachment":[{"href":"https:\/\/www.booksofall.com\/tw\/wp-json\/wp\/v2\/media?parent=5425"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/www.booksofall.com\/tw\/wp-json\/wp\/v2\/product_brand?post=5425"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.booksofall.com\/tw\/wp-json\/wp\/v2\/product_cat?post=5425"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/www.booksofall.com\/tw\/wp-json\/wp\/v2\/product_tag?post=5425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}