UML Class 图 - 如果用户对他的提议不感兴趣,则他不能向另一个用户发送消息

UML Class Diagram - A user can't send a message to another user if he's not interessted in his offer

如标题所述,我有 3 个 类:用户、报价、消息。 有一个约束:如果用户对他的提议不感兴趣,则他不能向另一个用户发送消息。 我如何为这种情况建模?!我应该在哪里添加适当的属性?!

这是一个属于用例的约束。

有太多不同的方法可以实现此约束。所以你不能直接推断出任何 class 构造的约束。