摘要
分析了抽象工厂模式及其优点,并将抽象工厂模式3层架构软件系统应用于联机考试系统中.抽象工厂模式对扩展开放,对修改封闭.通过扩展增强其功能,增强程序的灵活性和可扩展性,降低升级和移植的复杂度,可以有效地提高代码重用.抽象工厂模式提供了一个创建一系列相关或相互依赖对象的接口,可降低模块间的耦合性,最大限度地实现软件复用.
The pattern of abstract factory and its advantage are analyzed. At the same time, the application of abstract factory pattern in computer-based testing system which is constructed based on the architecture of three layers is discussed, too. Abstract factory pattern is opened to extension and closed to modification. Extending its structure can improve its function and strengthen the extensibility and flexibility of the application program. The complicity of transplant can be reduced. Because of this, this pattern can enhance the reusability efficiently. Abstract factory pattern offers an approach to create a set of objects which are correlative or independent in the same interfaces. Also, this pattern can reduce the coupling of the program, improve the reusability of the software.
出处
《大庆石油学院学报》
CAS
北大核心
2009年第3期112-115,共4页
Journal of Daqing Petroleum Institute
关键词
设计模式
抽象工厂
3层结构
模式复用
design pattern
abstract factory
architecture of three layers
pattern reuse