SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Nov 2007
    Location
    London, UK
    Posts
    91
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need help breaking this speck down

    I have inherited an Internet based application that simply put enables the transfer of money. The problem is there is duplicate code every where, no structure and maintenance is a nightmare. There are plans to add other functionality and as a result its been agreed to redesigned.

    I am trying to draw a DFD but have some difficulty figuring out all the objects. Below is the specs in its simplest form.

    Code:
    Problem Naration
    MTC = Money Transfer Company
    
    Sender sends money(Transfer) from one country to Beneficiary
     in another through MTC directly or through it's agents. 
    Beneficiary collects money(Payment) from Partner Banks 
    in destination country. Every sender is registered and given a 
    account number which they have to present each time they want
     to use the service. The Beneficiary is also registered and given
     an account number which they must present togerther with a 
    Unique Payment Code at the Partner Bank to collect their money.
     For the exchange of funds between MTC and Partner Banks, 
    Foreign Partner Banks are appointed where each party holds an 
    account to facilitate exchange.
    I'll appreciate some help with the analysis.
    Prov. 13:20 - He that walketh with wise men shall be wise: but a
    companion of fools shall be destroyed

  2. #2
    SitePoint Enthusiast
    Join Date
    Nov 2007
    Location
    London, UK
    Posts
    91
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This a 2nd attempt at asking the same question. I will make it a bit more specific.....
    I new to OOP and am currently trying to redesign a legacy Money transfer program. I am stuck trying to decide how to classify or treat the word

    Transfer
    . Its a Noun and also a Verb. I learned that Noun is a Object and Verb is a Method.

    Eg.

    Customer transfers money to a recipient through MTC (the money transfer company) and recipient collects the money from a partner bank.
    I will say the objects are Customer, Recipient, MTC, Transfer and Bank? However Transfer is also a process ie.

    Customer gives money to MTC
    MTC accepts money and gives a reciept to customer
    Customer notifies recipient
    Recipient goes to Bank and collects money
    etc...

    Is my analysis above correct? Basically when you have a noun that is also a verb how do you handle it in an OOP design. Are there any special considerations? Hope you get my question.
    Prov. 13:20 - He that walketh with wise men shall be wise: but a
    companion of fools shall be destroyed

  3. #3
    I'm a college yuppie now! sbdi's Avatar
    Join Date
    Jul 2000
    Location
    Dublin , Ireland
    Posts
    1,271
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Seems logical. Maybe make it a little more abstract (You may have types of customers or mtc's )
    Back Again


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •