﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-帅哥帅-随笔分类-UML</title><link>http://www.cppblog.com/lll109383670/category/18712.html</link><description /><language>zh-cn</language><lastBuildDate>Sat, 25 Feb 2012 07:47:17 GMT</lastBuildDate><pubDate>Sat, 25 Feb 2012 07:47:17 GMT</pubDate><ttl>60</ttl><item><title>UML学习</title><link>http://www.cppblog.com/lll109383670/archive/2012/02/25/166483.html</link><dc:creator>帅哥帅</dc:creator><author>帅哥帅</author><pubDate>Sat, 25 Feb 2012 06:17:00 GMT</pubDate><guid>http://www.cppblog.com/lll109383670/archive/2012/02/25/166483.html</guid><wfw:comment>http://www.cppblog.com/lll109383670/comments/166483.html</wfw:comment><comments>http://www.cppblog.com/lll109383670/archive/2012/02/25/166483.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/lll109383670/comments/commentRss/166483.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/lll109383670/services/trackbacks/166483.html</trackback:ping><description><![CDATA[<br /><br />UML<br />组件图：<br />参考文章：<a href="http://www.ibm.com/developerworks/rational/library/dec04/bell">http://www.ibm.com/developerworks/rational/library/dec04/bell</a>&nbsp;<br />组件图表示：<br /><strong>订单系统对库存系统的引用：</strong><br /><img src="http://www.ibm.com/developerworks/rational/library/dec04/bell" alt="" /><img src="http://www.ibm.com/developerworks/rational/library/dec04/bell/Bell-Fig1.gif" width="224" height="264" alt="" /><br /><br /><strong>组件接口的二种表示方法：</strong><br /><img src="http://www.ibm.com/developerworks/rational/library/dec04/bell/Bell-Fig3.gif" alt="" /><img src="http://www.ibm.com/developerworks/rational/library/dec04/bell/Bell-Fig4.gif" alt="" /><br /><br />第二副图左边表示组件提供的对外接口（：P 可以叫棒棒糖接口），右边的是需要外部提供的接口（插座接口）<br /><br /><br /><strong>各个组件间的关系图<br /><img src="http://www.ibm.com/developerworks/rational/library/dec04/bell/Bell-Fig5.gif" width="468" height="266" alt="" /><br /><br /></strong>组件内部关系完整图：<br /><img src="http://www.ibm.com/developerworks/rational/library/dec04/bell/Bell-Fig7.gif" alt="" /><br /><br /><strong>序列图：</strong><br />参考文章：<a href="http://www.ibm.com/developerworks/rational/library/3101.html">http://www.ibm.com/developerworks/rational/library/3101.html</a>&nbsp;<br /><img src="http://www.ibm.com/developerworks/rational/library/content/RationalEdge/feb04/3101_figure4.jpg" alt="" /><br /><strong>普通形式：</strong><br />发送消息到下一个模块中，图中表示analyst是FinacialAnalyst的一个实例，它用了system实例的getAvailableReports()这个方法，注意，发送的方法消息是由下一个模块实现。<br /><strong>调用自己的实现的函数：</strong><br /><img src="http://www.ibm.com/developerworks/rational/library/content/RationalEdge/feb04/3101_figure5.jpg" alt="" /><br /><br /><br /><strong>几个特殊的情况</strong><br />if...else<br /><img src="http://www.ibm.com/developerworks/rational/library/content/RationalEdge/feb04/3101_figure8.jpg" alt="" /><br /><br />switch<br /><img src="http://www.ibm.com/developerworks/rational/library/content/RationalEdge/feb04/3101_figure9.jpg" width="626" height="527" alt="" /><br /><br /><br />循环：<br /><img src="http://www.ibm.com/developerworks/rational/library/content/RationalEdge/feb04/3101_figure10_small.jpg" alt="" /><br /><br />引用另一个序列图：<br /><img src="http://www.ibm.com/developerworks/rational/library/content/RationalEdge/feb04/3101_figure11.jpg" alt="" /><br /><img src="http://www.ibm.com/developerworks/rational/library/content/RationalEdge/feb04/3101_figure14.jpg" alt="" /><br /><br />break<br /><br /><img src="http://www.ibm.com/developerworks/rational/library/content/RationalEdge/feb04/3101_figure16.jpg" alt="" /><br />parallel<br /><img src="http://www.ibm.com/developerworks/rational/library/content/RationalEdge/feb04/3101_figure17.jpg" width="613" height="446" alt="" /><br /><img src ="http://www.cppblog.com/lll109383670/aggbug/166483.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/lll109383670/" target="_blank">帅哥帅</a> 2012-02-25 14:17 <a href="http://www.cppblog.com/lll109383670/archive/2012/02/25/166483.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>