聯軸器選型_聯軸器| 軟件工程

聯軸器選型

耦合 (Coupling)

In general terms, the term coupling is defined as a thing that joins together two objects. If we talk about software development, then the term coupling is related to the connection between two modules, i.e. how tight interaction do the two modules hold with each other is defined by coupling.

一般而言,術語“ 耦合”定義為將兩個對象連接在一起的事物。 如果我們談論軟件開發,那么術語耦合與兩個模塊之間的連接有關,即,通過耦合來定義兩個模塊之間保持的緊密交互程度。

Hence, the term coupling is defined as follows: "“The measure of the degree of the interdependency of two modules on each other is known as coupling."

因此,術語“ 耦合”定義如下: ““兩個模塊相互依賴程度的度量稱為耦合”。

It should be noted that a module that has high cohesion and low coupling is functionally independent.

應該注意的是,具有高內聚性和低耦合性的模塊在功能上是獨立的。

How can the coupling between two modules be defined?

如何定義兩個模塊之間的耦合?

The interconnection of interdependency between two modules is defined by the interface between them because any two modules cannot be connected if there exists no interface between them. Now, the level of coupling that exists among the two modules is defined by the number of data transfers that take place among them. If any of the modules (or both) is highly dependent on the data that the other module provides to it, then we say that the two modules are highly coupled. Else, we say that the two modules are loosely coupled or the coupling between the modules is low.

兩個模塊之間的相互依賴關系的互連由它們之間的接口定義,因為如果兩個模塊之間不存在接口,則任何兩個模塊都無法連接。 現在,兩個模塊之間存在的耦合級別由它們之間發生的數據傳輸數量定義。 如果任何一個模塊(或兩個模塊)高度依賴于另一個模塊提供給它的數據,那么我們說這兩個模塊是高度耦合的。 否則,我們說兩個模塊是松散耦合的,或者模塊之間的耦合很弱。

Now, the term coupling is further classified into different classes which help us to quantitatively determine the level of coupling between two modules. The different classes of coupling are as follows:

現在,術語耦合被進一步分為不同的類別,這有助于我們定量確定兩個模塊之間的耦合級別。 耦合的不同類別如下:

coupling in software engineering

The sequence of the given classification is from high to low in a top-to-down manner. Now, let us define each of them to understand what they mean:

給定分類的順序以從上到下的方式從高到低。 現在,讓我們定義每個對象,以了解它們的含義:

Content Coupling: In the content coupling, the two modules are connected as they share the same content. What this means is that the content, i.e. the code of both the modules, has some parts in common which are the functions and methods that are used by both of the modules. This type of coupling is termed to be the strongest type of coupling.

內容耦合 :在內容耦合中,兩個模塊由于共享相同的內容而被連接。 這意味著內容(即兩個模塊的代碼)具有某些共同點,這是兩個模塊所使用的功能和方法。 這種類型的耦合被稱為最強的耦合類型。

Common Coupling: Two modules are said to be commonly coupled if they share the data using the same data items (i.e. the variables). These data items must be in global access to both of the modules so that both the modules can be able to access these data items.

通用耦合 :如果兩個模塊使用相同的數據項(即變量)共享數據,則稱為通用耦合。 這些數據項必須對兩個模塊都具有全局訪問權限,以便兩個模塊都能夠訪問這些數據項。

Control Coupling: If the data from the module is responsible for controlling the activities happening in another module, then these modules are said to be control coupled. Here, mostly, one or two bits of signal data are passed which controls the operations happening in some other module. A well-known example of this can be the set of flags of a module by some other module.

控制耦合 :如果來自模塊的數據負責控制另一個模塊中發生的活動,則可以說這些模塊是控制耦合的。 在這里,大多數情況下,將傳遞一或兩位信號數據,以控制其他模塊中發生的操作。 眾所周知的示例可以是某個其他模塊對模塊的標志集。

Stamp Coupling: Two modules are said to be stamp coupled if they both use a composite data item to interact with each other.

標記耦合 :如果兩個模塊都使用復合數據項相互交互,則稱這兩個模塊為標記耦合。

Data Coupling: This type of coupling is the weakest one. Two modules are said to be data coupled if they communicate through some parameters. An example can be of the parameters that are passed to a function block.

數據耦合 :這種耦合是最弱的一種。 如果兩個模塊通過某些參數進行通信,則它們稱為數據耦合。 一個示例可以是傳遞給功能塊的參數。

翻譯自: https://www.includehelp.com/basics/coupling-software-engineering.aspx

聯軸器選型

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/377676.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/377676.shtml
英文地址,請注明出處:http://en.pswp.cn/news/377676.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

劍指 Offer 10- I. 斐波那契數列 (從重疊子問題到備忘錄到dp數組迭代解法)

目錄題目描述1、暴力遞歸法的重疊子問題2、備忘錄解法3、dp數組迭代算法4、滾動數組優化5、參考鏈接題目描述 寫一個函數,輸入 n ,求斐波那契(Fibonacci)數列的第 n 項。斐波那契數列的定義如下: F(0) 0, F(1) 1 F…

C# 收郵件

C#沒有內置收郵件的類,參考網絡上的代碼,針對POP3協議服務器使用 Jmail組件來收郵件,針對IMAP協議服務器使用LumiSoft.Net 。 另外,一般免費郵箱需要在郵箱設置中開啟 POP3(或IMAP)、 SMTP服務才可以使用非…

HDU- 1754 I Hate It

http://acm.hdu.edu.cn/showproblem.php?pid1754 記住那讓自己wa的地方。 I Hate It Time Limit: 9000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 29300 Accepted Submission(s): 11615 Problem Description很多學校流行…

