Types of Cohesion
The seven types of cohesion are as stated by (Ian Sommervile 1998):
1. "Coincidental cohesion: The parts of a component are not related but simply bundled into a single component.
2. Logical association: Components that perform similar functions such as input, error handling and so on are put together in a single component.
3. Temporal cohesion: All of the components that are activated at a single time, such as start up or shut down, are brought together.
4. Procedural cohesion: The elements in a component make up a single control sequence.
5. Communicational cohesion: All of the elements of a component operate on the same input data or produce the same output data.
6. Sequential cohesion: The output from one element in the component serves as input for some other element.
7. Functional cohesion: Each part of the component is necessary for the execution of a single function".