ImageVerifierCode 换一换
格式:DOCX , 页数:9 ,大小:24.26KB ,
资源ID:18172605      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/18172605.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(计算机外文资料翻译Word格式文档下载.docx)为本站会员(b****4)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

计算机外文资料翻译Word格式文档下载.docx

1、 2.外文资料原文;指导教师评语:指导教师签名:年月日附件1:外文资料翻译译文1 利用面向对象实现设计一般来说,一个可靠的面向对象的数额及过程往往包含以下步骤:(1)完成适当的分析;(2)建立一份描述系统的工作陈述;(3)从上述的工作陈述中收集需求;(4)开发一个用户界面模型;(5)明确类;(6)确定各个类的职责;(7)确定各个类是如何相互交互的;(8)创建一个工程模型来描述要构建的系统;系统(或对象模型)由类图和类交互构成。这个模型应当真实地表示系统,而且要易于理解和修改。2 类到底是什么简而言之,类似对象的一个蓝图。当你在实例化一个对象时,就是使用一个类作为构建这个对象的基础。实际上,解释

2、类和对象时确实存在“先有鸡还是先有蛋”的问题。要描述类很难不使用对象这个词,反过来,描述对象时又少不了类。例如,一辆自行车是一个对象。不过,必须有人创建了自行车的蓝图(也就是类)。在面向对象的软件设计中就不存在这样的问题,我们确实知道哪一个在前应该是先有类。如果没有类,对象就无法实例化。要解释类和方法,即一个关系数据库领域的例子会很有帮助的。在一个数据库表中,表的自身的定义(字段、描述和所用的数据类型)就是一个类(元数据),对象则是表中的行(数据)。3 建立用户界面模型作为面向对象设计过程的最后一步,必须创建用户界面的一个原型。这个原型将提供很有价值的信息来帮助指导迭代完成设计过程。在Obje

3、ct-Oriented Design in Java一书中,Gilbert和McCarty就曾指出“对于一个系统用户来说,用户界面就是系统”。这种说法非常贴切。创建用户界面原型有很多不同的方法。可以在纸上或者在白板上画出用户界面,可以使用一种专门的原型工具甚至一个语言环境(如Visual Basic,它常用于建立快速模型),也可以使用你最喜欢的开发工具的集成开发环境来创建原型。不论你用哪种方式来开发用户模型界面,都需要确保用户能够对界面的外观做最后的评判。4 继承面向对象程序设计中最强大的一个特性可能是代码的重用。结构化设计在某种程度上提供了代码重用你可以编写 一个过程,然后根据需要使用多次。

4、然而,面向对象设计者更进一步,允许通过组织类并且抽取各个类之间的共性来定义类之间的关系,这不仅有利于代码的重用,而且还可以实现过了更好的整体设计。集成是体重这种功能的一个主要途径。继承允许类继承另一个类的属性和方法。这就允许通过抽取共同的属性和方法来创建全新的类。5 使用对象持久性对象持久性也还是许多面向对象系统必须解决的一个问题。持久性概念是指维护对象的状态。运行程序是,如果没有以某种方式保存对象,对象就会死亡,永远不能恢复。这些临时性对象在某些应用中可能适用,但是在大多数商业系统中,必须保存对象的状态以备以后使用。可以通过将对象串行化并写至一个平面文件来持久保存对象,这是最简单的方法。现在

5、的最新技术是基于XML的。尽管从理论上来讲,对象只要没有被撤销就能在内存中持久保存,但是我们所要强调的是将持久对象保存到某种存储设备上。可以考虑以下3种主要的存储设备。.平面文件系统可以通过串行化对象来将对象保存在一个平面文件中。这种用法很有限。.关系数据库必须使用某种中间件将对象转化为关系模型。.面向对象数据库这是保证对象持久性最合理的方法,但是大多数公司都已经将数据存储在遗留系统中,而且只是刚开始研究对象数据库。通常,及时是全新的面向对象应用也必须与遗留数据交互。6 什么是UML?顾名思义,UML是一种建模语言。UML用户指南将UML定义为“一种用户可视化表示、指定、构造和描述软件密集系统

6、中部件的图形化语言”。UML为编写系统蓝图提供了一种标准方法。简单的说,UML提供了一种以图形化方式表示和管理面向对象软件系统的发那个发。它不仅是系统设计的表示,而且是一种有助于完成系统设计的工具。7 ASP.NET 概述ASP.NET 是一个统一的 Web 开发模型,它包括您使用尽可能少的代码生成企业级 Web 应用程序所必需的各种服务。ASP.NET 作为 .NET Framework 的一部分提供。当您编写 ASP.NET 应用程序的代码时,可以访问 .NET Framework 中的类。您可以使用与公共语言运行库 (CLR) 兼容的任何语言来编写应用程序的代码,这些语言包括 Micro

