多重性vs基数 [英] Multiplicity vs Cardinality

查看:273
本文介绍了多重性vs基数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在讨论数据模型和数据库时,术语基数通常用于描述给定集合中允许的元素数。

When talking about data models and databases, the term Cardinality is often used to describe the number of allowed elements in a given set.

UML通常指的是与多重性相同的属性。

UML often refers to the same property as Multiplicity.

这两个术语之间的差异是什么?或者它们是同义词吗?

Is there any differences between these two terms or are they synonymous?

推荐答案

具有较低和较高的基数 。基数是集合中有多少个元素。因此,多重性告诉你集合的最小和最大允许成员。它们不是同义词。

Simply put: a multiplicity is made up of a lower and an upper cardinality. A cardinality is how many elements are in a set. Thus, a multiplicity tells you the minimum and maximum allowed members of the set. They are not synonymous.

这篇关于多重性vs基数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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