欢迎来到天天文库
浏览记录
ID:51432652
大小:2.25 MB
页数:99页
时间:2020-03-22
《uml 对象技术与可视化建模基础.ppt》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、UML建模语言及工具第2章对象技术与可视化建模基础AnOverviewofObjectTechnologyandVisualModeling-3-Review:AnApproachtotheObject-Oriented上升到面向对象面向对象技术概述定义、利益、研究内容面向对象技术发展历史(里程碑)、现状、未来面向对象与结构化扬弃而非否定上升到面向对象利用面向对象的观点认识客观问题-4-学习线路图OOUMLOOAOODDP…Case-Study………………………学习线路图-5-Agenda1ObjectandClassFourPrinciplesofO
2、OGeneralizationandPolymorphismPrinciplesofVisualModelingTheUMLProcessandvisualmodeling-6-ObjectInformally,anobjectrepresentsanentity,eitherphysical,conceptual,orsoftwarePhysicalentityConceptualentitySoftwareentity化学过程链表-7-Object-FormalDefinitionAnobjectisanentitywithawell-definedb
3、oundaryandidentitythatencapsulatesstateandbehavior.Stateisrepresentedbyattributesandrelationships.Behaviorisrepresentedbyoperations,methods,andstatemachines.ObjectOperationsAttributes-8-对象的标识每一个对象都有一个唯一的标识,即使其状态有可能与其它对象一样班机747on11/10班机747on11/11班机747on11/12-9-对象的标识Professor“JClark
4、”teachesBiologyProfessor“JClark”teachesBiology-10-对象的状态一个对象的状态是它反映于现实世界的一系列属性:参数的数值(也就是,与对象有关系的数据)它与其它对象的关系可能的状态:停泊运营着陆终止班机747-11-对象的状态Stateisaconditionorsituationduringthelifeofanobject,whichsatisfiessomecondition,performssomeactivity,orwaitsforsomeevent.Thestateofanobjectnormall
5、ychangesovertime.Name:JClarkEmployeeID:567138DateHired:July25,1991Status:TenuredDiscipline:FinanceMaximumCourseLoad:3classesName:JClarkEmployeeID:567138HireDate:07/25/1991Status:TenuredDiscipline:FinanceMaxLoad:3ProfessorClark-12-对象的行为定义当其它对象发出请求时,该对象如何反应由为对象定义的一系列操作决定班机747核对出发时间(
6、返回9:27)机票代理-13-对象的行为Behaviordetermineshowanobjectactsandreacts.Thevisiblebehaviorofanobjectismodeledbyasetofmessagesitcanrespondto(operationsthattheobjectcanperform).ProfessorClarkProfessorClark’sbehaviorSubmitFinalGradesAcceptCourseOfferingTakeSabbaticalSetMaxLoadSubmitFinalGrade
7、s()AcceptCourseOffering()TakeSabbatical()SetMaxLoad()-14-Sample-AnObject-15-RepresentingObjectsintheUMLAnobjectisrepresentedasarectanglewithanunderlinedname.NamedObjectAnonymousObject-16-ClassAclassisadescriptionofasetofobjectsthatsharethesameattributes,operations,relationships,an
8、dsemantics.Anobjectisaninstanceof
此文档下载收益归作者所有