Debit Card Payment (UML Composite Structure Diagram)
The composite structure diagram shows a run-time scenario for the debit card payment. A buyer's card is used to pay an amount of money using a payment terminal. During the transaction, the money is transferred from the buyer's account to the seller's account.
The central Collaboration Use element is connected with all collaborating elements using Dependency relationships that represent role bindings.
Composite Structure Diagram Example
There are these five roles within the Debit Card Payment scenario:
- Buyer's card
- Seller's terminal
- Buyer's account
- Seller's account
- Money transfer
The object instances are modeled using UML Part elements. The diagram depicts the instances of the following classes:
- Payment Terminal
The diagram contains two instances of Account class, one represents the buyer's account, the other one is for the seller's account.