



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




The Object-Oriented Modeling assists the programmer to address the complexity of a problem domain by considering the problem not as a set of functions that can be performed but primarily as a set of related, interacting Objects. This article is based on the approach of Object Oriented modeling through Unified Modeling Language (UML) for an ATM system in Banking sector. The main aim of this article is to provide a flexible and faithful environment for a customer, who wants to do online banking transactions. After successful authentication, the customer can withdraw the desire amount (within the prescribed limit) from the ATM machine or can transfer amount to other account. User can also change the pin code. The ATM has solved many problems and now customer can have money transaction 24/7. In this article UML Class, Interaction diagram, Activity diagram & Use Case diagram are also designed for the ATM System.
modeling, Use case modelling
The Unified Modeling Language (UML) is a very dominant modeling graphical language for specifying, constructing and documenting the artifacts of software system. UML is simply another graphical representation of a common semantic model. UML provides a comprehensive notation for the full lifecycle of object- oriented development UML is a collection of best engineering practices that have successful in the modeling for a design of a huge and complex systems. Modeling is very important for readability and reuse of the systems. UML offers a set of notations and rules for using the same. The main task of the UML is to create a simple, well documented and easy to understand software model for the people. The UML modeling consists of nine diagrams to model a software system & these diagrams are Use case Diagram, Class Diagram, Object Diagram, State Diagram, Activity Diagram, Sequence Diagram, Collaboration Diagram, Component Diagram & Deployment diagram. Nowadays knowledge based system is most popular and needed in every sector like medical sector, banking sector, engineering sector and traveling sector etc. In the Banking sector, knowledge means simply having the knowledge from expert. Knowledge
modeling is the major activity used to understand the problem and sending the solution rapidly.
The ATM will service one customer at a time. A customer will be required to insert an ATM card and enter a personal identification number (PIN) - both of which will be sent to the bank for validation as part of each transaction. The customer will then be able to perform one or more transactions. The card will be retained in the machine until the customer indicates that he/she desires no further transactions, at which point it will be returned - except as noted below. The ATM must be able to provide the following services to the customer:
Object-oriented analysis looks at the problem domain, with the aim of producing a conceptual model of the information that exists in the area being analyzed. Analysis models do not consider any implementation constraints or how the system is to be built. The identified objects reflect entities and operations that are associated with the problem to be solved.
This part describes the way that system should look. It analyses the structure and substructure of the modeled system based on objects, attributes, operations and relationships.
3.1.1. Use case modeling for ATM systems
In an automated teller machine shown in Figure 1, the Bank Customer can withdraw cash from an account, transfer funds between accounts, or deposit funds to an account. These correspond to specific goals that the actor has in using system.
System Startup
System ShutDown
Operator
Deposit (^) BalanceEnquiry
PIN Verification
Transaction
Customer Session
<
Bank
Withdrawal
MaxWithdrawal
<
Figure 1 : Use Case Diagram for ATM System
Withdrawal Transaction Use Case A withdrawal transaction asks the customer to choose a type of account to withdraw from. The system verifies that it has sufficient money on hand to satisfy the request before sending the transaction to the bank.
Pre-conditions: The customer must have a valid ATM card and PIN. Post-conditions : The customer receives the cash amount that he wanted to withdraw, with a receipt, if indicated. The customer’s account balance is updated in the system. Specifications: Primary Actor: Customer Stakeholders:
Alternate flow of events:
Deposit Transaction Use Case A deposit transaction asks the customer to choose a type of account to deposit to. If the transaction is approved, the machine accepts an envelope from the customer containing cash and/or checks before it issues a receipt.
Pre-conditions: The customer must have a valid ATM card and PIN. Post-conditions : The customer receives the receipt of cash amount/cheque that he has deposited. The customer’s account balance is updated in the system. Specifications: Primary Actor: Customer Stakeholders:
3.1.2. Class Diagram
Shown below is the class diagram for the ATM system. The basic structure of the class diagram arises from the responsibilities and relationships discovered when doing the CRC cards and Interaction Diagrams. (If a class uses another class as a collaborator, or sends a message to an object of that class during an Interaction, then there must
PowerOff Do:sleep
Idle Do: wait for service
Active
Menu Display Do:select menu
Transaction Do: perform transaction
Print Do:print the receipt
Menu Display Do:select menu
Transaction Do: perform transaction
menu selected
transaction continued
Print Do:print the receipt
transaction successful/ print
transaction over
card ejected / stop activity
switch on/ ready to serve
card inserted/ perform activity
switch off/ sleep
Figure 3 : State Diagram for ATM System
Wait Do:wait for transaction
Deposit Do: debit money
Wthdrawal Do:withdraw cash
Enquiry Do:enquire balance
deposit selected / deposit
withdrawal selected / withdraw
balance enquiry selected / enquiry
withdrawal selected/ withdraw
deposit selected / deposit
withdrawal done enquiry successful
deposit successful
Figure 4 : State Diagram for Transaction
3.2.2. Interaction Diagrams
UML defines two types of Interaction Diagram: the Sequence Diagram and the Collaboration Diagram. Interactions between objects are represented by interaction diagrams – both sequence and collaboration diagrams. An example of a collaboration diagram is shown below. Objects are drawn as rectangles and the lines between them indicate links – a link is an instance of an association. The order of the messages along the
links between the objects is indicated by the number at the head of the message. Sequence diagram shows the relationship between classes arranged in a time sequence. Within a sequence diagram an object is shown in a box at the top. The sequence diagram of the above UML class model is designed and used for online money transactions. The communication between two objects represented by an arrow & the message on that arrow, the vertical lines show the life of the objects.
: CardReader : ATM : Customer : Transaction : Customer Console
Insert Card card Verification
cardInserted()
: Session
<
<
performTransactions() continueTransactions()
ejectCard() cardEjectionMessage()
Figure 5 : Sequence Diagram for ATM Session
: Customer : ATM^ : CardReader^ : Customer Console
insertCard() (^) verifyCard()
cardVerification()
enterPIN()
PINDetails() verifyPIN()
PINValidation() ValidationOfPIN()
Figure 6 : Sequence Diagram for PIN verification
4. Object Oriented design
Object-oriented design is the process of planning a system of interacting objects for the purpose of solving a software problem. It is one approach to software design.
A component diagram in the Unified Modeling Language, depicts how components are wired together to form larger components and or software systems.