- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Use Case图主要用于描述系统和外部环境的关系。 Use Case:对系统提供的功能的一种描述。(A use case describes behavior that the system exhibits to benefit one or more actors.) Actor:是可能使用这些Use Case的人或外部系统。(Actors are roles adopted by things that interact directly with system. A role is like a hat that something wears in a particular context.) 系统边界:Use Case在内,Actor在外; 用例之间的关系:《extend》、《include》、 Generalization Use Case(用例)图简介 用例图示例 PlaceOrder CancleOrder CheckOrderStatus RequestCatalog ShipProduct Mail order system actor communication relationship Subject name system boundary use case Customer ShippingCompany Dispatcher 用例图示例 Actor与Use Case间的连线称为通信关联,表示Actor与相应Use Case的交互。 无论有无箭头,通信关联都表示双向会话,箭头表示Actor触发Use Case。 类图应用最广,可在各个层次上描述系统的静态结构。 方框表示类:上面写类名,中间是类的属性,下面是类的操作。 关联(Association):关联关系表示类的实例之间存在某种稳定的联系。 对象图是类图的一种变形,对象名下面要加下划线。 类图/对象图简介 类的表述形式: +:public -:private #:protected 关联关系: A Class in UML Class name Attributes Operators An Object in UML object name and class Class Relationships in UML Generalization Dependency Association These can represent inheritance, using, aggregation, etc. Example class diagram Association Structural relationship between peer classes (or objects). Association can have a name and direction, or be bi-directional Role names for each end of the association Multiplicity of the relationship Examples of Association Association code example class Person { public: private: Company *employer; }; class Company { public: private: Person **employee; }; Each instance of Person has a pointer to its employer Each instance of Company has a collection of pointers denoting its employees Link Attributes Associations may have properties in the same manner as objects/classes. Salary and job title can be represented as Aggregation (聚合/共享聚集) A part of relationship (physical containment) class ProjectGroup { public: ProjectGroup(); private: Person member[n]; }; Composition (组合,组合聚集) Aggregation vs Composition Aggregation is a shared containment. Many other classes
您可能关注的文档
最近下载
- 津津有味·读经典Level3《弗兰肯斯坦》译文.docx
- Zippo2008原版年册完整集合DE系列.pdf VIP
- 2025年体育产业数字化转型与体育赛事数据安全与隐私保护报告.docx
- 纪委监委考试题及答案.doc VIP
- 基于“劳动育人”理念的家校共育小学生劳动素养的实践研究.docx VIP
- 2025年价格鉴证师考试题库(附答案和详细解析)(1010).docx VIP
- 相声艺术讲座——基本结构.pdf VIP
- 雨课堂学堂在线《生心理健康教育(广州中医药)》学堂云单元测试考核答案.pdf
- 黄金分割(北师大版)市公开课一等奖省赛课获奖PPT课件.pptx VIP
- 运输服务优化方案.pdf VIP
原创力文档


文档评论(0)