工厂方法模式在软件开发中的应用——以监控数据接收服务程序为例  被引量:4

The application of factorymethod pattern in software development——Taking the service program for receiving monitoring data for example

在线阅读下载全文

作  者:郭永平[1] 刘淑娟[2] 

机构地区:[1]宝鸡文理学院陕西省灾害监测与机理模拟重点实验室,陕西宝鸡721013 [2]宝鸡文理学院图书馆,陕西宝鸡721016

出  处:《宝鸡文理学院学报(自然科学版)》2015年第4期58-61,67,共5页Journal of Baoji University of Arts and Sciences(Natural Science Edition)

摘  要:目的通过工程实例,描述工厂方法模式在软件开发中的应用技巧和面向对象设计的原则。方法以监控数据接收服务程序为例,对工厂方法模式和反射技术应用场景进行分析,使用C#语言,给出了部分核心代码。结果解决了远程监控数据接收程序因业务规则变化带来的兼容性问题,实现了可配置化应用。结论对面向对象技术的学习和软件架构的设计具有一定的参考价值。Objective— To describe in simple language the application of factory method pattern in software development techniques and the principles of object-oriented design through an engineering example.Methods—With the service program for receiving monitoring data as an example,the factory method pattern and the application scenario of reflection technology are analyzed,and the part of the core code is given in C# language.Results—The compatibility problems,which are caused by the changes of the business rules of the service program for receiving remote monitoring data,are solved,and the configurable application is realized.Conclusion- The factory method pattern has certain reference value for computer science students and developers studying object-oriented technology and designing software architecture.

关 键 词:工厂方法模式 软件设计 应用 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象