基于抽象工厂模式的塑料加工厂(java).zip

上传者: 25564049 | 上传时间: 2022-11-23 21:55:15 | 文件大小: 1.49MB | 文件类型: ZIP
项目需求:
有两间塑料加工厂(A厂仅生产容器类产品;B厂仅生产模具类产品);随着客户需求的变化,A厂所在地的客户需要也模具类产品,B厂所在地的客户也需要容器类产品。
抽象工厂模式设计原则:
“开-闭”原则要求一个软件系统可以在不修改原有代码的情况下,通过扩展达到增强其功能的目的。
 对于一个涉及到多个产品等级结构和多个产品族的系统,其功能的增强不外乎两个方面:
(1)增加新的产品族;
(2)增加新的产品等级结构。
抽象工厂模式以一种倾斜的方式支持增加新的产品,它为新产品族的增加提供方便,而不能为新的产品等级结构的增加提供这样的方便。

文件下载

资源详情

[{"title":"( 32 个子文件 1.49MB ) 基于抽象工厂模式的塑料加工厂(java).zip","children":[{"title":"17263117周苏雅","children":[{"title":"基于抽象工厂模式的塑料加工厂.pptx <span style='color:#111;'> 1.67MB </span>","children":null,"spread":false},{"title":"执行程序","children":[{"title":"bin","children":[{"title":"抽象工厂模式","children":[{"title":"MouldProductB.class <span style='color:#111;'> 555B </span>","children":null,"spread":false},{"title":"FlowerProductA.class <span style='color:#111;'> 559B </span>","children":null,"spread":false},{"title":"Factory.class <span style='color:#111;'> 411B </span>","children":null,"spread":false},{"title":"AbstractProduct.class <span style='color:#111;'> 323B </span>","children":null,"spread":false},{"title":"FactoryB.class <span style='color:#111;'> 726B </span>","children":null,"spread":false},{"title":"ContainerProduct.class <span style='color:#111;'> 343B </span>","children":null,"spread":false},{"title":"MouldProductA.class <span style='color:#111;'> 555B </span>","children":null,"spread":false},{"title":"MouldProduct.class <span style='color:#111;'> 332B </span>","children":null,"spread":false},{"title":"FlowerProductB.class <span style='color:#111;'> 559B </span>","children":null,"spread":false},{"title":"FactoryA.class <span style='color:#111;'> 726B </span>","children":null,"spread":false},{"title":"AbstractFactoryPattern.class <span style='color:#111;'> 926B </span>","children":null,"spread":false},{"title":"ContainerProductB.class <span style='color:#111;'> 571B </span>","children":null,"spread":false},{"title":"ContainerProductA.class <span style='color:#111;'> 571B </span>","children":null,"spread":false},{"title":"FlowerProduct.class <span style='color:#111;'> 335B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 629B </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"抽象工厂模式","children":[{"title":"ContainerProductA.java <span style='color:#111;'> 192B </span>","children":null,"spread":false},{"title":"FactoryA.java <span style='color:#111;'> 440B </span>","children":null,"spread":false},{"title":"AbstractProduct.java <span style='color:#111;'> 96B </span>","children":null,"spread":false},{"title":"Factory.java <span style='color:#111;'> 238B </span>","children":null,"spread":false},{"title":"ContainerProductB.java <span style='color:#111;'> 192B </span>","children":null,"spread":false},{"title":"ContaineProduct.java <span style='color:#111;'> 155B </span>","children":null,"spread":false},{"title":"MouldProductA.java <span style='color:#111;'> 186B </span>","children":null,"spread":false},{"title":"FlowerProductA.java <span style='color:#111;'> 153B </span>","children":null,"spread":false},{"title":"AbstractFactoryPattern.java <span style='color:#111;'> 730B </span>","children":null,"spread":false},{"title":"FlowerProduct.java <span style='color:#111;'> 132B </span>","children":null,"spread":false},{"title":"MouldProductB.java <span style='color:#111;'> 188B </span>","children":null,"spread":false},{"title":"MouldProduct.java <span style='color:#111;'> 175B </span>","children":null,"spread":false},{"title":"FactoryB.java <span style='color:#111;'> 426B </span>","children":null,"spread":false},{"title":"FlowerProductB.java <span style='color:#111;'> 157B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":".project <span style='color:#111;'> 418B </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 301B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明