类图反馈

发布于 2024-11-02 16:23:13 字数 249 浏览 0 评论 0原文

只是想知道是否有人可以给我关于我的类图的反馈。我想确保它是正确的以及需要进行的任何更改。

谢谢

图片链接: https://i.sstatic.net/k4RA2.jpg

在此处输入图像描述

Just wondering if anyone can give me feedback on my class diagram. I want to make sure it's correct and also any changes that are needed to it.

Thanks

Image link: https://i.sstatic.net/k4RA2.jpg

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

滿滿的愛 2024-11-09 16:23:13

在不了解具体规则和规则的情况下,很难提供明确的答案。您的域的要求。然而:假设没有什么异常情况,一些观察结果是:

  • 同一个节目可以有多次表演吗?例如,“欢乐合唱团”在周五、周六和周日表演。太阳夕。如果是这样,您可能需要将“表演”与“表演”分开。 (每场表演都会表演多次,一场表演只表演一场表演)。预订通常针对特定表演,而不是演出。
  • 您如何知道哪些座位在哪些场馆?更具体地说,哪些场馆的哪些座位已被预订用于哪些表演,哪些座位仍然空闲?怀疑您缺少座位、场地和表演(表演)之间的一种或多种关系。
  • 您如何知道每张门票适用于哪个座位、场地和表演? (一般来说,门票上会印有所有这些内容)。
  • 多次预订一次付款真的可以吗? (可能是,只是检查)。

更一般地说,我建议命名关联结尾 - 最好使用动词短语,而不是角色名称。它确实可以帮助读者理解这些关系,并帮助您(建模者)确保您理解该领域。

嗯。

Difficult to provide a definitive answer without knowing the specific rules & requirements of your domain. However: assuming there's nothing unusual, some observations:

  • Can there be multiple performances of the same show? e.g. "Glee" being performed on Fri, Sat & Sun eve. If so you may want to separate out 'Performance' from 'Show'. (Each Show is performed many times, a Performance performs exactly one Show). Bookings are typically for a specific Performance, not the Show.
  • How do you know which seats are in which venues? More specifically, which seats in which venues are booked for which performances, and which seats remain free? Suspect you're missing one or more relationships among Seat, Venue and Show (Performance).
  • How do you know which Seat, Venue and Performance each Ticket applies to? (Generally speaking, a Ticket will have all of those printed on it).
  • Is it really OK to make a single Payment for many Bookings? (It might be, just checking).

More generally I'd recommend naming the association ends - preferably with verb phrases, not role names. It really helps readers understand the relationships - as well as helping you (the modeller) ensure you understand the domain.

hth.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文