美文网首页
Cohesion and Coupling

Cohesion and Coupling

作者: reikoclh | 来源:发表于2022-05-13 21:22 被阅读0次

Cohesion measures level of close connection of inner elements in module. The cohesion can be divided into seven types.

(1) function

All elements are needed to implement the same function, each element is indispensable.

(2) order

It is similar to the function cohesion, and all elements must be executed in order.

(3) communication

All elements belong the same data structure.

(4) process

It is similar to the order cohesion. The difference is that the order cohesion emphasizes data flow, however the process cohesion emphasizes control flow.

(5) microtime

All tasks must be executed in the same time quantum.

(6) logic

(7) occasional

All tasks have no connection with each other. It is the worst cohesion.

相关文章

  • Cohesion and Coupling

    Cohesion measures level of close connection of inner elem...

  • 编程心法 之 内聚度和耦合度是什么

    内聚度 Cohesion耦合度 Coupling "Coupling" describes the relatio...

  • Low Coupling, High Cohesion

    转载自: https://medium.com/clarityhub/low-coupling-high-cohe...

  • Python 函数

    Python 函数 写程序六个字原则:高内聚 低耦合(high cohesion low coupling) 高内...

  • 96.Django数据模版和控制器

    一.项目架构的模式 写程序的终极目标:高内聚 低耦合(high cohesion low coupling) 项目...

  • 软件设计之高内聚低耦合

    内聚(Cohesion)是一个模块内部各成分之间相关联程度的度量。耦合(Coupling)是模块之间依赖程度的度量...

  • 软件设计之高内聚低耦合

    内聚(Cohesion)是一个模块内部各成分之间相关联程度的度量。耦合(Coupling)是模块之间依赖程度的度量...

  • Coupling

    这一个多月里像着了魔一样在群里水消息和表情,后来参加了一个cp游戏,感谢豌豆。 你得问我为什么这样开头。因为我会说...

  • coupling

    1 耦合,生僻又古怪,一点也不像一个科学用词,可它偏偏又是一个无比准确的用法。 一件事情,一件看似孤立的事情,往往...

  • The Passive Voice of Black Peopl

    In the midst of rampant international cohesion expansion ...

网友评论

      本文标题:Cohesion and Coupling

      本文链接:https://www.haomeiwen.com/subject/kipuurtx.html