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 Sequence Diagram 时序图

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

In this page

时序图展现了一组对象和由这组对象收发的信息,用于按时间顺序对控制流建模。可以用时序图来说明系统的动态视图。

一,新建时序图

选中ModelingProjectTest,右键|Add|New Item|Installed Templates|Modeling|UML Sequence Diagram,输入文件名称UMLSequenceDiagramTest.sequencediagram,点击Add按钮,即建立了一个空的时序图。


二,时序图包含的内容

从Toolbox工具箱中我们可以看到时序图可以包含以下元素:


相关说明如下:

Lifeline

添加一个泳道

Synchronous

添加同步消息

Asynchronous

添加异步消息

Create

添加一条消息,用于创建目标对象的实例

Comment

添加备注

Comment Link

添加一个连接将备注指向图中的元素

Interaction Use

三,实现时序图

下面将http://hi.baidu.com/1987raymond/blog/item/8a60ae58a7b892d69c82048c.html中的时序图迁移到VS2010中,如下图所示:


在上图中,展示了整个取钱过程各个步骤的时间先后顺序。

Related pages

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

766 views   1 comments last modified about 7 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

423 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

554 views   0 comments last modified about 4 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吧!

247 views   0 comments last modified about 7 years ago

  ...

View detail

Visual Studio 2011 New Features 新增特性汇总

257 views   0 comments last modified about 7 years ago

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

View detail

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

278 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.