Banking System Design by jadakiss

VIEWS: 2,622 PAGES: 2

									Banking System Design
   1. Initial conceptual class diagram

                      Bank account                                        Transactions

                      Owner: string                                       Date: date
                      Balance: dollars                   1            *   Branch: string

                      +deposit (amount: dollars)                          Deposit (amount: dollars)
                      +withdrawal(amount:dollars)                         Withdrawal(amount:dollars)
                      +balance(amount:dollars)                            Check(amount:dollars)




     Checking account                      Saving account

     Insufficient fund: dollars            Interest: dollars


                                           +deposit monthlyinterest
     +process check                        (amount: dollars)                  Additional classes (not
     (checkprocess: check)
                                                                              shown here):
                                                                                 Client
                                                                                 Bank
                                                                                 Bank personnel
                                                                                 ATM
   Checking 1                Checking 2
                             +min.
   +interest()               balance()
                             +fee()



2.Structurechart
                                                  Banking
                                                  system




                 Check                    Deposit              Withdraw              Maintain
                 balance                  money                money                 system




     Authent               Get                  Add to          Reduce            Verify        Print
     icate                 balance              balance         balance           amount        receipt
   3. Use cases (sample)


                            ATM
                                   withdraw



                                                                 Banking
                                   deposit
                                                                 System



   Client                          Check
                                   balance




   4. Sequence diagram -- withdraw money



      Customer                           ATM                                  Bank


                  Withdraw (account#,
                       amount)                  Get-balance (account#)


                                                                         Look up balance
                                                          Balance
                                                            Balance
                                     Verify sufficient
                                           fund
                                                   Withdraw (account#,
                                                        amount)
                                                                         Subtract amount
                                                                          from balance
                                                         New balance


                     Cash

                   Print receipt




Additional items not shown here: interface design, implementation platform,
programming languages, behavior under abnormal circumstances, etc.

								
To top