Types of coupling
ชนิดของ Coupling ทั้งหมดที่มี แต่เป็นภาษาอังกฤษอยู่นะั
Some types of coupling, in order of highest to lowest coupling, are as follows:
- Content coupling (high)
- Content coupling is when one module modifies or relies on the internal workings of another module (e.g. accessing local data of another module).
- Therefore changing the way the second module produces data (location, type, timing) will lead to changing the dependent module.
- Common coupling
- Common coupling is when two modules share the same global data (e.g. a global variable).
- Changing the shared resource implies changing all the modules using it.
- External coupling
- External coupling occurs when two modules share an externally imposed data format, communication protocol, or device interface.
- Control coupling
- Control coupling is one module controlling the logic of another, by passing it information on what to do (e.g. passing a what-to-do flag).
- Stamp coupling (Data-structured coupling)
- Stamp coupling is when modules share a composite data structure and use only a part of it, possibly a different part (e.g. passing a whole record to a function which only needs one field of it).
- This may lead to changing the way a module reads a record because a field, which the module doesn’t need, has been modified.
- Data coupling
- Data coupling is when modules share data through, for example, parameters. Each datum is an elementary piece, and these are the only data which are shared (e.g. passing an integer to a function which computes a square root).
- Message coupling (low)
- This is the loosest type of coupling. Modules are not dependent on each other, instead they use a public interface to exchange parameter-less messages (or events, see Message passing).
- No coupling
- Modules do not communicate at all with one another.
reference : http://en.wikipedia.org/wiki/Coupling_(computer_science)#Types_of_coupling
3 Comments »
RSS feed for comments on this post. TrackBack URL
В этом что-то есть. Благодарю Вас за помощь в этом вопросе, может я тоже могу чем то помочь?…
территории опасных Therefore changing the way the second module produces data (location, type, timing) will lead to […….
Извините за то, что вмешиваюсь: У меня похожая ситуация. Приглашаю к обсуждению. Пишите здесь или в PM….
Content coupling (high)
Content coupling is when one module modifies or relies on the internal workings of another module (e.g…..
Medicamentspot.com International Legal RX Medications. Special Internet Prices (up to 40% off average US price). NO PRIOR PRESCRIPTION REQUIRED!…
Combivir@buy.online” rel=”nofollow”>.…