{"id":1089,"date":"2010-03-26T15:22:00","date_gmt":"2010-03-26T07:22:00","guid":{"rendered":"\/?p=1089"},"modified":"2010-03-26T15:22:00","modified_gmt":"2010-03-26T15:22:00","slug":"1089","status":"publish","type":"post","link":"https:\/\/blog.vimge.com\/archives\/other\/1089.html","title":{"rendered":"UML\u5efa\u6a21\u4e4b\u65f6\u5e8f\u56fe\uff08Sequence Diagram\uff09"},"content":{"rendered":"

\u6211\u7684\u505a\u54c1^o^<\/strong>  <\/span><\/p>\n



<\/span><\/span><\/p>\n

<\/span>\u4e00\u3001\u65f6\u5e8f\u56fe\u7b80\u4ecb\uff08<\/span><\/span>Brief introduction\uff09<\/span><\/span><\/p>\n

      <\/span><\/span>\u4e8c\u3001\u65f6\u5e8f\u56fe\u5143\u7d20\uff08<\/span><\/span>Sequence Diagram Elements\uff09<\/span><\/span><\/p>\n

\u89d2\u8272\uff08<\/span><\/span>Actor\uff09<\/span><\/span><\/p>\n

\u5bf9\u8c61\uff08<\/span><\/span>Object\uff09<\/span><\/span><\/p>\n

\u751f\u547d\u7ebf\uff08<\/span><\/span>Lifeline\uff09<\/span><\/span><\/p>\n

\u63a7\u5236\u7126\u70b9\uff08<\/span><\/span>Focus of Control\uff09<\/span><\/span><\/p>\n

\u6d88\u606f\uff08<\/span><\/span>Message\uff09<\/span><\/span><\/p>\n

\u81ea\u5173\u8054\u6d88\u606f\uff08<\/span><\/span>Self-Message\uff09<\/span><\/span><\/p>\n

Combined Fragments<\/span><\/p>\n

\n

\n

  \u4e09\u3001\u65f6\u5e8f\u56fe\u5b9e\u4f8b\u5206\u6790\uff08<\/span><\/span>Sequece Diagram Example Analysis\uff09<\/span><\/span><\/p>\n

\n

\u65f6\u5e8f\u56fe\u573a\u666f<\/span><\/span><\/p>\n

\u65f6\u5e8f\u56fe\u5b9e\u4f8b<\/span><\/span><\/p>\n

\u65f6\u5e8f\u56fe\u5b9e\u4f8b\u5206\u6790<\/span><\/span><\/p>\n

      \u56db\u3001\u603b\u7ed3\uff08<\/span><\/span>Summary\uff09<\/span><\/span><\/span><\/p>\n<\/p>\n

\u4e00\u3001\u65f6\u5e8f\u56fe\u7b80\u4ecb\uff08<\/span>Brief introduction<\/span><\/font><\/span><\/a>\uff09<\/span><\/span><\/h2>\n

      <\/font><\/span><\/span>\u65f6\u5e8f\u56fe\uff08<\/span>Sequence Diagram<\/span><\/font><\/span>\uff09\u662f\u663e\u793a\u5bf9\u8c61\u4e4b\u95f4\u4ea4\u4e92\u7684\u56fe\uff0c\u8fd9\u4e9b\u5bf9\u8c61\u662f\u6309\u65f6\u95f4\u987a\u5e8f\u6392\u5217\u7684\u3002\u987a\u5e8f\u56fe\u4e2d\u663e\u793a\u7684\u662f\u53c2\u4e0e\u4ea4\u4e92\u7684\u5bf9\u8c61\u53ca\u5176\u5bf9\u8c61\u4e4b\u95f4\u6d88\u606f\u4ea4\u4e92\u7684\u987a\u5e8f\u3002\u65f6\u5e8f\u56fe\u4e2d\u5305\u62ec\u7684\u5efa\u6a21\u5143\u7d20\u4e3b\u8981\u6709\uff1a\u5bf9\u8c61\uff08<\/span>Actor<\/span><\/font><\/span>\uff09\u3001\u751f\u547d\u7ebf\uff08<\/span>Lifeline<\/span><\/font><\/span>\uff09\u3001\u63a7\u5236\u7126\u70b9\uff08<\/span>Focus of control<\/span><\/font><\/span>\uff09\u3001\u6d88\u606f\uff08<\/span>Message<\/span><\/font><\/span>\uff09\u7b49\u7b49\u3002<\/span><\/p>\n

\u4e8c\u3001\u65f6\u5e8f\u56fe\u5143\u7d20\uff08<\/span>Sequence Diagram Elements<\/span><\/font><\/span><\/a>\uff09<\/span><\/span><\/h2>\n

\u89d2\u8272\uff08<\/span>Actor<\/span><\/font><\/span><\/font><\/a>\uff09<\/span><\/font><\/span><\/span><\/h3>\n

  \u7cfb\u7edf\u89d2\u8272\uff0c\u53ef\u4ee5\u662f\u4eba\u3001\u53ca\u5176\u751a\u81f3\u5176\u4ed6\u7684\u7cfb\u7edf\u6216\u8005\u5b50\u7cfb\u7edf\u3002<\/span><\/p>\n

\u5bf9\u8c61\uff08<\/span>Object<\/span><\/font><\/span><\/font><\/a>\uff09<\/span><\/font><\/span><\/span><\/h3>\n

\u5bf9\u8c61\u5305\u62ec\u4e09\u79cd\u547d\u540d\u65b9\u5f0f\uff1a<\/span><\/p>\n

\u7b2c\u4e00\u79cd\u65b9\u5f0f\u5305\u62ec\u5bf9\u8c61\u540d\u548c\u7c7b\u540d\uff1b<\/span><\/p>\n

\u7b2c\u4e8c\u4e2d\u65b9\u5f0f\u53ea\u663e\u793a\u7c7b\u540d\u4e0d\u663e\u793a\u5bf9\u8c61\u540d\uff0c\u5373\u8868\u793a\u4ed6\u662f\u4e00\u4e2a\u533f\u540d\u5bf9\u8c61\uff1b<\/span><\/p>\n

\u7b2c\u4e09\u79cd\u65b9\u5f0f\u53ea\u663e\u793a\u5bf9\u8c61\u540d\u4e0d\u663e\u793a\u7c7b\u660e\u3002<\/span><\/p>\n

<\/span><\/p>\n

<\/font><\/span><\/p>\n

\u751f\u547d\u7ebf\uff08<\/span>Lifeline<\/span><\/font><\/span><\/font><\/a>\uff09<\/span><\/font><\/span><\/span><\/h3>\n

\u751f\u547d\u7ebf\u5728\u987a\u5e8f\u56fe\u4e2d\u8868\u793a\u4e3a\u4ece\u5bf9\u8c61\u56fe\u6807\u5411\u4e0b\u5ef6\u4f38\u7684\u4e00\u6761\u865a\u7ebf\uff0c\u8868\u793a\u5bf9\u8c61\u5b58\u5728\u7684\u65f6\u95f4\uff0c\u5982\u4e0b\u56fe<\/span><\/p>\n

<\/span><\/p>\n

<\/font><\/span><\/p>\n

\u63a7\u5236\u7126\u70b9\uff08<\/span>Focus of Control<\/span><\/font><\/span><\/font><\/a>\uff09<\/span><\/font><\/span><\/span><\/h3>\n

<\/font><\/span><\/p>\n

\u63a7\u5236\u7126\u70b9\u662f\u987a\u5e8f\u56fe\u4e2d\u8868\u793a\u65f6\u95f4\u6bb5\u7684\u7b26\u53f7\uff0c\u5728\u8fd9\u4e2a\u65f6\u95f4\u6bb5\u5185\u5bf9\u8c61\u5c06\u6267\u884c\u76f8\u5e94\u7684\u64cd\u4f5c\u3002\u7528\u5c0f\u77e9\u5f62\u8868\u793a\uff0c\u5982\u4e0b\u56fe\u3002<\/span><\/p>\n

      <\/font><\/span><\/span><\/p>\n

\u6d88\u606f\uff08<\/span>Message<\/span><\/font><\/span><\/font><\/a>\uff09<\/span><\/font><\/span><\/span><\/h3>\n

\u6d88\u606f\u4e00\u822c\u5206\u4e3a\u540c\u6b65\u6d88\u606f\uff08<\/span>Synchronous Message<\/span><\/font><\/span>\uff09\uff0c\u5f02\u6b65\u6d88\u606f\uff08<\/span>Asynchronous Message<\/span><\/font><\/span>\uff09\u548c\u8fd4\u56de\u6d88\u606f\uff08<\/span>Return Message<\/span><\/font><\/span>\uff09<\/span>.<\/span><\/font><\/span>\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/span><\/p>\n

<\/span><\/p>\n

<\/font><\/span><\/p>\n

<\/font><\/span><\/p>\n

\u540c\u6b65\u6d88\u606f<\/span>=<\/span><\/font><\/span><\/strong>\u8c03\u7528\u6d88\u606f\uff08<\/span>Synchronous Message<\/span><\/font><\/span><\/strong>\uff09<\/span><\/span><\/strong><\/p>\n

\u6d88\u606f\u7684\u53d1\u9001\u8005\u628a\u63a7\u5236\u4f20\u9012\u7ed9\u6d88\u606f\u7684\u63a5\u6536\u8005\uff0c\u7136\u540e\u505c\u6b62\u6d3b\u52a8\uff0c\u7b49\u5f85\u6d88\u606f\u7684\u63a5\u6536\u8005\u653e\u5f03\u6216\u8005\u8fd4\u56de\u63a7\u5236\u3002\u7528\u6765\u8868\u793a\u540c\u6b65\u7684\u610f\u4e49\u3002<\/span><\/p>\n

<\/font><\/span><\/strong><\/p>\n

\u5f02\u6b65\u6d88\u606f\uff08<\/span>Asynchronous Message<\/span><\/font><\/span><\/strong>\uff09<\/span><\/span><\/strong><\/p>\n

\u6d88\u606f\u53d1\u9001\u8005\u901a\u8fc7\u6d88\u606f\u628a\u4fe1\u53f7\u4f20\u9012\u7ed9\u6d88\u606f\u7684\u63a5\u6536\u8005\uff0c\u7136\u540e\u7ee7\u7eed\u81ea\u5df1\u7684\u6d3b\u52a8\uff0c\u4e0d\u7b49\u5f85\u63a5\u53d7\u8005\u8fd4\u56de\u6d88\u606f\u6216\u8005\u63a7\u5236\u3002\u5f02\u6b65\u6d88\u606f\u7684\u63a5\u6536\u8005\u548c\u53d1\u9001\u8005\u662f\u5e76\u53d1\u5de5\u4f5c\u7684\u3002<\/span><\/p>\n

<\/font><\/span><\/p>\n

\u8fd4\u56de\u6d88\u606f\uff08<\/span>Return Message<\/span><\/font><\/span><\/strong>\uff09<\/span><\/span><\/strong><\/p>\n

\u8fd4\u56de\u6d88\u606f\u8868\u793a\u4ece\u8fc7\u7a0b\u8c03\u7528\u8fd4\u56de<\/span><\/p>\n

<\/font><\/span><\/p>\n

\u81ea\u5173\u8054\u6d88\u606f\uff08<\/span>Self-Message<\/span><\/font><\/span><\/font><\/a>\uff09<\/span><\/font><\/span><\/span><\/h3>\n

\u8868\u793a\u65b9\u6cd5\u7684\u81ea\u8eab\u8c03\u7528\u4ee5\u53ca\u4e00\u4e2a\u5bf9\u8c61\u5185\u7684\u4e00\u4e2a\u65b9\u6cd5\u8c03\u7528\u53e6\u5916\u4e00\u4e2a\u65b9\u6cd5\u3002<\/span><\/p>\n

<\/span><\/p>\n

Combined Fragments<\/span><\/font><\/span><\/a><\/h3>\n

<\/font><\/span><\/p>\n

<\/font><\/span><\/p>\n

Ø        <\/span><\/span><\/span>Alternative fragment<\/span><\/font><\/span>\uff08<\/span>denoted “alt”<\/span><\/font><\/span>\uff09<\/span> <\/font>\u4e0e<\/span> if\u2026then\u2026else<\/span><\/font>\u5bf9\u5e94<\/span><\/p>\n

Ø        <\/span><\/span><\/span>Option fragment (denoted “opt”) <\/span><\/font><\/span>\u4e0e<\/span> Switch<\/span><\/font><\/span>\u5bf9\u5e94<\/span><\/p>\n

Ø        <\/span><\/span><\/span>Para<\/span>ll<\/span><\/st1:rtx>el fragment (denoted “par”) <\/span><\/font><\/span>\u8868\u793a\u540c\u65f6\u53d1\u751f<\/span><\/p>\n

Ø        <\/span><\/span><\/span>Loop fragment(denoted “loop”) <\/span><\/font><\/span>\u4e0e<\/span> for <\/span><\/font><\/span>\u6216\u8005<\/span> Foreach<\/span><\/font><\/span>\u5bf9\u5e94<\/span><\/p>\n

<\/font><\/span><\/p>\n

\u4e09\u3001\u65f6\u5e8f\u56fe\u5b9e\u4f8b\u5206\u6790\uff08<\/span>Sequece Diagram Example Analysis<\/span><\/font><\/span><\/a>\uff09<\/span><\/span><\/h2>\n

\u65f6\u5e8f\u56fe\u573a\u666f<\/span><\/font><\/span><\/a><\/span><\/h3>\n
\n

\u5b8c\u6210\u8bfe\u7a0b\u521b\u5efa\u529f\u80fd\uff0c\u4e3b\u8981\u6d41\u7a0b\u6709\uff1a<\/span><\/p>\n

1<\/span><\/font><\/span>\u3001\u8bf7\u6c42\u6dfb\u52a0\u8bfe\u7a0b\u9875\u9762\uff0c\u586b\u5199\u8bfe\u7a0b\u8868\u5355\uff0c\u70b9\u51fb\u3010<\/span>create<\/span><\/font><\/span>\u3011\u6309\u94ae<\/span><\/p>\n

2<\/span><\/font><\/span>\u3001\u6dfb\u52a0\u8bfe\u7a0b\u4fe1\u606f\u5230\u6570\u636e\u5e93<\/span><\/p>\n

3<\/span><\/font><\/span>\u3001\u5411\u8bfe\u7a0b\u5bf9\u8c61\u8ffd\u52a0\u4e3b\u9898\u4fe1\u606f<\/span><\/p>\n

4<\/span><\/font><\/span>\u3001\u4e3a\u8bfe\u7a0b\u6307\u6d3e\u6559\u5e08<\/span><\/p>\n

5<\/span><\/font><\/span>\u3001\u5b8c\u6210\u8bfe\u7a0b\u521b\u5efa\u529f\u80fd<\/span><\/p>\n

\n

\u65f6\u5e8f\u56fe\u5b9e\u4f8b<\/strong><\/span><\/font><\/span><\/a><\/p>\n<\/blockquote>\n

<\/p>\n

<\/font><\/p>\n

<\/span><\/p>\n

<\/font><\/span><\/p>\n

\n

\u65f6\u5e8f\u56fe\u5b9e\u4f8b\u5206\u6790<\/span><\/font><\/span><\/a><\/h3>\n

1<\/span><\/font><\/span>\u3001\u5e8f\u53f7<\/span>1.0-1.3<\/span><\/span><\/font><\/span>\u5b8c\u6210\u9875\u9762\u7684\u521d\u59cb\u5316<\/span><\/p>\n

2<\/span><\/font><\/span>\u3001\u5e8f\u53f7<\/span>1.4-1.5<\/span><\/span><\/font><\/span>\u8bfe\u7a0b\u7ba1\u7406\u5458\u586b\u5145\u8bfe\u7a0b\u8868\u5355<\/span><\/p>\n

3<\/span><\/font><\/span>\u3001\u5e8f\u53f7<\/span>1.6-1.7<\/span><\/span><\/font><\/span>\u8bfe\u7a0b\u7ba1\u7406\u5458\u70b9\u51fb\u3010<\/span>Create<\/span><\/font><\/span>\u3011\u6309\u94ae\uff0c\u5e76\u54cd\u5e94\u70b9\u51fb\u4e8b\u4ef6<\/span><\/p>\n

4<\/span><\/font><\/span>\u3001\u5e8f\u53f7<\/span>1.8<\/span>   <\/span> <\/span>Service<\/span><\/font><\/span>\u5c42\u521b\u5efa\u8bfe\u7a0b<\/span><\/p>\n

5<\/span><\/font><\/span>\u3001\u5e8f\u53f7<\/span>1.9-1.10 <\/span><\/font><\/span>\u6dfb\u52a0\u8bfe\u7a0b\u5230\u6570\u636e\u5e93\uff0c\u5e76\u8fd4\u56de\u8bfe\u7a0b\u7f16\u53f7<\/span>CourseId<\/span><\/font><\/span><\/p>\n

6<\/span><\/font><\/span>\u3001\u5e8f\u53f7<\/span>1.11-1.12 <\/span><\/font><\/span>\u6dfb\u52a0\u8bfe\u7a0b\u4e3b\u9898\u5230\u6570\u636e\u5e93\uff0c\u5e76\u8fd4\u56de\u4e3b\u9898\u7f16\u53f7<\/span>topicId<\/span><\/font><\/span><\/p>\n

7<\/span><\/font><\/span>\u3001\u5e8f\u53f7<\/span>1.13<\/span>        <\/span><\/font><\/span>\u7ed9\u8bfe\u7a0b\u6307\u6d3e\u6559\u5e08<\/span><\/p>\n

8<\/span><\/font><\/span>\u3001\u5e8f\u53f7<\/span>1.14<\/span>        <\/span><\/font><\/span>\u5411\u754c\u9762\u629b\u521b\u5efa\u8bfe\u7a0b\u6210\u529f\u4e0e\u5426\u7684\u6d88\u606f<\/span><\/p>\n<\/blockquote>\n

\u56db\u3001\u603b\u7ed3\uff08<\/span>Summary<\/span><\/font><\/span><\/a>\uff09<\/span><\/span><\/h2>\n

      <\/font><\/span><\/span>\u65f6\u5e8f\u56fe\uff08<\/span>Sequence Diagram<\/span><\/font><\/span>\uff09\u662f\u663e\u793a\u5bf9\u8c61\u4e4b\u95f4\u4ea4\u4e92\u7684\u56fe\uff0c\u8fd9\u4e9b\u5bf9\u8c61\u662f\u6309\u65f6\u95f4\u987a\u5e8f\u6392\u5217\u7684\u3002\u987a\u5e8f\u56fe\u4e2d\u663e\u793a\u7684\u662f\u53c2\u4e0e\u4ea4\u4e92\u7684\u5bf9\u8c61\u53ca\u5176\u5bf9\u8c61\u4e4b\u95f4\u6d88\u606f\u4ea4\u4e92\u7684\u987a\u5e8f\u3002\u65f6\u5e8f\u56fe\u4e2d\u5305\u62ec\u7684\u5efa\u6a21\u5143\u7d20\u4e3b\u8981\u6709\uff1a\u5bf9\u8c61\uff08<\/span>Actor<\/span><\/font><\/span>\uff09\u3001\u751f\u547d\u7ebf\uff08<\/span>Lifeline<\/span><\/font><\/span>\uff09\u3001\u63a7\u5236\u7126\u70b9\uff08<\/span>Focus of control<\/span><\/font><\/span>\uff09\u3001\u6d88\u606f\uff08<\/span>Message<\/span><\/font><\/span>\uff09\u7b49\u7b49\u3002\u6700\u540e\uff0c\u4ee5\u8bfe\u7a0b\u521b\u5efa\u529f\u80fd\u6f14\u793a\u4e00\u65f6\u5e8f\u56fe\u5b9e\u4f8b\u3002<\/span><\/p>\n

\n

<\/p>\n

\u4f5c\u8005\uff1a<\/strong>\u7075\u52a8\u751f\u6d3b
\u51fa\u5904\uff1a<\/strong>http:\/\/www.cnblogs.com\/ywqu<\/font><\/p>\n

<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"

\u6211\u7684\u505a\u54c1^o^<\/strong>  <\/span><\/p>\n



<\/span><\/span><\/p>\n

<\/span>\u4e00\u3001\u65f6\u5e8f\u56fe\u7b80\u4ecb\uff08<\/span><\/span>Brief intro<\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/posts\/1089"}],"collection":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/comments?post=1089"}],"version-history":[{"count":0,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/posts\/1089\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/media?parent=1089"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/categories?post=1089"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/tags?post=1089"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}