Coupling and Cohesion types Flashcards
(15 cards)
Content coupling
when one module modifies or relies on the internal workings of another module
Common coupling
when two modules share the same global data
Control coupling
when one module controlling the logic of another, by passing its information on what to do
Stamp coupling
when modules share a composite data structure and use only a part of it
Data coupling
when modules share data through parameters
Uncoupled
when nothing is shared
Functional cohesion (best)
when parts of a module all contribute to a single well-defined task of the module
Sequential cohesion
when parts of a module are grouped because the output from one part is the input to another part
Communicational cohesion
when parts of a module operate on the same data
Procedural cohesion
when parts of a module always follow a certain sequence of execution
Temporal cohesion
when parts of a module are grouped when they are processed
Logical cohesion
when parts of a module are grouped because they logically do “the same thing” in some way
Coincidental cohesion (worst)
when parts of a module are grouped arbitrarily (at random).
What are the types of Coupling?
Content
Common
Controlled
Stamp
Data
Uncoupled
What are the types of Cohension
Functional
Sequential
Communicational
Procedural
Temporal
Logical
Coincidental