书签 分享 收藏 举报 版权申诉 / 80
上传文档赚钱

类型最新UML介绍+实战完美版课件.ppt

  • 上传人(卖家):ziliao2023
  • 文档编号:6082963
  • 上传时间:2023-05-26
  • 格式:PPT
  • 页数:80
  • 大小:4.36MB
  • 【下载声明】
    1. 本站全部试题类文档,若标题没写含答案,则无答案;标题注明含答案的文档,主观题也可能无答案。请谨慎下单,一旦售出,不予退换。
    2. 本站全部PPT文档均不含视频和音频,PPT中出现的音频或视频标识(或文字)仅表示流程,实际无音频或视频文件。请谨慎下单,一旦售出,不予退换。
    3. 本页资料《最新UML介绍+实战完美版课件.ppt》由用户(ziliao2023)主动上传,其收益全归该用户。163文库仅提供信息存储空间,仅对该用户上传内容的表现方式做保护处理,对上传内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知163文库(点击联系客服),我们立即给予删除!
    4. 请根据预览情况,自愿下载本文。本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
    5. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007及以上版本和PDF阅读器,压缩文件请下载最新的WinRAR软件解压。
    配套讲稿:

    如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。

    特殊限制:

    部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。

    关 键  词:
    最新 UML 介绍 实战 完美 课件
    资源描述:

    1、UML介绍+实战 应用设计所应用设计所2019.11.23About learning UML stuff What is a model?Why do we model?When do we model?How to use UML?What is a model?A model is a simplification of reality.Why do we model?We cannot comprehend such a system in its entirety.We build models so that we can better understand the system

    2、we are developing.Through modeling,we achieve four aims:Models help us to visualize a system as it is or as we want it to be.Models permit us to specify the structure or behavior of a system.Models give us a template that guides us in constructing a system.Models document the decisions we have made.

    3、The larger and more complex the system to be,the more important modeling becomes.The Principles of Modeling Choose your models well.Every model may be expressed at different levels of precision.The best models are connected to reality.No single model or view is sufficient.When do we model?The sooner

    4、 the better,and keep modeling in developing.Object-Oriented Modeling&Algorithmic ModelingWhat is the structure of a good object-oriented architecture?Visualizing,specifying,constructing,and documenting object-oriented systems is exactly the purpose of the Unified Modeling Language.Building Blocks of

    5、 the UML Things(Structural things,Behavioral things,Grouping things,Annotational things)Relationships(Dependency,Association,Generalization,Realization)Diagrams(Structural Diagrams,Behavioral Diagrams)Things Structural things(Class,interface,collaboration,use case,active class,component,artifact,nod

    6、e)Behavioral things(Interaction,state machine,activity)Grouping things(Package)Annotational thingsRelationships Dependency Association Generalization RealizationStructural Diagrams&Behavioral DiagramsUML Structural Diagrams Class diagram(Classes,interfaces,and collaborations)Component diagram(Compon

    7、ents)Composite structure diagram(Internal structure)Object diagram(Objects)Artifact diagram(Artifacts)Deployment diagram(Nodes)UML Behavioral Diagrams Use case diagram(Organizes the behaviors of the system)Sequence diagram(Focuses on the time ordering of messages)Communication diagram(Focuses on the

    8、 structural organization of objects that send and receive messages)State diagram(Focuses on the changing state of a system driven by events)Activity diagram(Focuses on the flow of control from activity to activity)Class diagramRealization(实现实现)Aggregation(聚合聚合)Class diagramGeneralization(泛化泛化)Associ

    9、ation(关联关联)Composition(组合组合)Dependency(依赖依赖)Class diagrams commonly contain:Class Interface Dependency,generalization,realization and association relationshipsClassOperationAttributeClass name“+”is public“-”is private“#”is protectedIf the class is abstract class,the class name will be in italics.Int

    10、erfaceAbstract OperationInterface namepublic interface IFly void fly();InterfaceInterface nameRealization Operationpublic interface ILanguage void speak();Generalizationpublic class Bird extends AnimalRealizationpublic class WideGoose implements IFlyDependencypublic abstract class Animal public Meta

    11、bolism(Oxygen oxygen,Water water)Associationpublic class Penguin extends Birdprivate Climate climate;Aggregationpublic class WideGooseAggregateprivate WideGoose arrayWideGoose;.has a.(weak)Compositionpublic class Birdprivate Wing wing;public Bird()wing=new Wing();.has a.(strong)The same lifecycle.Ob

    12、ject diagramObject diagram对象对象链链属性值属性值匿名对象匿名对象At a point in timeUse case diagramUse case diagramActor(参与者参与者)Relationships(关系关系)Subject(主题主题)Use case(用例用例)Use case diagrams commonly contain:Subject Use cases Actors Dependency,generalization,and association relationshipsWhat is a use case?A use case

    13、is a description of a set of sequences of actions,including variants,that a system performs to yield an observable result of value to an actor.Actor&Use case&SubjectNameActorUse caseLogin SystemSubjectInteraction diagramSequence diagramLife line(生命线生命线)Execute specification(执行规约执行规约)objects(对象对象)Asy

    14、nchronous message(异步消息异步消息)Return message(返回消息返回消息)TimeSynchronous message(同步消息同步消息)Communication diagram链链对象对象序号序号消息消息路径约束路径约束Interaction diagrams commonly contain:Roles or objects Communications or links MessagesState diagramState diagramInitial state(初始状态初始状态)Simple state(简单状态简单状态)Events(事件事件)Tra

    15、nsitions(转移转移)State diagramTCPIP状态变迁图状态变迁图Transitions(转移转移)State diagrams commonly contain:Simple states and composite states Transitions,trigers,and constraintState diagramAction(动作动作)Activity diagramActivity diagrams commonly contain:Actions Activity nodes Flows Object valuesActivity diagramAndroi

    16、d Activity LifecycleComponent diagramComponent diagram需接口需接口供接口供接口构件构件依赖依赖使用使用接口声明接口声明实现实现Component diagram需接口需接口供接口供接口端口端口构件声明构件声明端口名端口名接口名接口名Artifact diagramArtifact diagram制品制品依赖依赖Artifact diagramModeling Executables and LibrariesModeling Tables,Files,and DocumentsModeling Source CodeDeployment d

    17、iagramDeployment diagramHow to use UML?Forward Engineering&Reverse EngineeringDesign UMLImplementsForward EngineeringReverse EngineeringWe usually write code like this.Poor DesignSimple Factory Design Pattern Better designed,but not the best.Factory Method Design Pattern Best DesignUse UML,let codes become better!UML ToolsIBM Rational RoseMicrosoft VisioVisual Paradigm for UML (VP-UML)ArgoUMLUML Reference BookUML用户指南大象-Thinking in UML UML和模式应用大话设计模式Thank U!

    展开阅读全文
    提示  163文库所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。
    关于本文
    本文标题:最新UML介绍+实战完美版课件.ppt
    链接地址:https://www.163wenku.com/p-6082963.html

    Copyright@ 2017-2037 Www.163WenKu.Com  网站版权所有  |  资源地图   
    IPC备案号:蜀ICP备2021032737号  | 川公网安备 51099002000191号


    侵权投诉QQ:3464097650  资料上传QQ:3464097650
       


    【声明】本站为“文档C2C交易模式”,即用户上传的文档直接卖给(下载)用户,本站只是网络空间服务平台,本站所有原创文档下载所得归上传人所有,如您发现上传作品侵犯了您的版权,请立刻联系我们并提供证据,我们将在3个工作日内予以改正。

    163文库