活动图,这是可接受的活动图吗?
我刚刚开始了解UML,现在学习活动图。我想知道这是否可以作为该程序的活动图可以接受?如果不是,我该如何改进?
这是一个简单的C#控制台程序,可以使用这样的工作:
开始,用户将收到一堆动物。然后从主菜单中选择一个任务/选项要执行。某些菜单选项还要求用户选择一种动物(以执行任务)。完成任务后,用户将返回菜单以选择其他内容,直到用户选择退出为止。
I'm just starting to learn about UML and now learning Activity diagram. I was wondering if this would be acceptable as a activity diagram for the program? If not how could I improve?
It's a simple C# console program and works like this:
Starting, the user will receive a bunch of animals. Then from a main menu choose a task/option to do. Some of the menu options also requires user to choose one of animals (to preform task with). After the task is done user will be returned to the menu to choose something else until the user chooses to quit.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的广告还不错。只有几个错误:
选择哪种动物
具有三个不可或缺的控制流。但是,只有其中只有一个可以选择上述动作,因此只有其中一个会出现一个令牌。那是僵局。您只需在该动作之前首先使用Mergenode(就像在底部一样)修复该问题。[退出选择]
等括号将其守卫。Your AD isn't too bad. Just a few errors:
Choose what animal
has three incomming control flows. However, only one of them will present a token since only one of the actions above is possible to be chosen. That's where the deadlock is. You fix that simply by first using a MergeNode (like you did at the bottom) right before that action.[Quit chosen]
to make them guards.