【发布时间】:2020-04-19 16:15:15
【问题描述】:
我目前正在学校完成我的期末项目。并且即将毕业。我一直在使用 UML 图时遇到困难,我正在努力决定应该使用哪一个来描绘我的代码。
我的代码是一个 python 脚本,并包含一个按以下方式工作的循环:
I run the script from a terminal ->
Terminal listens to two keys (W & Q).
If Q is pressed the script stops.
If W is pressed the loop begins in the following order:
Raspberry Pi camera takes a picture ->
Crop specific portion out of said picture and save it ->
Run Text recognition on that picture, which returns a text string and is saved in a variable ->
Run Regex to filter out junk characters from text string and create new "clean" text string ->
Run GET request to website using clean text string, and get return based on it. ->
Print out response from request.
哪个图表是使这个序列易于理解的最佳选择。我研究了各种图表,例如系统序列图等。但我还没有找到任何对我来说真正有意义的东西。我应该求助于使用流程图吗?或者有什么更适合我使用的吗?
【问题讨论】:
-
制作活动图。这最适合您的目的。
-
欣赏评论 qwerty。这就是我最终要做的。
标签: uml modeling diagram control-flow