7、soft Visual Basic、C#、JScript .NET 和 J#。使用这些语言,可以开发利用公共语言运行库、类型安全、继承等方面的优点的 ASP.NET 应用程序。8 Web服务也是一种对象Web服务通过使用XML来提供一种与平台无关的数据交换方式。而简单对象访问协议(SOAP)这是作为一种标准来序列化和传递对象数据。ASP.NET致力于让程序员和XML分离,以便使他们能够用自己熟知的面向对象的设计理念来实现所需的功能。虽然你可以用面向对象的设计方式来模拟Web服务的设计,但是我们应该尽量把Web服务看成数据交换的一个终端,类似于你调用本地类的静态方法,你也可以在容器类里包装数据。

8、但是你要充分考虑到这种Web服务设计带来的性能影响,并且这种设计的伸缩性也不好。在VS中使用Web服务仅仅需要给Web服务添加应用。在一个Web项目里,Web服务的应用是动态生成的,而在类库项目里这是创建了一个物理代理类。在这两种情况下,你都能对这些对象进行编程,就好象这些对象是位于你本地系统一样,这样说带来的好处就是不需要关注数据是怎么与远程系统进行交换的。9 IIS和WEB应用程序的具体细节IIS(Internet Information Services)是Windows操作系统的组成部分之一,它服务与对Web站点的请求。IIS管理器用树形结构显示Web站点的集群,每个站点都被设置成通过

9、IP地址,端口,和一个主机头接受请求。其中主机头使得一个IP地址,根据不同的域名,能访问多个站点。当一个HTTP请求达到服务器是,IIS根据请求的文件的扩展名判断由哪个应用程序来处理请求,如果没有找到匹配的扩展名,被请求的文件将不经过任何处理直接发送给客户端。IIS首先获取请求并判断由哪一个ISAPI(网络服务应用程序接口)程序来处理。以ASP.NET为例,它将请求交由aspnet_isapi.dll处理。ASP.NET把以多个不同物理文件形式存在的页面编译成一个程序集并缓存起来供其他请求使用。在多种可能的编码模型中,inline编码和code-beside是最简单也是最实用的代码编写及维护形

10、式。由发布程序执行的预编译可以通过隐藏代码、预先检查错误和防止在第一次请求是执行编译等方式来缓解部署应用程序的压力。10 测试、测试、再测试以我个人的观点来看,测试在了解需求阶段就已经考试了。任何开发人员在Visual Studio里面敲入“Public Class”之前,就必须对你的软件所要实现的功能有一个非常清晰的认识,这就要求每一个项目相关人员(最终用户、业务专家、数据库管理员、硬件人员等)都必须介入到软件的开发过程中,这些人员必须参与开发的整个过程。把开发看成一个渐进的过程要比你在项目一开始的时候就确定你将要交付给客户的一个什么样的产品容易得多。如果使用测试驱动的开发方法,在实际编码前

11、应先写好相应的测试代码。一般来说,这些测试的代码应该尽量以能够让需求分析员(也许就是你自己)能读懂这些代码并测试这些代码实都能够满足预期的使用目的。 测试是伴随整个开发过程的,如果一个或多个测试失败,您将不得不修改自己的代码来确保测试顺利通过,而绝不是等写完了所有代码之后才去测试。所有代码接近完工的时候,你的传统测试就可以开始了,这个时候你可以让测试人员去检查那些用户接口部分还有哪些不合理的地方(可以使用类似ACT的自动化工具)。因为在整个开发过程中,你一直在测试,所以这个时候系统底层的业务逻辑应该已经可以很好的工作。从项目的理想到软件的最终发布,你的项目的所有相关人员都必须参与到开发的整个过

12、程中一确保你的软件能够满足预期的使用需求。十一 访问关系数据库所有数据库应用都有以下结构:.数据库客户.数据库服务器.数据库数据库客户是为系统提供界面的用户应用。通常这是一个GUI应用,允许用户查询和更新数据库。SQLSQL是指结构化查询语言(Structured Query Language)。只是数据库客户与实现了这个标准的不同厂商的数据库系统哦你之间进行通信所采用的一种标准方法。数据库客户要通过SQL语句与数据库服务器进行通信。图12-5显示了数据库客户/服务器模型的一般解决方案。用户数据库客户服务器驱动程序附件2:外文原文1 Designing with ObjectsGenerall

