基于Spring的项目成本系统开发外文翻译资料

 2022-11-06 15:56:17

Development on Construction Project Cost System Based on Spring

Keywords: Spring; processing flow; construction project; cost system; development; system functional design; data access design

Abstract.

Spring is to solve the common problem in many J2EE development, and can replace strong lightweight framework in the EJB technology. Based on Spring development construction project cost system, to improve the competitiveness of building enterprise and information technology services. First of all, based on the Spring framework structure, the Spring MVC request processing process; Then, following the abstract and incremental refinement, the principle of modularity and information hiding, designed by the six main function modules of the system; Finally, using the JDBC method to design the data access, including entity class structure and write two steps to implement the DAO. The research achievements of this paper to solve the key technical problems in the software development process, the actual development process to exert the advantages of Spring, to avoid the shortcomings, in order to improve the software performance.

Introduction

Throughout the whole process of the project, the project cost management is an important part of project management. Engineering cost management object is the construction project, take the way of management in engineering construction activities, in order to improve the economic benefit as the goal, to project cost planning, organization, coordination, control and management. Current construction engineering cost management are widespread lack of authenticity, difficult to material price estimate, restricted by many problems, such as management department. Construction project cost system developed by the network and database technology, the construction project cost calculation analysis and evaluation of each link, provide auxiliary support for the leadership decision-making, for engineering and equipment material information transmission, storage and maintenance. At the same time, the information of multiple departments, realize data sharing and mutual restriction, effectively solve the caused by management problems in the construction project cost control. The MVC (Model View Controller) is a software design Model, using a method of separation of business logic, data, interface display organization code, the business logic gathered on a widget, in improving and personalized custom interface and user interaction at the same time, do not need to write the business logic. The Spring is open source of the MVC framework, is to solve the complexity of enterprise application development and create [1]. Spring is to solve the common problem in many J2EE development, and can replace the EJB technology strong lightweight framework. Spring of light is embodied in its structure, the basis of the framework itself, as well as support for other applications and assembly capacity. Compared with EJB this Spring can make the application developers to lower risk between the various technical level. Spring is not only confined to the server-side development, from simplicity, testability and loose coupling point of view, any Java application can use the Spring. In this paper, based on the Spring development construction project cost system.

Java

The Java compilation process is largely the same as that for C or any programming language. However, Java source code is not compiled specifically for a certain processor and operating system — Java code is compiled to run on the JVM, or Java Virtual Machine. The JVM is a program that acts as an interpreter which executes compiled Java byte code like a processor. Because JVMrsquo;s have been written for nearly every major computing system, Java programs are generally “write once, run anywhere” platform-independent. Javarsquo;s libraries provide a complete and straightforward interface for socket programming. It is a relatively simple matter to create ClientSocket and ServerSocket objects, make and accept connections, and use input and output streams to transfer data. Because of the relatively simple programming interface, it is not necessary to create a wrapper class, like it is in C . Also, it is easy to create multithreaded applications in Java. One simply needs to create a class that inherits the “Runnable” interface and includes a public “run()” method. To run that class in its own thread, simply create a new Thread object passing the Runnable class as a constructor parameter, and then start() the Thread object.

Socket

Programming Socket Programming is a way that applications can communicate over a network. Data is sent through doorways that are known as sockets. A socket is a pathway that is created by an application, controlled by the operating system, and run on the local host. Socket programming can either be done with unreliable data transfer or reliable, streamed data transfer, most often over a TCP connection. In a basic TCP socket programming set up the server will have created a socket that is waiting for any incoming requests. The client will then create its own socket that it sends a request to the serverrsquo;s socket. Once a connection is established the server will create a new socket so that multiple clients can contact the same server. The two sockets are now ready to handle streamed data transferred between the client and the server

Web Application Architecture

A web application is the client/server software that deals with the user requests coming from clients such as web browsers. To serve the user requests, it requires accessing system resources such as databases and files at the server end. Figure 1 shows a simplified architecture of a web application. The system resources are a part of trusted environment and often contain security c

剩余内容已隐藏,支付完成后下载完整资料


基于Spring的项目成本系统开发

关键字: Spring; 处理流程; 建设项目; 成本系统; 发展; 系统功能设计; 数据访问设计

摘要.

