层 (物件导向设计)
面向对象设计中的层是一群和其他模块有类似耦合性的类别[1]。层也可以说是一组可复用的软体组件,可以在类似的环境下复用。
各层的模组会用树状的阶级架构来规划,各层模组之间的依赖关系会用连接来表示。各层之间的依赖关系可能是继承[2]、复合或聚合(aggregation)关系,不过也有可能是其他的关系。
分层是许多书籍中都会提到的架构模式,例如Pattern-Oriented Software Architecture[3]。
相关条目编辑
参考资料编辑
- ^ Lakos, John. Large-scale C++ software design' . Addison-Wesley. 1997.
- ^ 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).
- ^ Pattern-Oriented Software Architecture - A System of Patterns 互联网档案馆的存档,存档日期2008-06-16.
这是一篇电脑科学小作品。你可以通过编辑或修订扩充其内容。 |