文档详情

基于三层架构的软件代码规范化生成方法研究-食品科学(包装工程)专业论文.docx

发布:2019-03-26约7.39万字共71页下载文档
文本预览下载声明
万方数据 万方数据 摘 摘 要 论文题目:基于三层架构的软件代码规范化生成方法研究 学科名称:食品科学 研 究 生:骆辉德 签 名:_____ 指导教师:任鹏刚 教授 签 名:_____ 摘 要 当前,开发以数据库为核心的大型 Web 系统大多采用三层架构。而传统手动编写三 层架构代码的工作量大且分层代码结构容易混乱,加上受限于开发周期和人员调配等因 素,容易出现代码难以复用、系统难以维护等软件质量问题。 经分析,尽管这些 Web 系统的业务需求往往不同,但其基本逻辑上依然存在大量的 相同或相似的地方。因此从软件工程化开发角度来看,基于三层架构的软件系统开发过程 大多都是近似的,为系统框架复用和代码规范化生成提供了可能性。 本文以代码自动生成为着眼点,分析了.NET 框架下三层架构的构成及其运转机理, 分别对软件系统的各层代码规范化的规则定义和实现方法进行描述表述,并融入了能够提 供动态扩展机制的抽象工厂设计模式,为系统降低各层之间的耦合性,提高代码的可复用 性。接着探讨基于三层架构的软件代码规范化自动生成所涉及到基础理论和关键技术,包 括对基本业务模型的抽象并提取模板文件,XML 配置文件的解析操作以及对象关系模型 的建立等。然后采用面向对象思想和层次化的设计方法实现了.NET 环境下基于三层架构 的软件代码规范化自动生成工具,描述其实现的主要功能。最后介绍了该工具在实际项目 中所达到的适用性和可扩展性的应用效果。 本文的研究一方面能够提高开发人员的工作效率,解放编码生产力,改变了传统的软 件开发模式;另一方面,可以统一系统的编码风格,实现软件代码规范化和系统架构的清 晰,使得生成的代码便于二次开发和后期维护,在性能质量上达到客户的要求。 关键字:三层架构;代码规范化;代码生成;模板技术;XML I 万方数据 万方数据 Abstra Abstract Title: STUDY OF NORMALIZED SOURCE CODE GENERALIZATION METHOD BASED ON THREE-TIER ARCHITECTURE Major: Food science Name: Huide LUO Signature: Supervisor: Prof. Penggang REN Signature: Abstract Three-tier architecture is mostly adopted to develop Web systems which are with the database as the core at present. The traditional manual coding works of three-tier architecture is tedious and repeated, which is very easy to cause confusion in the hierarchical structure. If this project is limited by the factors of development cycle and personnel allocation, the software quality problems will appear, such as the difficulty of code reuse and software maintainability. Through the analysis, these Web systems have different business requirement, but there are still a lot of the same or similar places exist in their basic business logic. These development process which based on three-tier architecture are realized in a similar way from the view of software engineering, so that it provides the possibility of reusing system framework and generating standard code automatically. Based on the in-depth analysis of .NET framework, this paper studied the operation mechanism about each layer in three-tier archite
显示全部
相似文档