概念建模-我的绘图正确吗? [英] Conceptual Modelling - Is my drawing correct ?

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

问题描述

我明天要参加一次考试,我们已经获得了一个样题,但是由于该样题没有答案,所以我想在这里问.

I have a exam tomorrow and we have gotten a sample exam, but since there are no answers to this sample exam, Id thought Id ask here.

所以我们开始,这是我不确定ive是否正确完成的问题之一:问:绘制一个描述以下领域的概念模型. 在域中有猴子和香蕉.一只猴子可以吃香蕉,但两只猴子不能吃相同的香蕉.

So here we go, this is one of the questions Im not sure if ive done correctly: Q: Draw a conceptual model describing the following domain. In the domain there are monkeys and bananas. A Monkey can eat bananas BUT two monkeys can not eat the same banana.

A(我认为是正确的): http://gyazo.com/722ee8618bfee76ed9f616d45d800819

A(which I think is correct): http://gyazo.com/722ee8618bfee76ed9f616d45d800819

现在,我认为我的答案不正确的原因是,因为两只猴子能够吃同一根香蕉(或者正确完成了吗?)

Now, the reason why I think my answer is incorrect is because two monkey is able to eat the same bananas (or is it correctly done?)

感谢任何帮助,谢谢...

Appreaciate any kind of help, thanks...

推荐答案

您的模型缺少关联末端,这非常重要.它们在两个方向上都赋予了语义和多重性.一个实现模型将是:

Your model is missing association ends, which are very important. They confer semantics and multiplicities in both directions. An implementation model would be:

|Monkey|--eatingMonkey[0..1]---------eatenBanana[0..*]--|Banana|

这可以防止香蕉被多只猴子食用.这是pidgin UML,所以希望您了解如何制作这样的UML图.

That prevents the banana from being eaten by more than one Monkey. This is pidgin UML, so I hope you understand how to make a UML diagram like that.

由于这应该是概念模型,因此可以将eatingMonkey重命名为is eaten by,将eatenBanana重命名为eats,如下所示:

Since this should be a conceptual model, you can rename eatingMonkey to is eaten by and eatenBanana to eats, as follows:

|Monkey|--is eaten by[0..1]---------eats[0..*]--|Banana|

该模型形成自然语言句子:

That model forms the natural language sentences:

  • 猴子吃了许多香蕉.
  • 香蕉最多可被一只猴子吃掉.

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

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