Component diagram depicts the static implementation view of a system (This diagram main focus is on system components).
How to define a component?
You can define a component using either bracketed notation or using component keyword.
Using bracketed notation
[My component1]
[My component2] as Comp2
Using component keyword
component MyComponent4
component [My Component 5] as comp5
helloworld.txt
@startuml [User] package "ATM Machine" { component "Balance Enquiry" as BE [Cash Withdrawl] as CE component [Amount Deposit] [Request Loan] [Transfer Amount] } package "Bank Server"{ cloud { [Account Manager] } } package "Loan Server"{ cloud { [Loan management system] } } [User] --> [BE] [User] --> [CE] [User] --> [Amount Deposit] [User] --> [Request Loan] [User] --> [Transfer Amount] [BE] --> [Account Manager] [CE] --> [Account Manager] [Amount Deposit] --> [Account Manager] [Transfer Amount] --> [Account Manager] [Request Loan] --> [Loan management system] [Loan management system] --> [Account Manager] @enduml
Above snippet generate below diagram.
No comments:
Post a Comment