层 (面向对象设计)

本页使用了标题或全文手工转换
维基百科,自由的百科全书

面向对象设计中的(layer)是一群和其他模块有类似耦合性类别[1]。层也可以说是一组可复用的软件组件,可以在类似的环境下复用。

各层的模块会用状的阶级架构来规划,各层模块之间的依赖关系会用连接来表示。各层之间的依赖关系可能是继承[2]复合英语Object composition或聚合(aggregation)关系,不过也有可能是其他的关系。

分层是许多书籍中都会提到的架构模式,例如《Pattern-Oriented Software Architecture英语Pattern-Oriented Software Architecture》书中就有提到[3]

相关条目[编辑]

参考资料[编辑]

  1. ^ Lakos, John. Large-scale C++ software design'需要免费注册. Addison-Wesley. 1997. 
  2. ^ Monperrus, Martin; Beugnard, Antoine; Champeau, Joël. A Definition of "Abstraction Level" for Metamodels. 2009 16th Annual IEEE International Conference and Workshop on the Engineering of Computer Based Systems. [2021-04-23]. doi:10.1109/ecbs.2009.41. (原始内容存档于2021-04-23). 
  3. ^ Pattern-Oriented Software Architecture - A System of Patterns 互联网档案馆存档,存档日期2008-06-16.