| 1 |
\begin{tikzpicture} |
| 2 |
% \draw[help lines] (-7,-6) grid (6,0); |
| 3 |
|
| 4 |
\begin{class}[text width=6cm]{OverdrawnAccountsReport}{0,0} |
| 5 |
\attribute{generatedOn : Date} |
| 6 |
|
| 7 |
\operation{refresh ( )} |
| 8 |
\end{class} |
| 9 |
|
| 10 |
\begin{class}{BankAccount}{12,0} |
| 11 |
\attribute{owner : String} |
| 12 |
\attribute{balance : Dollars} |
| 13 |
|
| 14 |
\operation{deposit(amount : Dollars)} |
| 15 |
\operation[0]{withdrawl(amount : Dollars)} |
| 16 |
\end{class} |
| 17 |
|
| 18 |
\unidirectionalAssociation{OverdrawnAccountsReport}{overdrawnAccounts}{0..*}{BankAccount} |
| 19 |
|
| 20 |
\end{tikzpicture} |