Spring在很多J2EE开发中是解决常见的问题,并可以替代EJB技术的强有力的轻量级框架。基于Spring开发建设项目成本系统,可以提高建筑企业的竞争力和信息技术服务。首先,基于Spring框架结构,Spring MVC请求处理过程;然后,通过抽象和逐步求精,模块化和信息隐藏的方式,设计了系统的六大功能模块,最后,使用mybatis来设计数据访问方法,包括实体类结构和写作两个步骤来实现DAO。本文的研究成果来解决软件开发过程中的关键技术问题,实际的开发过程对弹簧的优点,避免缺点,为了提高软件的性能。

引言.

在实现整个项目过程的中,项目成本管理是项目管理的一个重要组成部分。创建项目工程造价管理对象时, 在工程建设活动中采取的管理方式,以提高经济效益为目标,以项目成本计划、组织、协调、控制和管理为协同条件。当前建筑工程成本管理普遍存在缺乏真实性,很难进行材料价格估计,还有诸多问题,如管理部门。建设项目成本系统由web和数据库技术共同实现,开发建设项目的成本核算每个环节的分析和评价,为领导决策提供辅助支持,为工程和设备材料信息传输、存储和维护。同时,多个部门的信息,实现了数据共享和相互限制,有效地解决了施工项目成本的控制管理问题。MVC(模型-视图-控制器)是一种软件设计模式,使用业务逻辑分离的方法,数据,界面显示组织代码、业务逻辑聚集在一个小部件,在改善和个性化定制的界面和用户交互的同时,不需要写业务逻辑。Spring MVC框架的是开源的,是为了解决企业应用开发的复杂性和创建[1]。Spring在很多J2EE开发中被应用,是可以替代EJB技术的强大的轻量级框架。Spring,体现在它的结构,框架本身的基础,以及支持其他应用程序和组装能力。今年Spring与EJB可以使应用程序开发人员之间的低风险不同的技术水平。Spring不仅是局限于服务器端开发,从简单、可测试性和松耦合的角度来看,任何Java应用程序可以使用Spring。本文基于Spring开发建设项目成本系统。

Java

Java的编译过程对于c 或任何编程语言来说,在很大程度上是一样的。然而,Java源代码并不是专门为特定的处理器和操作系统而制作, Java代码编译运行在JVM上,或者称为Java虚拟机。JVM是一个程序,它像一个处理器,充当一个解释器执行编译的Java字节代码。因为JVM为几乎每一个主要的计算系统做了跨平台处理,编写Java程序通常是独立于平台的,所谓“编写一次,到处运行”。Java的图书馆提供一个完整的和简单的套接字编程接口。它是一个相对简单的问题来创建ClientSocket和考察对象,并接受连接,传输数据使用输入和输出流。因为相对简单的编程接口,没有必要创建一个包装器类。它如同C ,同样,很容易在Java创建多线程应用程序。只需要创建一个类,继承 “Runnable”接口,包括公共“run()”的方法。这类在它自己的线程运行,简单地创建一个新线程对象传递可运行类构造函数参数,然后包含start()方法的线程对象。

Socket

Socket编程,使应用程序可以通过网络交流。数据通过光纤发送门口,被称为Socket。Socket是一个途径,是由一个应用程序,由操作系统控制,在本地主机上运行。Socket编程可以做的是使得不可靠的数据传输可靠,数据传输,通常在一个TCP连接中存在。在基本TCP Socket编程中,服务器将创建一个Socket,等待任何传入的请求。客户端将创建自己的Socket,它发送一个请求到服务器的Socket。一旦建立连接服务器将创建一个新的Socket,这样多个客户端可以与相同的服务器联系。现在这两个Socket已经准备好处理客户端和服务器之间传输的数据流。

万维网应用架构

