OOAD Lab Record

Post on 29-Oct-2014

848 views 61 download

Tags:

Transcript of OOAD Lab Record

PONDICHERRY CENTRAL UNIVERSITY

DEPARTMENT OF COMPUTER SCIENCE

PONDICHERRY

ATM MANAGEMNET SYSTEM

SOFTWARE ENGINERING PROJECT REPORT

SUBMITTED TO, SUBMITTED BY,

Mrs.S.SHIVSATYA Navneet Prakash

Sr. Lecturer Amit Priyadarshi

Dept. of Computer Science Ajay Panwar

MODELING THE UML DIAGRAM FOR BANKING

ATM SYSTEM

Problem Statement

Here our main intention is to design a prototype of the ATM Management System. For this we need to collect all the requirements related to the system. After collecting all the requirements we develop a Use Case Diagram for the ATM Management System.

Use Case Diagram for the ATM Management System Prototype

The above use case diagram depicts that the customers of the ATM System can have saving and current accounts. The ATM System allows customers to withdraw cash after it validates the ATM card and PIN of customers. The ATM system also enables the customers to change PIN and obtain a transaction summary.

After designing the Use Case Diagram we have to design Sequence Diagram for all the use cases.

Sequence diagram for Cash Withdrawal Saving:

Sequence Diagram for Change PIN:

Sequence Diagram for Transaction Summary:

After designing Sequence Diagram we will develop Collaboration diagram for all the use cases:

Collaboration diagram for Cash Withdrawal Saving:

Collaboration diagram for Change PIN:

Collaboration diagram for Transaction diagram:

After designing Collaboration Diagram we will develop Activity Diagram.

Activity Diagram for the ATM System:

After all this diagram we to model the static view of the prototype, the manager needs to create the following diagrams:

Class diagram Object diagram

Solution

To model the static view of the prototype of the ATM System, we need to perform the following steps.

1. Identify the classes for prototype.

2. Identify the attribute of classes and their visibility to other classes.

3. Identify the operations and their visibility to the other classes.

4. Identify the relationship among the classes.

5. Identify the interface and their relationship.

6. Create a class diagram in Jude.

7. Create an object diagram in Jude.

Identify Classes

ATMCard

BankCustomer

Transaction

Account

SavingAccount

CurrentAccount

Identify the Attributes and their visibility of classes

Class Attribute Visiblity

ATMCard PIN

CardNumber

AccountNo

Private

Private

Private

BankCustomer CustomerName

Address

PhoneNumber

email

Card AccountNo

Private

Private

Private

Private

Private

Transaction Date

Amount

Deposit

trans_no

Private

Private

Private

Private

Account AccountNo

Balance

trans_no

Private

Private

Private

SavingAccount InterestRate Private

CurrentAccount InterestRate Private

Identify Operations

Class Operations Description

ATMCard SetPIN Update the PIN

BankCustomer WithdrawCash

ChangePIN

SelectTransaction

RequestTransaction

For withdrawing cash

Invokes the PIN change request. Enters the new PIN.

Select a transaction from a list of transactions.

Request for a transaction summary.

Transaction CalculateBallance To calculate the balance of the account after transaction.

Account CalculateIntrest

UpdateAccount

VerifyWithdrawlAmount

To calculate the interest of account.

To update the account after the transaction.

To verify the withdrawl amount

SavingAccount CalculateIntrest To calculate the interest of account.

CurrentAccount CalculateIntrest To calculate the interest of account.

Typically, the operations of classes are assigned public visibility to enable the generalization and association relationship among classes. The classes of the ATM System need to interact with each other to achieve the functions. Therefore, all the operations of the Bank ATM System classes have been assigned public visibility.

Create Class diagram

After designing Class Diagram for the system we have to develop design template in VB.

Prototype for the User Interface of the ATM Management System

User interface for MDI Form:

User interface for Withdraw Money:

User interface for PIN Verification