-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #228 from terrastruct/uml-class
uml class example
- Loading branch information
Showing
5 changed files
with
358 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,163 @@ | ||
DebitCard: Debit card { | ||
shape: class | ||
+cardno | ||
+ownedBy | ||
|
||
+access() | ||
} | ||
|
||
Bank: { | ||
shape: class | ||
+code | ||
+address | ||
|
||
+manages() | ||
+maintains() | ||
} | ||
|
||
ATMInfo: ATM info { | ||
shape: class | ||
+location | ||
+manageBy | ||
|
||
+identifies() | ||
+transactions() | ||
} | ||
|
||
Customer: { | ||
shape: class | ||
+name | ||
+address | ||
+dob | ||
|
||
+owns() | ||
} | ||
|
||
Account: { | ||
shape: class | ||
+type | ||
+owner | ||
} | ||
|
||
ATMTransaction: ATM Transaction { | ||
shape: class | ||
+transactionId | ||
+date | ||
+type | ||
|
||
+modifies() | ||
} | ||
|
||
CurrentAccount: Current account { | ||
shape: class | ||
+accountNo | ||
+balance | ||
|
||
+debit() | ||
+credit() | ||
} | ||
|
||
SavingAccount: Saving account { | ||
shape: class | ||
+accountNo | ||
+balance | ||
|
||
+debit() | ||
+credit() | ||
} | ||
|
||
WidthdrawlTransaction: Withdrawl transaction { | ||
shape: class | ||
+amount | ||
|
||
+Withdrawl() | ||
} | ||
|
||
QueryTransaction: Query transaction { | ||
shape: class | ||
+query | ||
+type | ||
|
||
+queryProcessing() | ||
} | ||
|
||
TransferTransaction: Transfer transaction { | ||
shape: class | ||
+account | ||
+accountNo | ||
} | ||
|
||
PinValidation: Pin validation transaction { | ||
shape: class | ||
+oldPin | ||
+newPin | ||
|
||
+pinChange() | ||
} | ||
|
||
DebitCard -- Bank: manages { | ||
source-arrowhead: 1..* | ||
target-arrowhead: 1 | ||
} | ||
|
||
Bank -- ATMInfo: maintains { | ||
source-arrowhead: 1 | ||
target-arrowhead: 1 | ||
} | ||
|
||
Bank -- Customer: +has { | ||
source-arrowhead: 1 | ||
target-arrowhead: 1 | ||
} | ||
|
||
DebitCard -- Customer: +owns { | ||
source-arrowhead: 0..* | ||
target-arrowhead: 1..* | ||
} | ||
|
||
DebitCard -- Account: +provides access to { | ||
source-arrowhead: * | ||
target-arrowhead: 1..* | ||
} | ||
|
||
Customer -- Account: owns { | ||
source-arrowhead: 1..* | ||
target-arrowhead: 1..* | ||
} | ||
|
||
ATMInfo -- ATMTransaction: +identifies { | ||
source-arrowhead: 1 | ||
target-arrowhead: * | ||
} | ||
|
||
ATMTransaction -> Account: modifies { | ||
source-arrowhead: * | ||
target-arrowhead: 1 | ||
} | ||
|
||
CurrentAccount -> Account: { | ||
target-arrowhead.shape: triangle | ||
target-arrowhead.style.filled: false | ||
} | ||
|
||
SavingAccount -> Account: { | ||
target-arrowhead.shape: triangle | ||
target-arrowhead.style.filled: false | ||
} | ||
|
||
WidthdrawlTransaction -> ATMTransaction: { | ||
target-arrowhead.shape: triangle | ||
target-arrowhead.style.filled: false | ||
} | ||
QueryTransaction -> ATMTransaction: { | ||
target-arrowhead.shape: triangle | ||
target-arrowhead.style.filled: false | ||
} | ||
TransferTransaction -> ATMTransaction: { | ||
target-arrowhead.shape: triangle | ||
target-arrowhead.style.filled: false | ||
} | ||
PinValidation -> ATMTransaction: { | ||
target-arrowhead.shape: triangle | ||
target-arrowhead.style.filled: false | ||
} |
Oops, something went wrong.