Cohesion:
Cohesion is the concept that tries to capture this intra-module. With
cohesion we are interested in determining how closely the elements of a
module are related to each other. Cohesion of a module represents how
tightly bound the internal elements of the module are to one another.
Cohesion of a module gives the designer an idea about whether the
different elements of a module belong together in the same module.
Cohesion and coupling are clearly related. Usually the greater the
cohesion of each module in the system, the lower the coupling between
modules is. There are several levels of Cohesion:
- Coincidental
- Logical
- Temporal
- Procedural
- Communicational
- Sequential
- Functional
Coincidental
is the lowest level, and functional is the highest. Coincidental
Cohesion occurs when there is no meaningful relationship among the
elements of a module. Coincidental Cohesion can occur if an existing
program is modularized by chopping it into pieces and making different
pieces modules.
0 comments:
Post a Comment