CRC card analysis of objects UML class diagram

CRC card analysis of objects UML class diagram (Mile. Stone 2) Jung. Soo Kim (gtg 972 d)

1. CRC card analysis of objects

• Brainstorm - Individual Account, Fixed. Savings, Equity. Stock, Equity. Bond, Visualization l Filter - Drop the Visualization.

• Scenarios 1. Let assume there are two person-Momo and Kim. Momo deposited the $1, 000 in the First Union and he had a $515. 25 at first. And the account gets the interest monthly, daily, or yearly, according to the given rate. Kim has $2000. 00 in the Fixed Saving Account and he bought spent $1325. 50 to buy COKEs which is $153. 25 worth each unit. 2. Now assume that Momo wants to see a every transactions that he have made so far. And also he wants to see the statement as sorted order. (ascending and descending order).

Class: Account Responsibility Collaborator - Have a name. - Have a unique number - Holds every normal and exception transactions. Fixed. Savings Equity. Bond Equity. Stock

Class: Fixed. Savings Responsibility Collaborator - deposit money - Initialize the balance and interest rate - can change interest rate - can calculate credit interest Account

Class: Equity. Bond Responsibility - have a balance can change a balance can calculate credit interest have a face value can change face value get a interest rate have a interest rate Collaborator Account

Class: Equity. Stock Responsibility Collaborator - have a balance - can change a balance - can calculate credit interest -get a interest rate - have a price - get a price - can sell by shares - can sell by amount Account

Class: User Responsibility - can buy in specific portfolio with some amount -Can display account information -Can find portfolios -Can find accounts by their types -Can return current time -Have a user name -Can calculate net worth of all accounts -Have a user’s password -Can show all exceptions -Can show status Collaborator

Class: Portfolio Responsibility Collaborator - holds accounts - can find specific account - Have a name Account

2. UML class diagram

User Portfolio list 1 0. . * account: accounts find. Account: name: 1 buy: portfolio: amount: display: display. Intro find: find. Protfolio: find. Type: get. Time name: net. Worth pass. Word: portfolios portfolio: show. Account show. Exception. Reprot: show. Full. Report: show. Normal. Report: show. Portfolio show. Status sum. Arr: Portfolio 1…* Account exception. Transaction: get. Exception. Transaction: get. Normal. Transaction: name: normal. Transaction: number: transactions Fixed. Savings withdrawl: balance: credit. Interest: deposit: Initialize new Equity. Bond balance buy: credit. Interest: face. Value: rate: sell: value Equity. Stock balance buy: initialize price sell. Amount: value new
- Slides: 12