Debit Card Payment (UML Composite Structure Diagram)
Resources|Diagrams|UML|Composite Structure Diagrams|
26 January 2022 |
Dusan Rodina - softwareideas.net
The example shows a UML composite structure diagram with collaboration and its binding roles for modeled objects during processing a debit card payment.
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
Debit Card Payment (UML Composite Structure Diagram)
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:
- Card
- Account
- Payment Terminal
- Transaction
The diagram contains two instances of Account class, one represents the buyer's account, the other one is for the seller's account.
New Comment