如何*真的*写UML基数? [英] How to *really* write UML cardinalities?
本文介绍了如何*真的*写UML基数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想一劳永逸地知道如何编写UML基数,因为我经常不得不就它们进行辩论(因此非常欢迎提供证明和资料:)
I would like to know once and for all how to write UML cardinalities, since I very often had to debate about them (so proofs and sources are very welcome :)
如果我想解释说一个母亲
可以有几个 Child
ren ,但是一个 Child
我只有一个母亲
,我应该这样写:
If I want to explain that a Mother
can have several Child
ren but a Child
has one and only one Mother
, should I write:
Mother * ---------- 1 Child
或
Mother 1 ---------- * Child
?
推荐答案
第二个母亲1 ----------------- 1 .. *孩子
the second one Mother 1 ----------------- 1..* Child
您可以在 UML规范中找到许多与抽象语法相关的图的示例...
You would find many example in the UML specification for all figure related to the Abstract Syntax...
这篇关于如何*真的*写UML基数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文