GRASP模式即 通用责任分配软件模式(General Responsibility Assignment Software Patterns),是设计面向对象的解决方案的设计要求或规则,她细分为9种模式,这些模式规则互相平衡制约,我们在设计时要努力满足GRASP的各种要求。
9种分类:
1、Information Expert 信息专家
2、Creator 创造者
3、Low coupling 低耦合
4、High cohesion 高内聚
5、Controller 控制器
6、Ploymorphism 多态
7、Pure Fabrication 纯虚构
8、Indirection 间接
9、Protected Variations 受保护变化