测控技术与仪器专业英语阅读翻译.docx
《测控技术与仪器专业英语阅读翻译.docx》由会员分享,可在线阅读,更多相关《测控技术与仪器专业英语阅读翻译.docx(15页珍藏版)》请在冰豆网上搜索。
测控技术与仪器专业英语阅读翻译
测控技术与仪器专业英语阅读翻译
5.Inheritance
InFigure9.7,theclassesSalesOrderCheclcPmtandSalesOrderCreditPmtarecalledsubclassesofSalesOrder.TheclassSalesOrderiscalledthesuperclassofSalesOrderCheckPmtandSalesOrderCreditPmt.Therelationshipbetweenaclassanditssubclass(orsuperclass)iscalledgeneralizationorspecialization.Subclassesinheritattributesandoperationsfromtheirclass.Asubclasshasitsownadditionalattributesandoperations.Forexample,theclassSalesOrderCreditPmtinheritstheattributesorderNo,orderDate,deliveryDate,andorderTermsandthemethodscalcTotalandchangeDelivDate.Inthiscase,theclassSalesOrderisthegeneralizedclass,andSalesOrderCheckPrmtandSalesOrderCreditPrmtarethespecializedclasses.
6.Polymorphism
EarlieritwasmentionedthataDVRandaDVDplayerthatrespondsimilarlybutdifferentlytothesamemessagearepolymorphic.Polymorphismmeans"havingmanyforms".InthecontextofOQSAD,polymorphismmeansthatthesamemessagecaninvokesimilarbutdifferentbehavior.Thus,amessagethatinvokestheoperationcalcTotalQofa:
SalesOrderobjectwillresultinthesalesordertotalcalculation;amessagethatinvokestheoperationcalcTotaIQofaPurchaseOrderobjectwillresultinapurchaseordertotalcalculation.Theimplementationoftheoperationsintherespectiveclasseswillbedifferent.
Foundationsoftheobjectmodel
Structureddesignmethodsevolvedtoguidedeveloperswhoweretryingtobuildplexsystemsusingalgorithmsastheirfundamentalbuildingblocks.Similarly,object-orienteddesignmethodshaveevolvedtohelpdevelopersexploittheexpressivepowerofobject-basedandobject-orientedprogramminglanguages,usingtheclassandobjectasbasicbuildingblocks.Foundationsoftheobjectmodel.
Actually,theobjectmodelhasbeeninfluencedbyanumberoffactors,notjustobject-orientedprogramming.Theobjectmodelhasproventobeaunifyingconceptinputerscience,applicablenotjusttoprogramminglanguagesbutalsotothedesignofuserinterfaces,databases,andevenputerarchitectures.Thereasonforthiswidespreadappealissimplythatanobjectorientationhelpsustocopewiththeplexityinherentinmanydifferentkindsofsystems.
5。
继承
在图9.7中,类SalesOrderCheclcPmt和SalesOrderCreditPmt被称为SalesOrder的子类。
类SalesOrder被称为超类SalesOrderCheckPmt和SalesOrderCreditPmt的。
一类和它的子类(或超类)之间的关系被称为泛化或专业。
子类继承他们的阶级属性和操作。
子类有它自己的附加属性和操作。
例如,类SalesOrderCreditPmt继承属性订单号,订单日期,发货日期和订单术语和方法calcTotal和changeDelivDate。
在这种情况下,类SalesOrder是广义类,并SalesOrderCheckPrmt
和SalesOrderCreditPrmt是专门的类。
6.多态性
早些时候有人提到,DVR和DVD播放器,以相同的消息作出回应,但类似的不同是多态。
多态是指“有多种形式”。
在OQSAD的上下文中,多态性是指同一消息可以调用类似,但不同的行为。
因此,一条消息,调用的操作calcTotal:
SalesOrder对象将导致销售订单总额计算;一个消息调用了一个采购订单对象的操作calcTotaL将导致采购订单总额计算。
在各自的类中的操作的实现将是不同的。
对象模型的基础
结构化方法演变为指导开发谁试图建立使用的算法作为其基本构建模块的复杂系统。
同样的,面向对象的设计方法已经发展到帮助开发人员利用基于对象和面向对象编程语言的表现力,使用类和对象的基本构建模块。
对象模型的基础。
实际上,对象模型已经由许多因素的影响,而不是仅仅面向对象编程。
对象模型已经被证明是一个统一概念在计算机科学中,适用不只是为了编程语言,但也给用户接口,数据库,甚至计算机体系结构设计。
这样做的原因广泛的吸引力仅仅是一个面向对象的帮助我们以应付所固有的许多不同种类的系统的复杂性。
当然,有应用的个人电脑的所有者可能想比仅通过GPIB与各种设备的奇数,提供更高的性能。
这种系统通常称为基于PC的工作站。
在基于PC的工作站,仪器模块匹配性能和兼容性都聚集围绕PC电脑。
基于PC的工作站允许多台仪器的数据迅速聚集,存储,作图,分析,并纳入一台PC机上的报告形式。
这种类型的系统一般都放在一个制造商合作,以提高性能和涉及的仪器模块之间的合作。
Thereare,ofcourse,applicationsforwhichtheownerofaPCmaywanthigherperformancethanthatofferedbytheGPIBalone,withitsoddassortmentofdevices.SuchsystemsaregenerallyreferredtoasPC-basedworkstations.InaPC-basedworkstation,instrumentmoduleswithmatchedperformanceandpatibilityareclusteredaroundaPCputer.ThePC-basedworkstationallowsdatafrommultipleinstrumentstoberapidlygathered,stored,graphed,analyzed,andincorporatedintoreportformonasinglePC.Systemsofthistypearegenerallyputtogetherbyonemanufacturertoenhanceperformanceandcooperationbetweentheinstrumentmodulesinvolved.
一个基于PC的工作站的一个例子是惠普推出的PC仪器系统。
PC仪器是一系列的九个专用仪器模块,旨在通过一个专门的接口总线操作惠普触摸屏II个人电脑,IBMPC/XT/AT,AT&T的电脑6300,或的HPVectraPC。
在PC的仪器提供仪器模块是一个50MHz的数字示波器,一个12位数字-模拟转换器双通道,100MHz的通用计数器,5MHz的函数发生器,数字万用表。
AnexampleofaPC-basedworkstationisthePCInstrumentssystemintroducedbyHewlett-Packard.PCInstrumentsareaseriesofninededicatedinstrumentmodulesdesignedtooperateoveradedicatedinterfacebusbyanHPTouchscreenIIpersonalputer,anIBMPC/XT/AT,anAT&TPC6300,oranHPVectraPC.AmongtheinstrumentmodulesavailableforPCInstrumentsarea50-MHzdigitizingoscilloscope,a12-bitdual-channeldigital-to-analogconverter,a100-MHzuniversalcounter,a5-MHzfunctiongenerator,andadigitalmultimeter.
从仪器模块收集的测试数据直接送入电脑存储,显示和分析。
该仪器模块本身有没有米,或显示自己的。
所有输出,包括波形显示,通过电脑屏幕上,可同时显示多达八个不同的仪器输出。
TestdatagatheredfromtheinstrumentmodulesarefeddirectlytothePCforstorage,display,andanalysis.Theinstrumentmodules