Independency |
Cohesion |
Type |
Descliption |
high | low(bad) | Coincidental cohesion | The module of this cohesion is simply divided the program. You can't define functions in the module. Or the module has two or more functions , but these functions are not related at all. |
Logical cohesion | The module of this cohesion is collected two or more related functions. By the argument (functional code) when module is called , the function in the module is selected and executed. | ||
Temporal cohesion | For instance, initializing function or finalizing function. The module of this cohesion is collected functions executed at specific time. Functions in module are not related. | ||
Procedural cohesion | The module of this cohesion is collected two or more functions executed one after another. | ||
Communicational cohesion | If the module is the Procedural cohesion , and functions in the moudle is related to the data. | ||
Sequential cohesion | The module of this cohesion is collected the same data structure or resource. And each function, this module has entry or exit points. | ||
low | high(good) | functional cohesion | The module of this cohesion has only one function. |
Independency |
Coupling |
Type |
Descliption |
low | high(bad) | Content coupling | When the class refers to other class by absolute address , or directly jumps to other class. |
Common coupling | When classes refer to the common global data. | ||
External coupling | When necessary datas are only externaly defined. And other classes are allowed to refer to those datas. | ||
Control coupling | For instance, functional code, the element controled the module is given to other module by the argument , and the function is executed. This coupling is equal to The Logical cohesion of the Module Cohesion. | ||
Stamp coupling | In the used module, even if a part of the struct data (record) is only used, the data type of the argument is struct ( or class ). | ||
high | low(good) | Data coupling | You treat the target module as the blackbox, the necessary data is only given to the target module. |
No. |
Linked Website Name |
Description |
Linked date |
1 |
Cohesion (computer science) - Wikipedia, the free encyclopedia | This website is written the Module Cohesion , and about the best cohesion. | October 11, 2009 |
2 |
COMP 145: Module Cohesion | This website is written the Module Cohesion , and explains about the best cohesion with the figure. | October 11, 2009 |
3 |
Coupling (computer science) - Wikipedia, the free encyclopedia | This website is written the Module Coupling , and about the best coupling. | October 11, 2009 |
4 |
Software quality - Wikipedia, the free encyclopedia | This website explains the quality of the software. | October 11, 2009 |
5 |
GRASP (Object Oriented Design) - Wikipedia, the free encyclopedia | GRASP pattern has the "Low Coupling" pattern and the "High Cohesion" pattern. | October 11, 2009 |