13、y, a solid OO design process will generally include the following steps:1. Doing the proper analysis2. Developing a statement of work that describes the system3. Gathering the requirements from this statement of work4. Developing a prototype for the user interface5. Identifying the classes6. Determi

14、ning the responsibilities of each class7. Determining how the various classes interact with each other8. Creating a high-level model that describes the system to be builtThe system, or object model, is made up of class diagrams and class interactions.This model should represent the system faithfully

15、 and be easy to understand and modify.2 What Exactly Is a Class?In short, a class is a blueprint for an object.When you instantiate an object, you use a class as the basis for how the object is built. In fact, trying to explain classes and objects is really a chicken-and-egg dilemma. It is difficult

16、 to describe a class without using the term object and visa versa. For example, a specific individual bike is an object. However, someone had to have created the blueprints (that is, the class) to build the bike. In OO software, unlike the chicken-and-egg dilemma,we do know what comes firstthe class

17、.An object cannot be instantiated without a class.To explain classes and methods, its helpful to use an example from the relational database world. In a database table, the definition of the table itself (fields, description, and data types used) would be a class (metadata), and the objects would be

18、 the rows of the table (data).3 Prototyping the User InterfaceAs our final step in the OO design process,we must create a prototype of our user interface.This prototype will provide invaluable information to help navigate through the iterations of the design process.As Gilbert and McCarty in Object-

19、Oriented Design in Java aptly point out,“to a system user, the user interface is the system.”There are several ways to create a user interface prototype.You can sketch the user interface by simply drawing it on paper or a whiteboard.You can use a special prototyping tool or even a language environme

20、nt like Visual Basic, which is often used for rapid prototyping. Or you can use the IDE from your favorite development tool to create the prototype.However you develop the user interface prototype, make sure that the users have the final say on the look and feel.4 InheritanceOne of the most powerful

21、 features of OO programming is, perhaps, code reuse. Structured design provides code reuse to a certain extentyou can write a procedure and then use it as many times as you want. However, OO design goes an important step further, allowing you to define relationships between classes that facilitate n

22、ot only code reuse, but also better overall design, by organizing classes and factoring in commonalties of various classes. Inheritance is a primary means of providing this functionality. Inheritance allows a class to inherit the attributes and methods of another class.This allows creation of brand

23、new classes by abstracting out common attributes and behaviors.One of the major design issues in OO programming is to factor out commonality of the various classes.5 Using Object PersistenceObject persistence is another issue that must be addressed in many OO systems. Persistence is the concept of m

24、aintaining the state of an object.When you run a program, if you dont save the object in some manner, the object simply dies, never to be recovered.These transient objects might work in some applications, but in most business systems, the state of the object must be saved for later use.In its simple

25、st form, an object can persist by being serialized and written to a flat file.The state-of-the-art technology is now XML-based.Although it is true that an object theoretically can persist in memory as long as it is not destroyed,we will concentrate on storing persistent objects on some sort of stora

26、ge device.There are three primary storage devices to consider:. Flat file systemYou can store an object in a flat file by serializing the object.This has very limited use. Relational databaseSome sort of middleware is necessary to convert an object to a relational model.OO databaseThis is the logica

27、l way to make objects persistent, but most companies have all their data in legacy systems and are just starting to explore object databases. Even brand-new OO applications must usually interface with legacy data.6 What Is UML?UML, as its name implies, is a modeling language.The UML User Guide defin

28、es UML as “a graphical language for visualizing, specifying, constructing and documenting the artifacts of a software-intensive system.”UML gives you a standard way to write the systems blueprints. In a nutshell,UML offers a way to graphically represent and manipulate an object-oriented (OO) softwar

29、e system. It is not only the representation of the design of a system, but a tool to assist in this design.7 ASP.NET OverviewASP.NET is a unified Web development model that includes the services necessary for you to build enterprise-class Web applications with a minimum of coding. ASP.NET is part of

30、 the .NET Framework, and when coding ASP.NET applications you have access to classes in the .NET Framework. You can code your applications in any language compatible with the common language runtime (CLR), including Microsoft Visual Basic, C#, JScript.NET, and J#. These languages enable you to devel

31、op ASP.NET applications that benefit from the common language runtime, type safety, inheritance, and so on.8 Web Services as ObjectsWeb services provide a platform-neutral means of exchanging data between two systems over the Web using XML. Simple Object Access Protocol (SOAP) is a standard used to serialize and transfer object data between these systems. ASP.NET goes a long way to isolate pro

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1