Object Oriented Analysis-System Design
Object Oriented Analysis-System Design
Lecture 9
Object-Oriented Analysis
Object-Oriented Analysis
• Sample problem taken from Object-
Oriented Modeling and Design by James
Rumbaugh, et.al., Prentice Hall, 1991.
• Automated Teller Machine
ATM Problem Statement
Design the software to support a computerized
banking network including both human cashiers
and automatic teller machines (ATMs) to be
shared by a consortium of banks. Each bank
provides its own computer to maintain its own
accounts and processes transactions against
them. Cashier stations are owned by individual
banks and communicate directly with their own
bank's computers. Human cashiers enter
account and transaction data. Automatic teller
machines communicate with a central computer
which clears transactions with the appropriate
banks.
ATM Problem Statement (cont.)
An automatic teller machine accepts a cash
card, interacts with the user, communicates with
the central system to carry out the transaction,
dispense cash, and prints receipts. The system
requires appropriate recordkeeping and security
provisions. The system must handle concurrent
access to the same account correctly. The
banks will provide their own software for their
own computers; you are to design the software
for the ATMs and the network. The cost of the
shared system will be apportioned to the banks
according to the number of customers with cash
cards.
Identifying Object Classes
1. Extract nouns from problem statement
2. Eliminate spurious classes
• Candidate nouns
Software, Banking Network, Cashier, ATM,
Consortium, Bank, Bank Computer,
Account, Transaction, Cashier Station,
Account Data, Transaction Data, Central
Computer, Cash Card, User, Cash, Receipt,
System, Recordkeeping Provision, Security
Provision, Access, Cost, Customer
Identifying Object Classes.2
• Characteristics of unnecessary or
incorrect classes
– Redundant
– Irrelevant
– Vague
– Attributes
– Operations
– Roles
– Implementation Constructs
Identifying Object Classes.3
• Classes Eliminated
– Vague: System, Recordkeeping Provision,
Security Provision, Banking Network
– Redundant: User
– Irrelevant: Cost
– Attribute: Account Data, Receipt, Cash,
Transaction Data
– Implementation: Access, Software
Identifying Object Classes.4
• Remaining, Good Classes
– Account, ATM, Bank, Bank Computer, Cash
Card, Cashier, Cashier Station, Central
Computer, Consortium, Customer,
Transaction