我的Uml图正确吗? [英] Are my Uml diagrams correct?

查看:92
本文介绍了我的Uml图正确吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  • 我有这些uml图。它们是一个名为
    Tictactoe的游戏的图表。只是一个简单的得分得分法。因此,我希望您
    可以检查或给出有关图表的意见,如果它是正确的或需要
    进行改进。

  • 以下是图表:

活动图
类图
用例图
状态图p>

Acitivity diagram Class diagram Usecase diagram Statechart diagram

推荐答案

简单答案:图表不正确。

Simple answer: the diagrams are incorrect.

连看都没有在图的问题域方面,存在明显的问题。

Without even looking at the problem-domain aspects of the diagrams, there are glaring problems.

1)您的活动图可能无法工作。所有输入连接都必须提供令牌,然后才能开始操作。因此,SwitchCurrentPlayer无法启动。您可能会发现一个有用的相关答案:活动图-呼叫操作示例

1) Your activity diagram cannot possibly work. All incoming connections must offer tokens before an action can start; thus, SwitchCurrentPlayer can never start. You may find a related answer helpful: activity diagram - call operation example with parameters?

2)您的类图没有关联端名称。您在Tictactoe中有两个类型为Board的属性,在Board中有两个类型为Tictactoe的属性。

2) Your class diagram does not have association-end names. You have two properties of type Board in Tictactoe and two properties of type Tictactoe in Board.

这篇关于我的Uml图正确吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