Pca20c07j Object Oriented Analysis and Design Laboratory
Pca20c07j Object Oriented Analysis and Design Laboratory
OBJECTIVES:
To capture the requirements specification for an intended software system
To draw the UML diagrams for the given specification
To map the design properly to code
To test the software system thoroughly for all scenarios
To improve the design by applying appropriate design patterns.
Draw standard UML diagrams using an UML modeling tool for a given case study and
map design to code and implement a 3 layered architecture. Test the developed code and
validate whether the SRS is satisfied.
TABLE OF CONTENTS
Case Tools
3 Book bank
4 Exam Registration
INTRODUCTION:
CHARACTERISTICS OF CASE:
i. Class diagram
ii. Use-case diagram
iii. Behavior diagram
iv. Interaction diagram
v. sequence diagram
vi. collaboration diagram
vii. state chart diagram
viii. activity diagram
ix. Implementation
diagram 9.1component
diagram 9.2deployment
diagram
2. Use-case diagram:
3. Behavior diagram:
4. Interaction diagram
possible states that a particular object can get into and how the object's state
changes as a result of events that reach the object. In most OO techniques,
state diagrams are drawn for a single class to show the lifetime behavior of a
single object.
6. Activity diagram:
7. Implementation diagram:
8. Component diagram:
9. Deployment diagram:
NOTATION ELEMENTS:
These are explanatory parts of UML model. They are boxes which
may apply to describe and remark about any element in the model. They
Dependency:
Association:
Generalization:
Realization:
UML you need to form the conceptual model of UML. This requires
three major elements:
UML basic building blocks.
Rules that dictate how this building blocks are put
together.
Some common mechanism that apply throughout the
language.
Once you have grasped these ideas, you may be able to read. UML
create some basic ones. As you gain more experience in applying conceptual
model using more advanced features of this language.
Description:
Purpose:
Main flow:
First, the sender gives his id and enters his login. Now, he enters the
message to the receiver id.
Alternate flow:
Pre-condition:
Post-condition:
The user is not allowed to enter if the password or user name is not
valid.
Class diagram:
Description:
<<Class name>>
<<Attribute 1>>
<<Attribute n>>
<<Operation ()>>
Relationship used:
Generalization:
It is a kind of relationship
State chart:
Description:
Decision:
Synchronization:
State:
Start state:
End state:
Activity diagram
Description:
Activity:
Decision:
Start state:
Object flow:
Synchronization:
End state:
An end state represents a final or terminal state on an activity diagram
or state chart diagram.
Sequence diagram:
Description:
The sequence diagram for the e-mail client system consists of the
following objectives:
Object:
Message icon:
Collaboration diagram:
Description:
Collaboration diagram shows object s, their links and their messages. They
can also contain simple class instances and class utility instances.
CONCLUSION:
Thus the study for case tools was done.
Ex no:2
PASSPORT AUTOMATION SYSTEM
AIM:
To create an automated system to perform the Passport Process.
2.1SOFTWARE INTERFACE
• Front End Client - The applicant and Administrator online
interface is built using
JSP and HTML. The Administrators's local interface is built using
Java.
•Web Server - Glassfish application server(Oracle Corporation).
•Back End - Oracle database.
2.2HARDWARE INTERFACE
registration
enter applicant id
check status
administrator
dispatch passport
administrator
administrator system
system admin panel
admin panel application
application
database
database
1: 1.username\password
2: authetication suceed
6: give details
6: give details
databas applicati
e on
applicant system
system
applicant
database
database
1: enter applicant id
1: enter applicant id
3: display the status
applicant
system
databas
e
The diagrams show the applicant enters his id and the system fetch the
details from the database and display the status.
applicant
applicant database
database
system
system
2: registeration form
3: fill in details
4: submit
5: give applicatino id
6: store full deatils
databas
e
The diagrams show the applicant request the system for registration
and the system provide the register form and applicant fill the form and
submit and the system give the applicant id. The database stores the full
details.
(VII) PARTIAL LAYERD LOGICAL ARCHITECTURE DIAGRAM
UI
Swing Text
Domain
Authentication
Login
Technical Services
Persistence Log4J
SOAP
DBFacade
<<client workstation>>
<<database>>
:GenericPC
:MySQL
SQL HTT
<<server>> :T omcat6
DEPLOYMENT DIAGRAM
COMPONENT DIAGRAM
RESULT:
Thus the mini project for passport automation system has been
successfully executed and codes are generated.
Ex no:3
BOOK BANK SYSTEM
AIM:
To create a system to perform book bank operation
2.1SOFTWARE INTERFACE
2.2HARDWARE INTERFACE
by the “to” object. The “to” object performs the operation using a method
that the class contains.
It is also represented by the order in which things occur and how the
objects in the system send message to one another.
The diagrams show the pin no is entered and check the pin .Get no
and validate password check the condition based on condition book issue
and return are done. Pay the online and renewed.
4: Validate Password
1: pin no :
BookBank
9: book issue
11:
8: no 2: Check pin
checkDate 10: yes
6: Yes
: BookReturn : BookIssue : validity
UI
Swing Text
BookBank BkBank
system Console
Domain
(VIII) D
Technical Services
Persistence Log4J
SOAP
DBFacade
Deployment diagram
EDeployment diagrams are used to visualize the topology of the
Pphysical components of a system where the software components
L
Oare deployed.
Downloaded by Rudra ([email protected])
lOMoARcPSD|44294995
YMENT
DIAGRAM SQ HTT
<<server>>
:To
A
Fig.8.1.DEPLOYMENT DIAGRAM
N
D
COMPONENT DIAGRAM
C
Comcomponent diagrams are used to visualize the organization and relationships
O
M Fig.8.2.COMPONENT DIAGRAM
RPESULT
:
T hus the mini project for Book Bank System has been successfully
O
executed
a nd codes are generated.
N
E
N
T
D
I
A
Ex no:4 EXAM REGISTRATION SYSTEM
AIM:
To create a system to perform the Exam Registration system
Downloaded by Rudra ([email protected])
lOMoARcPSD|44294995
2.1SOFTWARE INTERFACE
• Front End Client - The student and Controller online interface is
built using JSP and HTML. The Exam Controller's local interface is
built using Java.
• Web Server - Glassfish application server(SQlCorporation).
• Back End - SQL database.
2.2HARDWARE INTERFACE
The server is directly connected to the client systems. The client
systems have access to the database in the server.
(III)USECASE DIAGRAM:
4. Pay fee
5. Display details
6. Logout
USECASE DIAGRAM :
(V)CLASS DIAGRAM:
(VI)INTERACTION DIAGRAM:
Database
Database ::
ExamController
ExamController
: student
1: login
2: confirmation
3: pay
4: register
5: conformation
7: logout
3: pay
: ExamController
: student
1: login
2: confirmation 4: register
7: logout
6: view exam details
Database
Fig. 6.2. COLLABORATION DIAGRAM FOR REGISTRATION
SYSTEM
Swing Text
ExamReg ExamReg
System Console
Domain
Student ExamController
Authentication
Logout
Login
Technical Services
Persistence Log4J
SOAP
DBFacade
<<client
<<database>>
workstation>>:
:MySQL GenericPC
SQL HTTP
<<server>> :To
mcat6
Fig.7.1.DEPLOYMENT DIAGRAM
COMPONENT DIAGRAM
Fig.7.2.COMPONENT DIAGRAM
RESULT:
Thus the mini project for Exam Registration system has been
successfully executed and codes are generated.
Ex no: 5 STOCK MAINTENANCE
AIM:
(I)PROBLEM STATEMENT
The stock maintenance system must take care of sales information of
the company and must analyze the potential of the trade. It maintains the
number of items that are added or removed.The sales person initiates this
Use case. The sales person is allowed to update information and view the
database.
PURPOSE
The entire process of Stock maintenanceis done in a manual manner
Considering the fact that the number of customers for purchase is increasing
every year, a maintenance system is essential to meet the demand. So this
system uses several programming and database techniques to elucidate the
work involved in this process.
SCOPE
• The System provides an interface to the customer where they can fill
in orders for the item needed.
• The sales person is concerned with the issue of items and can use
this system.
TOOLS TO BE USED
• Eclipse IDE (Integrated Development Environment)
• Rational Rose tool (for developing UML Patterns)
(III) USE CASE DIAGRAM
The functionality of a system can be described in a number of
different use-cases, each of which represents a specific flow of events in a
system. It is a graph of actors, a set of use-cases enclosed in a boundary,
communication, associations between the actors and the use-cases, and
generalizationamong the use-cases
Place Order
Track order
Customer
Validate Customer
Ship Order
Sales Person
Bill Customer
Customer
Sales
Request Service
Deliver Order
Collect Order
Description:
A class diagram describes the type of objects in system and
various kinds of relationships that exists among them.
Class diagrams and collaboration diagrams are alternate
representations of object models.
AnAn Order
Order AnAn Order
Order AnAnOrder Line A AStock
Order Line Item
Stock Item
Prepare
Prepare
Has Stock:=Check
[has Stock]:Remove
[needs reorder]:newAAReorder
Reorder
Item Item
A Delivery Item
A Delivery Item
COLLABORATION DIAGRAM
ORDER ENTRY
WINDOW
1: prepare()
AN ORDER
4: [hasstock]remove()
ORDER LINE STOCK ITEM
5: [needs Reorder]:new
6: [hasstock]:new
UI
Swing Text
Domain
Customer Order
Shipment
Product
Technical Services
DBFacade
LAN
<<database>> <<client workstation>>: GenericPC
:MySQL
Component Diagram
Fig.8.2.COMPONENT DIAGRAM
RESULT:
Thus the mini project for stock maintenance system has been
successfully executed and codes are generated.
AIM
To design an object oriented model for course reservation system.
OBJECTIVES
a. The main purpose of creating the document about the
software is to know about the list of the requirement in the
software project part of the project to be developed.
FUNCTIONALITY
Many members of the process line to check for its occurrences and
transaction, we are have to carry over at sometimes
USABILITY
The user interface to make the transaction should be effectively
PERFORMANCE
It is the capability about which it can performed function for many user at
sometimes efficiently (ie) without any ever occurrences
RELIABILITY
The system should be able to the user through the day to day transaction
CLASS DIAGRAM:
A class diagram describes the type of objectors in the system the various
kinds of static relationship that exist among them.
SEQUENCE DIAGRAM
A sequence diagram is one that includes the object of the projects and tells
the lifetimes and also various action performed between objects.
COLLOBORATIION DIAGRAM
It is same as the sequence diagram that involved the project with the only
difference that we give the project with the only difference that we give
sequence number to each process.
ACTIVIY DIAGRAM
It includes all the activities of particular project and various steps using join
and forks
COMPONENT DIAGRAM
DEPLOYMENT DIAGRAM
PACKAGE DIAGRAM
b. Domain layer
RESULT
Thus the mini project for online course reservation system has been
successfully executed and codes are generated.
AIM
To develop the Airline/Railway reservation System.
(II)OVERALL DESCRIPTION
Functionality
The database should be act as an main role of the e-ticketing system it can be
booking the ticket in easy way.
Usability
The User interface makes the Credit Card Processing System to be efficient.
Performance
It is of the capacities about which it can perform function for many users
at the same times efficiently that are without any error occurrence.
Reliability
The system should be able to process the user for their corresponding
request.
The online ticket reservation system makes use of the following classes:
1. ticketReservation
2. trainInfo
3. passengerInfo
4. seatAvailStatus
SEQUENCE DIAGRAM
COLLABRATION DIAGRAM
ACTIVITY DIAGRAM
Activity diagrams are graphical representations of workflows of stepwise
activities and actions with support for choice, iteration and concurrency. In
the Unified Modeling Language, activity diagrams can be used to describe
the business and operational step-by-step workflows of components in a
system. An activity diagram shows the overall flow of control. An activity is
shown as an rounded box containing the name of the operation.
COMPONENT DIAGRAM
RESULT
Thus the mini project for Airline/Railway reservation System has been
successfully executed and codes are generated.
AIM:
To implement a software for software personnel management system.
2.1SOFTWARE INTERFACE
• Front End Client - The applicant and Administrator online
interface is built using JSP and HTML. The HR's local interface
is built using Java.
• Server - Glassfish application server(SQL Corporation).
• Back End - SQL database.
2.2HARDWARE INTERFACE
The server is directly connected to the client systems. The client
systems have access to the database in the server.
Fig.5.CLASS DIAGRAM
Fig.6.1.SEQUENCE DIAGRAM
Fig.6.2.COLLABORATION DIAGRAM
Fig.8.1.DEPLOYMENT DIAGRAM
COMPONENT DIAGRAM
Fig.8.2.COMPONENT DIAGRAM
RESULT:
Thus the mini project for software personnel management system has
been successfully executed and codes are generated.
Ex. No:9
CREDIT CARD PROCESSING
AIM:
To create a system to perform the credit card processing
PRODUCT PERSPECTIVE
SOFTWARE INTERFACE
• Front End Client - The applicant and Administrator online
interface is built using
JSP and HTML. The Administrators's local interface is built using
Java.
• Web Server - Glassfish application server(SQL Corporation).
• Back End - SQL database.
HARDWARE INTERFACE
The transaction details are recorded by the credit card processor and
results are securely relayed to the merchant. Merchant’s site receives
transaction result and does appropriate actions (e.g. saves the order & shows
message).
Fig.4.CLASS DIAGRAM
Fig.5.1.SEQUENCE DIAGRAM
Fig.5.2.COLLABORATION DIAGRAM
UI
Swing
CCP system
Domain
User Merchant
AutherizationSerivi
c
e
Reply
Technical Services
Persistence
DBFacade Log4J
SOAP
<<client
<<database>
workstation
>
>>:Generic
: SQL SQ
HT
<<server>>
Fig.7.1.DEPLOYMENT DIAGRAM
COMPONENT DIAGRAM
Component diagrams are used to visualize the organization and relationships
among components in a
Fig.7.2.COMPONENT DIAGRAM
RESULT:
Thus the mini project for credit card processing system has been
successfully executed and codes are generated.
Ex. No:10 AIM: BOOK MANAGEMENT SYSTEM
OVERALL DESCRIPTION
PRODUCT PERSPECTIVE
The ORS acts as an interface between the user and the 'e-book
manager'. This system tries to make the interface as simple as possible and at
the same time not risking the security of data stored in. This minimizes the
time duration in which the user receives the books or magazines.
SOFTWARE INTERFACE
Front End Client - The Student and Librarian online interface is built
using JSP and HTML. The Librarians local interface is built using Java.
HARDWARE INTERFACE
(III)USE-CASE DIAGRAM:
(V)CLASS DIAGRAM
It is also represented by the order in which things occur and how the
objects in the system send message to one another.
Fig.6.1.SEQUENCE DIAGRAM
Fig.6.2.COLLABORATION DIAGRAM
UI
Swing
E-Book system
Domain
Client Order
Technical Services
Persistence
SOAP Log4J
DBFacade
SQL HTTP
Fig.8.1.DEPLOYMENT DIAGRAM
COMPONENT DIAGRAM
Component diagrams are used to visualize the organization and relationships
among components in a system.
Fig.8.2.COMPONENT DIAGRAM
RESULT:
Thus the mini project for E-Book System has been successfully
executed and codes are generated.