Reputation:
This may sounds stupid but I am confused with the multiplicity between two classed in UML class diagram.
The classes are admin and payment.
It is very clear that
1 admin can accept 0..* payment,
but I'm not sure about can 0..* payment accepted by 1 admin or 1..* admin?
If were talking about that particular payment at that moment, the payment is only handling by 1 admin(of course) but in a bigger picture many different payments can be accepted by many different admins right?
I already tried to search through Google for many examples but can't relate them to my case. My question is the same as: 1 house can has many rooms, and so many rooms is having by 1 house, but in bigger picture many different houses can have many rooms also. (right?)
I expect someone could explain more detail for me, thanks in advance..
Upvotes: 2
Views: 819
Reputation: 3394
The multiplicity refers to the number for the instances of the model. Do in your examples for an insurance of a payment it is handled by 1 admin or a specific window has 1 house. So 1 is the correct value in both cases.
The total number of any of these things is irrelevant as almost always it would be more than 1 and 0 would make no sense.
Upvotes: 0