一个web应用程序的客户机/服务器软件处理来自客户的用户请求,如web浏览器。为了回应用户服务请求,它需要访问系统资源(如数据库和文件在服务器端。系统资源是一个值得信赖的环境的一部分,通常包含关键安全数据。

因此需要适当的使资源保持机密性和完整性。它不能直接用于访问系统资源。为了使得使用环境的安全性得到保障,应该在用户输入之前做检查来验证。

工作行为和问题定义

在传统的web应用程序系统中,性能降低是因为高依赖性,静态用户界面也取决于使用的设计模式、模型、视图、控制器和工具,如Ext js使页面加载缓慢并且使用Ext js开发的应用程序无法在手机应用程序以及平板电脑上访问。此外Ext js的许可,并不是免费的。然而,你可能会发现Ext js框架的某些功能是绝对自由的。

Struts是一个非常通用的框架,还有很多功能没有被挖掘,而Spring只下载需要的功能,它是由开发人员自由抉择避免浪费不必要的功能空间。它不支持大部分的建模像MDA模型和视图的业务逻辑等。这些问题在通过使用spring MVC框架的MVC架构可以解决问题。

Hibernate java被用于关系映射,是减缓检索最大的DB 框架.所以Hibernate java不是首选,现在myBatis / iBatis才是。iBatis DB使用的更多。

相关工作

藤川et al(2004)开发了一个新的web开发工具和基于模型驱动架构(MDA)的支持方法。它降低了web应用程序的开发周期,其质量也有所改善。规范的开发工具使迭代细化和使客户规范检查。提出了模型-视图-控制器设计的应用程序。它将应用程序的功能分为三个组件,如模型、视图和控制器。MDA使用两个模型称为平台无关模型(PIM)和特定于平台的模型(PSM)一个现实世界的问题映射到一个计算机系统。它是用来检查规范是否符合客户的要求。这个MDA不支持业务逻辑,因此开发人员需要使用其它MVC框架。

Gapanyuk et al(2011)设计了MVC web框架基于XForms应用程序服务器和XQuery(XRX)架构。XRX架构允许使用XQuery和XForms标准创建一个web应用程序。XRX架构的存在允许用户使用XQuery创建类似于JSP或ASP的服务器页面。因此很容易用XQuery在可扩展标记语言(XML)的格式上创建web应用程序和应用程序数据存储。安全的内嵌,是最关键的功能,用户界面和视图也必须改善。

奥古斯汀bull;et al(2013)提出了一个模型驱动的体系结构来支持web应用程序开发从设计到实现模型。它执行一个新的扩展统一标记语言(UML)的概要文件和从网页中提取领域的新概念,然后一个新的框架支持通过组合异构网络元素开发web应用程序,最后,一个转换模型从UML扩展生成web应用程序。高性能通过预取缓存机制,和高度可重用性,因为web元素可以在不同的web应用程序中重用。质量特征如效率、可靠性和可维护性需要解决。

清徐(2013)提出Web2.0 MUML,MDA方法和UML概要文件为建模Web 2.0 mashup。MDA是基于四格元建模的体系结构。MDA是Web 2.0应用程序特定的平台,比如XMLbased平台。UML概要文件提供了一个标准方法来使用原型框架定义Web 2.0 mashup语义,从而提供这些语义与UML工具的支持。

Jatin Chhikara(2013)讨论了web架构的超文本标记语言5(HTML5)与MVC框架。HTML5是下一级的HTML语言,提供了在移动和网络系统结构中的基于修改web内容的表示。HTML5是定义的World Wide Web Consortium(W3C)和Web超文本应用技术工作组(WHATWG)Web MVC框架的集成图形框架。集成的MVC框架提供了有效的个人计算机用户和移动web应用程序开发。基于HTML5 ,MVC架构定义了不同的组件,包括模式规范,语言规范和具体的实现框架。MVC模型是一个视图模型,提供了独立开发模型的平台。这个模型提供了基于用户视图下的数据表示模型。

Umar et al(2014)提出了一种提高web应用程序的性能的体系结构模式。一种体系结构模式由不同的MVC设计模式和体系结构组成。MVC层用于提高不违反规范的角色模型,视图和控制器。发达的新体系结构提升了更多的性能使得web应用程序的响应时间、吞吐量和可靠性产生好的结果。

MVC架构的设计模式

模型

数据传输对象设计模式、内存缓存设计模式和合用的连接设计模式是设计模式中使用的模型。为了减少响应时间和增加吞吐量,模型将从控制器接收请求并建立到数据库的连接。然后从数据库中检索数据并将其发送给控制器。

视图

装饰器模式用于视图。设计模式是用于在用户界面显示数据的不同表示。

控制器

设计模式和委托设计模式是控制器数据传输对象使用的设计模式。这个代表控制器的设计模式用于委托任务而不是本身自己去做它。这里将任务委托给模型层。

Spring 流程

Spring使用一组值的注入和结构,注入机制由配置文件管理形成一个创建结构组件的IoC容器。第三届国际会议材料工程、制造技术和控制(ICMEMTC 2016)copy;2016。作者-亚特兰提斯出版社出版的1839 Spring框架由7个定义良好的模块组成,每个模块或组件可以单独存在,或者与其他一个或多个模块随意组合。“Spring核心的容器”是用于管理业务组件的IoC容器,是Spring应用程序的核心。“Spring DAO”和“Spring ORM”不仅提供了一个数据访问抽象模块,集成Hibernate,JDO和iBatis流行的对象关系映射框架支持模块,并提供一个缓冲连接池、事务处理和其他重要的服务功能,确保系统性能和数据完整性;Sprnig Web模块提供了一个Web应用程序来抽象封装、Struts、网络系统等可以用Spring集成Web框架适合自己的解决方案。Spring框架结构如图1所示。

Spring MVC设计围绕DispatcherServlet, DispatcherServlet负责将请求发送到一个特定的处理程序。通过可配置的处理程序映射视图决议,语言环境和主题解决和处理请求并转移到相应的视图。Spring MVC请求处理过程图2所示。

(1)当DispatcherServlet收到请求后找出适当的处理程序来处理请求。DispatcherServlet通过一个或多个处理程序映射,每个请求映射到处理程序。处理程序映射配置web应用程序的上下文中,HandlerMapping Bean实现接口,负责将请求返回一个适当的处理程序(控制器)。通常根据请求URL将被映射到处理程序;

(2)DispatcherServlet选择合适的控制器,控制器将调用处理程序处理请求;

(3)在处理请求之后,控制器对象模型和视图将返回到DispatcherServlet。模型包含一个控制器通过视图来显示属性。如果返回到视图名称,将解析渲染为视图对象。使模型和视图的基本类ModelAndView绑定;

(4)当DispatcherServlet收到模型和视图名称、逻辑视图名称解析为渲染视图对象。DispatcherServlet从一个或多个视图的视图解析器解析。视图解析器实现接口ViewResolver Bean配置Web应用程序上下文,然后根据逻辑视图返回视图对象名称;

(5)DispatcherServlet将视图名称解析为视图对象,将视图对象返回。传输控制器模型的任务是向用户显示模型属性。

系统功能设计

功能设计应遵循抽象思想,逐步求精,模块化和信息隐藏的原理,抽象是一种思想,忽视了它们之间的区别;逐步求精是一种自上而下的设计策略。软件体系结构,是根据自顶向下的方法,使得细节和数据细节各级逐渐细化的过程,直到能在编程语言实现语句,最后建立了整个软件架构;信息隐藏是指每个模块的实现细节隐藏其他模块;模块中包含的信息,不允许其他不需要这些信息的模块使用;有效的模块化可以实现通过定义一组独立的模块,这些模块互相之间的交流只是为了实现软件功能而交换必要的信息。功能设计的结果是通过层次图来描述软件结构。层次图的一个矩形框代表一个模块,一个矩形框附件代表之间的关系,位于顶部的矩形模块,在底部的矩形框代表模块。这个系统功能设计只有两层结构,如图3所示。

在图3中所示的功能设计的结果,包括六个模块,简要描述如下:

(1)模板信息管理。根据建筑工程项目的特点设计相应的项目成本模板。成本函数要求能够建立模板,模板信息查询,修改模板,删除模板和模板参数设置;

(2)供应商信息管理。在新建筑材料采购情况,提出了管理机制,是供应链采购管理的关键环节,在实现准时制采购有非常重要的作用。功能需求有供应商信息,产品信息,报价信息和管理;

(3)管理的成本模型。模型意味着对一些实际问题或客观事物,法律抽象后的正式的表达。项目成本估算的结果是根据输入数据计算的模型,和需要提供添加、修改、删除模型,和其他功能;

(4)项目成本管理。是该系统的核心功能,用于建筑工程成本费用结构和原始数据的成本管理;

剩余内容已隐藏,支付完成后下载完整资料


资料编号:[139173],资料为PDF文档或Word文档,PDF文档可免费转换为Word

您需要先支付 30元 才能查看全部内容!立即支付

课题毕业论文、外文翻译、任务书、文献综述、开题报告、程序设计、图纸设计等资料可联系客服协助查找。