mcq 隊列_MCQ | 軟件生命周期模型

mcq 隊列Q1. Which of the following models is best suited when the requirements of the software are not decided and also the user is not sure about how he wants the user interface to look like? Q1。 當不確定軟件的需求并且用戶不確定自己希望用戶界面看起來如何…

十、紡織品庫存管理系統全部功能展示

一、系統主頁面—Form1 系統運行加載頁面,主要包含三個功能,①登錄、②注冊、③退出系統 程序運行圖: 登錄功能,跳轉到登錄頁面 注冊功能,跳轉到注冊頁面 退出系統,程序結束運行 代碼如下: …

leetcode 376. 擺動序列 思考分析

目錄題目思路分析代碼總結題目 如果連續數字之間的差嚴格地在正數和負數之間交替,則數字序列稱為擺動序列。第一個差(如果存在的話)可能是正數或負數。少于兩個元素的序列也是擺動序列。 例如, [1,7,4,9,2,5] 是一個擺動序列&am…

[EF在VS2010中應用Entity framework與MySQL

在VS2010中應用Entity framework與MySQL 羅朝輝 (http://www.cnblogs.com/kesalin/) 本文遵循“署名-非商業用途-保持一致”創作公用協議本文講述了在VS2010中使用EF與MySQL的一個簡單示例。 工具安裝: 1,MySQL MySQL Community Server Connector/NET 6…

c++ cdi+示例_C ++“和”關鍵字示例

c cdi示例"and" is an inbuilt keyword that has been around since at least C98. It is an alternative to && (Logical AND) operator and it mostly uses with the conditions. “ and”是一個內置關鍵字,至少從C 98起就存在。 它是&&am…

Python上個手

Python,由吉多范羅蘇姆(Guido van Rossum)在1989打發圣誕節放假時間的一門“課余”編程項目,至今已有二十多年的歷史,語法簡潔清晰,深受喜愛; 小窺 # 查看版本 python -V # 輸出 print "he…

十、美化界面

一、背景圖片 二、透明化處理 BackColor—web—Transparent 三、數據庫建表語句 數據庫 USE [fiber_yy] GO /****** Object: Table [dbo].[yy_user_record] Script Date: 06/20/2022 18:54:48 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADD…

如何寫出優美的代碼(二)

(本文思想基本來自于經典著作《重構》一書) 上一篇 http://www.cnblogs.com/ceys/archive/2012/03/05/2379842.html#commentform 上一篇文章主要講了怎么給函數整容。現在我們大家基本上都使用面向對象語言,什么樣的“對象”才是優美的呢&…

轉:鏈表相交問題 詳解

源地址:http://blog.163.com/bbluesnow126/blog/static/27784545201251051156817/ 鏈表相交問題 2012-06-10 17:15:37| 分類: 算法 | 標簽:微軟面試題 |字號 訂閱 1、如何判斷一個單鏈表有環 2、如何判斷一個環的入口點在哪里 3、如何知…

VS 如何修改C++編譯標準

第一步,打開項目資源管理器的屬性頁面 第二步,選擇配置屬性->C/C>語言->C語言標準 第三步,選擇合適的標準,一般來說選最新即可

維吉尼亞密碼和一次性密碼本_密碼學中的一次性密碼

維吉尼亞密碼和一次性密碼本The One-time Pad cipher is almost similar to the Vernam cipher, as, like the vernam cipher, this cipher technique also encrypts the plain text by working on the binary level of the text. The only difference between the two is that…

十一、紡織面料下架功能的實現

一、數據庫 數據庫仍用yy_textile表,前幾篇博文都敘述過這里就不再敘述 在fiber_yy數據庫下創建yy_textile表 初始數據庫信息 二、頁面 admin_undercarriage 三、代碼實現 admin_undercarriage using System; using System.IO; using System.Data; using S…

svg和canvas的應用場景分析【轉載】

原文地址:http://blogs.msdn.com/b/weizhong/archive/2011/07/16/canvas-svg.aspx 思考什么時候使用Canvas 和SVG wzhong 15 Jul 2011 9:07 PM 0HTML5 Canvas 和 SVG 是 IE9 中引入的兩項令人激動的圖形功能。上周在拉斯維加斯舉辦的 MIX11 大會對這兩個功能進行了介…

【C++grammar】文件系統以及path類使用

目錄1.文件系統概述1、關于路徑2、如何將某個路徑下的所有文件遞歸地找出來?2.路徑類及操作1、path類的成員函數2、path類的非成員函數示例1:展示C17中的path對象的用法示例2:展示Path類中用于分解路徑成分的函數示例3:展示path相…

scala hashmap_如何在Scala中將Hashmap轉換為Map?

scala hashmapLets first understand what are maps and hashmaps? 首先讓我們了解什么是map和hashmap ? map in Scala is a collection that stores its elements as key-value pairs, like a dictionary. Scala中的map是一個集合,將其元素存儲為鍵值…

十二、所有功能實現效果演示

一、系統項目架構 Ⅰ,fiber_yy數據庫下有五張表 yy_admin:管理員登錄賬號和密碼 yy_textile:紡織面料數據信息 yy_textile_record:用戶購買紡織面料信息所存儲的面料流水信息 yy_user:用戶登錄注冊信息 yy_user_reco…

行業軟件之PTV微觀軟件VISSIM4.3 5.0 5.1 5.2 5.3 5.4下載和相關資料

他是干什么的:http://baike.baidu.com/view/3656765.htm 中國代理銷售的公司的網址:辟途威交通科技(上海)有限公司 官網:http://www.ptvchina.cn/ 看看視頻中軟件的運行效果:http://v.youku.com/v_show/id_XMzExMjg1MDEy.html 如何…