活动图

活动图英語:)是工作流的图形化表示。[1]活动图主要由活动和动作构成,也可以支持分支选择、迭代、并行。在 UML 中,活动图主要用于为计算性和组织性过程(即工作流)建模,相关活动之间的数据流也在其覆盖范围之内[2][3]。活动图主要是用來說明控制流,不過也可以顯示數據在各數據儲存之間的流動。

UML 1.x中針對腦力激盪法的活動圖

組成

活动图由若干不同形状的图形组成,图形之间由箭头连接。 [4] 其中比较重要的形状有:

  • 圆角矩形:表示「动作」;
  • 菱形:表示「决策」;
  • 粗实线:表示并行(并发性)活动的开始(分离)和结束(汇合);
  • 黑圆:工作流的开始(初始节点);
  • 黑圈套住的黑圆:工作流的结束(结束节点)。

箭头从开始一路指向结束,用来表示活动的先后顺序。

活动图可以視為是種結構化的流程图,並且結合了傳統的数据流程图。典型的流程圖技術中缺乏表示并发性(concurrency)[5]。不過,活動中的分离和汇合符號只解決了在簡單情形下的應用,若是配合決策或是迴圈,其意義較不清楚。

UML 1.x版的活动图只是一種特殊的狀態圖[6]。UML 2.x中的活动图已依照類似佩特里網的語意重新訂定格式,增加活动图可以建模的情境[7]。因此許多UML 1.x的活動圖在UML 2.x下會有不同的解讀方式。

UML 2.x版的活動圖可以用在許多不同的領域中,例如嵌入式系統設計,也可以用模型檢查技術驗證規格[8]

相關條目

参考资料

  1. . [2017-08-02]. (原始内容存档于2018-06-27) (英语).
  2. UML Revision Task Force. OMG Unified Modeling Language Specification, Version 1.4 (final draft). February 2001.
  3. J. Rumbaugh, I. Jacobson, and G. Booch. The Unified Modeling Language Reference Manual. Addison-Wesley, 1999.
  4. OMG Unified Modeling Language Superstructure Specification, version 2.1.1. Document formal/2007-02-05, Object Management Group, February 2007. http://www.omg.org/cgi-bin/doc?formal/2007-02-05 页面存档备份,存于.
  5. Jibitesh Mishra and Ashok Mohanty. Software Engineering. Pearson Education, 2011.
  6. Dumas, Marlon, and Arthur H.M. Ter Hofstede. "UML activity diagrams as a workflow specification language." ≪ UML≫ 2001—The Unified Modeling Language. Modeling Languages, Concepts, and Tools. Springer Berlin Heidelberg, 2001. 76-90.
  7. Störrle, Harald, and J. H. Hausmann. "semantics of uml 2.0 activities." Proceedings of the IEEE Symposium on Visual Languages and Human-Centric Computing. 2004.
  8. I. Grobelna, M. Grobelny, M. Adamski, "Model Checking of UML Activity Diagrams in Logic Controllers Design", Proceedings of the Ninth International Conference on Dependability and Complex Systems DepCoS-RELCOMEX, Advances in Intelligent Systems and Computing Volume 286, Springer International Publishing Switzerland, pp. 233-242, 2014
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.