This site uses cookies to deliver our services. By using this site, you acknowledge that you have read and understand our Cookie and Privacy policy. Your use of Kontext website is subject to this policy. Allow Cookies and Dismiss

VS2010新特性-Modeling Project-UML Use Case Diagram 用例图

302 views 0 comments last modified about 9 years ago Raymond Tang

很久没有更新VS2010新特性-Modeling Project这个系列了,从今天开始我会接着把这个部分介绍完全。参考文章:http://msdn.microsoft.com/en-us/dd409432.aspx UML Use Case Diagrams: Guidelines

本文介绍UML中的用例图,用例图展示了用例之间以及同用例参与者之间是怎样相互联系的。用例图用于对系统、子系统或类的行为进行可视化,使用户能够理解如何使用这些元素,并使开发者能够实现这些元素。用例图说得简单一点它包含了系统的功能需求,针对用例图可以更详细的建模。

一,新建用例图

在这个系列前几篇文章建立的项目ModelingProjectTest,右键|Add|New Item|Installed Templates|Modeling|UML Use Case Diagram,输入文件名称 UMLUseCaseDiagramTest.usecasediagram

点击ok,即建立了一个空的用例图。


二,用例图包含的内容

从TooBox 工具箱中我们可以看到在Use Case中可以包含以下元素:


这里对其中几个比较重要的概念做一个简单的介绍,其它的当大家将鼠标悬停于其上就会显示它的作用与介绍。

Actor:可以理解为行为者,或者说系统的相关者,可以是实体人、物体等,也可以是抽象出来的行为者

Use Case:用例,可以简单的理解为一个系统的功能或者需求,这里的系统既可以指本身我们的软件系统,也可以指硬件系统、物体等等。

三,实现用例图

下面对http://hi.baidu.com/1987raymond/blog/item/0c3835246bc58623d5074270.html文章中的用例图在VS2010中实现,而之前的是用Visual Paradigm来实现的。

在VS2010中直接将工具箱中的元素拖拽自用例图中,建立相关关系即可,最终效果如下:


注意:用例与Actor之间通过Association来连接

Related pages

ASP.NET Core 2 with Bootstrap 4 Bundler Minifier Issue: Expected semicolon or closing curly-brace found '-'

1005 views   1 comments last modified about 10 months ago

Background When upgrading Bootstrap to v4.0.0 release, the bundler and minifier doesn’t work properly due to CSS variable is commonly used: :root{--blue:#007bff; About 26 errors will show up in the Error List with the following message: ...

View detail

Migrate ASP.NET Core Projects – VS2015 to VS2017 and TFS2015 to TFS2017 Issues and Fixes

485 views   0 comments last modified about 2 years ago

Context Before Visual Studio 2017 was released, I was implementing my ASP.NET Core project using VS2015. TFS2015 is used for Continuous Build and Deployment for my projects. After migrating to VS2017, there are couple of issues I encountered in my environment: VS2017 has ...

View detail

Understand Code Dependencies with Visual Studio

612 views   0 comments last modified about 5 years ago

Visual Studio provides a convenient tool to generate visual code dependencies. It helps to identity circular references issues and also hubs. To learn more details about this function, visit ...

View detail

开始下载安装Visual Studio 11 Beta吧!

275 views   0 comments last modified about 7 years ago

  ...

View detail

Visual Studio 2011 New Features 新增特性汇总

285 views   0 comments last modified about 8 years ago

本文将介绍Visual Studio 11 Express for Windows Developer Preview中包含的新特性。

View detail

VS2010新增的IDE特性与功能之C#程序员篇

298 views   0 comments last modified about 9 years ago

注:本文参照MSDN博客C# FAQ的文章http://blogs.msdn.com/csharpfaq/archive/2010/05/10/new-ide-features-in-visual-studio-2010-for-c-developers.aspx;但不是完整翻译,而是提取主要内容以供大家参考,感谢原作者的奉献。一,Generate From Usage 从使用生成代码

View detail

Add comment

Please login first to add comments.  Log in New user?  Register

Comments (0)

No comments yet.