Certificate: Gayatri Vidya Parishad College of Engineering Madhurawada, Visakhapatnam-530 041
Certificate: Gayatri Vidya Parishad College of Engineering Madhurawada, Visakhapatnam-530 041
com/fyp/
JNTU Regd.No
CERTIFICATE
1) External:
2) Internal:
Signature of H.O.D
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
ACKNOWLEDGEMENT
2
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
Contents
UNIFIED MODELING LANGUAGE.............5
INTRODUCTION................................................................................................... .....5
MODEL............................................................................................................. ........5
MODELING............................................................................................. ..................5
VISUAL MODELING.......................................................................................... .........5
WHY DO WE MODEL?........................................................................................ .......5
AIMS OF MODELING................................................................................. ................5
VISUAL MODELING USES.........................................................................................6
HISTORY OF UML.....................................................................................................6
WHERE UML CAN BE USED?....................................................................................6
UML Diagrams................................................................................. ........................7
BEHAVIORAL DIAGRAMS..........................................................................................7
STRUCTURAL DIAGRAMS......................................................................................... .9
3
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
ACTIVITY DIAGRAM................................................................................................17
INTERACTION DIAGRAM.........................................................................................18
SEQUENCE DIAGRAM.............................................................................................18
COLLABORATION DIAGRAM.............................................................................. ......19
CLASS DIAGRAM.............................................................................. ......................20
STATE CHART DIAGRAM.........................................................................................21
STIMULUS RESPONSE DIAGRAM.............................................................................23
FORWARD ENGINEERING.......................................................................................24
REVERSE ENGINEERING.................................................................................. .......39
POINT OF SALE...................................48
INTRODUCTION ................................................................................................ .....48
TEXTUAL ANALYSIS................................................................................................48
USECASE DIAGRAM.......................................................................................... ......49
INTERACTION DIAGRAM.........................................................................................52
SEQUENCE DIAGRAM.............................................................................................52
COLLABORATION DIAGRAM.............................................................................. ......53
CLASS DIAGRAM.............................................................................. ......................53
STATE CHART DIAGRAM.........................................................................................54
STIMULUS RESPONSE DIAGRAM.............................................................................56
4
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
SIMULATED COMPANY.........................65
INTRODUCTION ................................................................................................ .....65
TEXTUAL ANALYSIS................................................................................................65
USECASE DIAGRAM.......................................................................................... ......66
ACTIVITY DIAGRAM................................................................................................67
INTERACTION DIAGRAM.........................................................................................69
SEQUENCE DIAGRAM.............................................................................................69
COLLABORATION DIAGRAM.............................................................................. ......70
CLASS DIAGRAM.............................................................................. ......................70
STATE CHART DIAGRAM.........................................................................................71
STIMULUS RESPONSE DIAGRAM.............................................................................73
6
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
• Transportation
• Defense
• Retail
• Modeling Electronics
• Scientific
• Distributed Web services
UML Diagrams
Diagram is a graphical representation of elements. UML diagrams
can be classified into two types
1. Structural Diagrams
2. Behavioral Diagrams
Structural Diagrams:
These can be divided into 4 types:
i. Class Diagram
ii. Object Diagram
iii. Component Diagram
iv. Deployment Diagram
Behavioral Diagrams:
These can be classified into 5 types:
i. Use case diagrams
ii. Sequence diagram
iii. Collaboration diagram
iv. State Chart Diagram
v. Activity Diagram
BEHAVIORAL DIAGRAMS
7
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
8
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
a) Actor
b) Object
c) Messages
d) Lifeline
e) Focus of Control
2. Collaboration Diagram
Collaboration diagram displays object interactions organized around
objects and their links to one another. The components are:
a) Actor
b) Object
c) Link
9
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
10
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
INTRODUCTION TO RATIONAL
ROSE
11
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
d. Deployment view
2. Diagram Tool Bar
This can contain the tools of the corresponding diagram in
which we are going to draw
3. Diagram Window
In this window we can draw the diagram
4. Message Window
It contains the message of documentation of the
corresponding diagram
5. Log Window
This is the place where the errors can be displayed when we
are drawing the diagram
USECASE VIEW
In this view we can draw two diagrams:
1. Use case diagram
2. Activity Diagram
12
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
LOGICAL VIEW
In this view we can model:
a. Class diagram
b. Sequence diagram
c. Collaboration diagram
d. State Chart diagram
13
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
DEPLOYMENT VIEW
In this we can model deployment diagram
To draw diagram:
1. Select deployment view, then right click on deployment view
2. Select New, in that select deployment diagram
3. Name the diagram
4. After double clicking on the diagram name, the corresponding
diagram will be opened
5. We can draw diagram by drag and drop the components of
corresponding diagrams
14
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
TEXTUAL ANALYSIS
(a)ACTORS
i. Librarian
ii. Borrower
iii. Catalog
iv. Master Librarian
(b)VERBS
i. Borrower:
1. Logs into the system
2. Browses/searches for books or magazines
3. Makes/removes reservation
4. Views results and reports from the unified library application system
ii. Librarian:
1. Manages and validates members
2. View reports from the system
3. Issues books
4. Calculates dues
5. Takes books
6. Places orders to the master librarian
7. Maintains list of books and magazine
iii. Master Librarian
1. Maintains other librarians
15
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
USECASE DIAGRAM
Use case diagram is created to visualize the interaction of our system
with the outside world. The components of use case diagram are:
Use Case: Scenarios of the system
Actor: Someone or something who is interacting with the system
Relationship: Semantic link between use case and actor. The forms of
relationship are:
a. Association
b. Dependency
c. Generalization
16
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
ACTIVITY DIAGRAM
Activity diagram shows the flow of events within our system.
The components are:
a) Start State
b) End State
c) Transition
d) Decision Box
e) Synchronization Bar
f) Swim Lane
17
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
INTERACTION DIAGRAM
An interaction diagram models the dynamic aspects of the system
by showing the relationship among the objects and messages they
may dispatch. There are two types of interaction diagrams:
SEQUENCE DIAGRAM
Sequence diagram shows the step to step what mush happen to
accomplish a piece of functionality provided by the system. The
components are:
18
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
a) Actor
b) Object
c) Messages
d) Lifeline
e) Focus of Control
COLLABORATION DIAGRAM
Collaboration diagram displays object interactions organized around
objects and their links to one another. The components are:
a) Actor
b) Object
c) Link
19
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
CLASS DIAGRAM
Class diagram shows structure of the software system. The class
diagram shows a set of classes, interfaces and their relationships. The
components are:
a) Class
b) Relationship:
The forms of relationship are:
1. Association
20
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
2. Aggregation
3. Generalization
4. Composition
5. Dependency
21
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
d) Transition
Member:
Librarian
22
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
Library Administrator
23
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
FORWARD ENGINEERING
24
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
25
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
26
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
27
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
28
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
29
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
30
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
The code is generated at the specified path that is specified under Project
Specification part as:
Administrator:
//Source file: C:\\Documents and Settings\\Administrator\\My
Documents\\kiShAn\\administrator.java
/**
* @roseuid 47171E65029F
*/
public administrator()
{
/**
* @return String
* @roseuid 47171A5C030D
*/
public String receive_order()
{
return null;
}
/**
* @roseuid 47171A6102DE
*/
public void manage_librarians()
{
31
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
/**
* @roseuid 47171A6703D8
*/
public void purchase_new_stock()
{
}
}
Catalog
/**
* @roseuid 47171E6302DE
*/
public catalog()
{
/**
* @return String
* @roseuid 47171C310290
*/
public String store_member_details()
{
32
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
return null;
}
/**
* @return String
* @roseuid 47171C3901D4
*/
public String store_book_details()
{
return null;
}
/**
* @return String
* @roseuid 47171C3F035B
*/
public String give_return_messages()
{
return null;
}
}
Librarian
//Source file: C:\\Documents and Settings\\Administrator\\My
Documents\\kiShAn\\Librarian.java
/**
33
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
* @roseuid 47171E660177
*/
public Librarian()
{
/**
* @return Integer
* @roseuid 47171AD00280
*/
public Integer calculate_dues()
{
return null;
}
/**
* @return String
* @roseuid 47171AD60242
*/
public String view_reports()
{
return null;
}
/**
* @roseuid 47171ADA0280
*/
public void issue_take_books()
{
/**
* @roseuid 47171AE002BF
*/
public void update_database()
{
34
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
/**
* @roseuid 47171AE500BB
*/
public void place_order_for_new_stocks()
{
/**
* @return Boolean
* @roseuid 47171BCB002E
*/
public Boolean validate()
{
return null;
}
}
Library Member
//Source file: C:\\Documents and Settings\\Administrator\\My
Documents\\kiShAn\\LibraryMember.java
/**
* @roseuid 47171E650000
*/
35
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
public LibraryMember()
{
/**
* @return String
* @roseuid 471719C402CE
*/
public String login()
{
return null;
}
/**
* @return String
* @roseuid 471719CB0290
*/
public String search_browse()
{
return null;
}
/**
* @return Boolean
* @roseuid 471719D201C5
*/
public Boolean make_remove_reservation()
{
return null;
}
/**
* @return Integer
* @roseuid 471719DE01E4
*/
public Integer pay_dues()
{
36
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
return null;
}
/**
* @roseuid 471719E401C5
*/
public void take_return_book()
{
/**
* @return String
* @roseuid 47171A02037A
*/
public String view_reports()
{
return null;
}
}
ULAS
/**
37
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
* @roseuid 47171E62003E
*/
public ulas()
{
/**
* @return Boolean
* @roseuid 47171A3200AB
*/
public Boolean validate_users()
{
return null;
}
/**
* @return String
* @roseuid 47171A3801E4
*/
public String show_results()
{
return null;
}
/**
* @return String
* @roseuid 47171A3D004E
*/
public String show_reports()
{
return null;
}
}
38
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
REVERSE ENGINEERING
39
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
Step2 :-
Select Tools -> Java/J2EE -> Reverse
Engineer to reverse engineer the code.
40
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
Step3 :-
Specifiy the path of code to reverse engineer .
Select the code files to be reverse engineered.
41
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
42
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
Step4 :-
After adding all code files click Select All and
then click Reverse.
43
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
44
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
Step 5:-
The classes generated in the tree window. Drag
all the classes to the required area. The associations
among the classes is generated automatically.
45
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
46
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
47
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
POINT OF SALE
INTRODUCTION
Shops are the integral part of any civilization. They are present in
every culture since ages. This application emphasizes on the transaction going on
between the customer and shop keeper during sale of product.
The customer approaches the shop keeper/ sales boy and places his
order. The shop keeper forwards the order to sales boy who fetches the required
goods from inventory. Then the shop keeper calculates bill and issues to the
customer. The customer on paying the bill takes goods from the shop keeper. In
turn, shop keeper fetches goods from supplier
Let us just have an overview of point of sale:
TEXTUAL ANALYSIS
(a)ACTORS
i. Customer
ii. Shop Owner
iii. Sales boy
iv. Supplier
(b)VERBS
i. Customer:
1. Places order to shop owner/sales boy
2. Receives bill from shop owner
3. Pay the bill
48
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
4. Receive goods
ii. Shop Owner:
1. Receives order from customer
2. Forwards order to sales boy
3. Receive goods from sales boy
4. Calculates bill
5. Receives payment
6. Places orders to supplier
7. Maintains inventory
iii. Supplier
1. Receives order from shop owner
2. Delivers goods to shop owner
USECASE DIAGRAM
Use case diagram is created to visualize the interaction of our system
with the outside world. The components of use case diagram are:
Use Case: Scenarios of the system
Actor: Someone or something who is interacting with the system
Relationship: Semantic link between use case and actor. The forms of
relationship are:
a. Association
b. Dependency
c. Generalization
49
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
ACTIVITY DIAGRAM
Activity diagram shows the flow of events within our system.
The components are:
a) Start State
b) End State
c) Transition
d) Decision Box
e) Synchronization Bar
f) Swim Lane
50
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
51
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
INTERACTION DIAGRAM
An interaction diagram models the dynamic aspects of the system
by showing the relationship among the objects and messages they
may dispatch. There are two types of interaction diagrams:
SEQUENCE DIAGRAM
Sequence diagram shows the step to step what mush happen to
accomplish a piece of functionality provided by the system. The
components are:
a) Actor
b) Object
c) Messages
d) Lifeline
e) Focus of Control
52
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
COLLABORATION DIAGRAM
Collaboration diagram displays object interactions organized around
objects and their links to one another. The components are:
a) Actor
b) Object
c) Link
CLASS DIAGRAM
Class diagram shows structure of the software system. The class
diagram shows a set of classes, interfaces and their relationships. The
components are:
a) Class
b) Relationship:
The forms of relationship are:
1. Association
2. Aggregation
3. Generalization
4. Composition
5. Dependency
53
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
54
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
Shop Owner
Supplier
55
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
Sales boy
56
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
MULTITHREADED AIRPORT
SIMULATION
INTRODUCTION
Everyday number of airplanes lands and takes off from airport. It is
the responsibility of the Air Traffic Control (ATC) to regulate these planes. The
aim of this simulation is to reconstruct the events occurring during landing or take
off.
Whenever plane enters the RADAR space, RADAR signals the ATC
about the plane. Then the pilot sends the plane details. ATC checks the runway and
decides priority. ATC signals the pilot whose plane is having highest priority to
land/take off. Then the pilot performs the corresponding command.
Let us just have an overview of the multithreaded airport simulation:
TEXTUAL ANALYSIS
(a)ACTORS
i. RADAR
ii. ATC
iii. Runway
iv. Pilot
(b)VERBS
i. RADAR
57
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
ii. ATC
1. Receives signal from RADAR
2. Receives plane details from pilot
3. Checks runway
4. Decides priority
5. Gives signal to plane with highest priority
iii. Pilot
1. Sends plane details to the ATC
2. Receives signal from ATC
3. Land/Take off the plane
USECASE DIAGRAM
Use case diagram is created to visualize the interaction of our system
with the outside world. The components of use case diagram are:
Use Case: Scenarios of the system
Actor: Someone or something who is interacting with the system
Relationship: Semantic link between use case and actor. The forms of
relationship are:
a. Association
b. Dependency
c. Generalization
58
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
ACTIVITY DIAGRAM
Activity diagram shows the flow of events within our system.
The components are:
a) Start State
b) End State
c) Transition
d) Decision Box
e) Synchronization Bar
59
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
f) Swim Lane
INTERACTION DIAGRAM
An interaction diagram models the dynamic aspects of the system
by showing the relationship among the objects and messages they
may dispatch. There are two types of interaction diagrams:
SEQUENCE DIAGRAM
60
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
COLLABORATION DIAGRAM
Collaboration diagram displays object interactions organized around
objects and their links to one another. The components are:
a) Actor
b) Object
c) Link
61
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
CLASS DIAGRAM
Class diagram shows structure of the software system. The class
diagram shows a set of classes, interfaces and their relationships. The
components are:
a) Class
b) Relationship:
The forms of relationship are:
1. Association
2. Aggregation
3. Generalization
4. Composition
5. Dependency
62
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
63
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
Pilot
64
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
SIMULATED COMPANY
INTRODUCTION
Companies are emerging like mushrooms nowadays. It is necessary for
us to examine how a company runs and the basic transactions taking place in a
company. This project emphasizes on the working of company with main actors
being managing director, marketing manager and catalog
Director collects capital and then starts company by installing
machinery and appointing labor. He then starts the production activity. After
production marketing manager along with managing director decides the price of
product which is then marketed by marketing manager. He then submits reports to
the director about the sales which are analyzed by the director. All these
activities are updated into the catalog from time to time
Let us just have an overview of point of sale:
• Director collects capital from various sources
• Director installs machinery and employs labor to begin production activity
• Director along with managing director decides price
• Marketing manager does marketing and submits reports to the director
TEXTUAL ANALYSIS
(a)ACTORS
i. Director
ii. Marketing Manager
iii. Catalog
(b)VERBS
i. Director:
1. Collects capital
2. Installs machinery
3. Employ labor
4. Begin Production
65
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
5. Decide price
6. Analyze reports
ii. Marketing Manager:
1. Decide price
2. Do marketing
3. Submit reports
4. Update catalog
iii. Catalog
1. Stores reports
USECASE DIAGRAM
Use case diagram is created to visualize the interaction of our system
with the outside world. The components of use case diagram are:
Use Case: Scenarios of the system
Actor: Someone or something who is interacting with the system
Relationship: Semantic link between use case and actor. The forms of
relationship are:
a. Association
b. Dependency
c. Generalization
66
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
ACTIVITY DIAGRAM
Activity diagram shows the flow of events within our system.
The components are:
a) Start State
b) End State
c) Transition
d) Decision Box
67
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
e) Synchronization Bar
f) Swim Lane
68
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
INTERACTION DIAGRAM
An interaction diagram models the dynamic aspects of the system
by showing the relationship among the objects and messages they
may dispatch. There are two types of interaction diagrams:
SEQUENCE DIAGRAM
Sequence diagram shows the step to step what mush happen to
accomplish a piece of functionality provided by the system. The
components are:
a) Actor
b) Object
c) Messages
d) Lifeline
e) Focus of Control
69
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
COLLABORATION DIAGRAM
Collaboration diagram displays object interactions organized around
objects and their links to one another. The components are:
a) Actor
b) Object
c) Link
CLASS DIAGRAM
Class diagram shows structure of the software system. The class
diagram shows a set of classes, interfaces and their relationships. The
components are:
a) Class
b) Relationship:
The forms of relationship are:
1. Association
70
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
2. Aggregation
3. Generalization
4. Composition
5. Dependency
71
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
Director
Marketing Manager
72
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
Catalog
73