Please enable JavaScript.
Coggle requires JavaScript to display documents.
GRASP 一般责任分配软件模式 - Coggle Diagram
GRASP 一般责任分配软件模式
模式列表
高内聚cohesion
模块内的操作之间联系紧密的程度
低耦合coupling
两个子模块之间联系的强度
创建者
B 紧密使用 A
B 具有 A 的初始化数据,该数据将在创建时传递给 A(B 是 A 方面的专家)
.B 记录 A
B “包含”或复合聚合 A
控制器
facade controller外观控制器
适用于较小的系统
use case controller用例控制器
信息专家
将责任分配给具有履行职责所需信息的类
多态
非直接
纯虚构
隔离变化
Responsibility
认知职责
了解它可以推导或计算的事物
了解相关对象
私有封装数据
行为职责
在其他对象中启动操作
控制和协调其他对象中的活动
自己动手