检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]咸阳师范学院信息工程学院,陕西咸阳712000
出 处:《咸阳师范学院学报》2014年第6期43-46,共4页Journal of Xianyang Normal University
基 金:咸阳师范学院科研基金项目(12XSYK070)
摘 要:针对传统建造者模式存在创建的产品数量单一、具体建造者与产品耦合度高等缺点,通过引入抽象工厂模式,提出一种改进的建造者模式。该模式通过具体工厂角色代替具体建造者来实现复杂对象组成部分的创建,达到与产品角色的解耦;在具体建造者中维护一个产品对象集合,以达到产品对象的多数量创建。分析了改进后建造者模式的UML类图关系与角色构成,并给出了核心实现代码,最后对该模式进行了应用效果分析。For the shortcomings existing in traditional builders model of single products creation,specific builders and high coupling products, through introducing the abstract factory pattern, this paper puts forward an improved builder design pattern. The model through concrete factory role instead of the builders is to realize the complex object part of creation, to achieve the role of product decoupling;maintain a product in the concrete builders of a collection of objects, in order to achieve product object to create more quantity. An analysis is made of the improved builders of UML class diagram relation and role model, and an introduction is made of the core implementation code, finally an analysis is made of the application effect of this model.
分 类 号:TP31[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:3.144.237.31