Vous êtes sur la page 1sur 26

Ecologic Corporation , Chandigarh , www.ecologic.co.

in Learning Doc :Case Study Library


www.logicatwork.info Management

How to create class diagram ,Activity Diagrams based on requirements

How create Class Diagrams , Activity diagrams/State


diagrams based on Requirement Analysis
Ecologic Corporation, Chandigarh
Training Department .Chandigarh
Table of Contents

1. Introduction …………………… Library Management System


…………………………………………………. . 3
2. Programming platform ……………………………………………………………………… 3
3. Database …………………………………………………………………………………………… 3
4. Database tables ………………………………………………………………………………… 3
5. Classes ………………………………………………………………………………………………4
5.1 Class diagram …………………………………………………………………………………. 4
5.2 Class design detail …………………………………………………………………………….5
6. Activity diagrams/State diagram …………………………………………………………..7
6.1 Activity diagram of whole system …………………………………………………………7
6.2 Activity diagram of each operation ……………………………………………………….8
6.2.1 Student class ……………………………………………………………………………8
6.2.2 Book class ……………………………………………………………………………. 10
6.2.3 Transaction class …………………………………………………………………… 14
6.2.4 MyList class ……………………………………………………………………………16

Learn

“ How create Class Diagrams , Activity diagrams/State


diagrams based on Requirement Analysis “

Ecologic Corporation, Chandigarh


Training Department .Chandigarh

Learning Doc Ecologic Corporation ,Chandigarh Page 1


:Case Study Come , Learn More with Us
Library
Management
Ecologic Corporation , Chandigarh , www.ecologic.co.in Learning Doc :Case Study Library
www.logicatwork.info Management

How to create class diagram ,Activity Diagrams based on requirements

1. Why this doc ?

This document provides a detailed design of the system. Please refer to the requirement
analysis document and high level design document for the overall view and high level
design of the system. This document concentrates on the detailed design of the system,
including database connection, programming platform, activities diagrams of whole
system and each operation of each class.
2. On what programming platform

The system can/will be written in Java language.One can develop system in any
programming platform also other wise . This software is going to be system-
independent and can be run in both MS Windows and Unix system. During
development process we will use the MS Windows system.

3. Database requirements

The database being used is the MySQL database system, and the connection to
the database is made by Java’s JDBC interface. The tables will be created using
SQL statements; the runtime SQL will be sent to database and the query result
will be sent back to application by JDBC connection.

4. Database tables

T_Transaction
transctionID : VARCHAR(255)
T_Student studentID : VARCHAR(255)
studentID : VARCHAR(255) callNo : VARCHAR(255)
name : VARCHAR(255) <<Non-Id entifying>> checkOutDate : TIMESTAMP <<Non-Id entifying>> T_Book
street : VARCHAR(255) 1
checkInDate : TIMESTAMP callNo : VARCHAR(255)
1 0 ..* fines : DOUBLE(64)
city : VARCHAR(255) ISBN : VARCHAR(255)
zipCode : VARCHAR(255) COL_0 : VARCHAR(255) title : VARCHAR(255)
state : VARCHAR(255) COL_1 : VARCHAR(255) 0..* 1 author : VARCHAR(255)
phoneNo : VARCHAR(255) status : VARCHAR(255)
lateFeeTotal : DOUBLE(64) <<PK>> PK_T_Transactio1()
<<FK>> FK_T_Transactio1() <<PK>> PK_T_Book2()
<<PK>> PK_T_Student0() <<FK>> FK_T_Transactio0()
<<Index>> TC_T_Transactio3()
<<Index>> TC_T_Transactio1()

T_MyList
callNo : VARCHAR(255)

<<PK>> PK_T_MyList3()

Learning Doc Ecologic Corporation ,Chandigarh Page 2


:Case Study Come , Learn More with Us
Library
Management
Ecologic Corporation , Chandigarh , www.ecologic.co.in Learning Doc :Case Study Library
www.logicatwork.info Management

How to create class diagram ,Activity Diagrams based on requirements

5. Classes

5.1 Class Diagram

Student
studentID : String
Book name : String
callNo : String Transaction street : String
ISBN : String t rans ctionID : String city : String
title : String student ID : String zipCode : String
author : String callNo : String state : String
status : String checkOutDat e : Dat e phoneNo : String
checkInDate : Date lateFeeTotal : Double
1 n n 1
addBook() fines : Double borrowedBook : Integer
validate()
search() checkin() addStudent()
update() checkout() validateNewStudent()
delete() search()
update()
delete()

MyList
callNo : String

addToMyList()
delet eFromList()
viewList()

Learning Doc Ecologic Corporation ,Chandigarh Page 3


:Case Study Come , Learn More with Us
Library
Management
Ecologic Corporation , Chandigarh , www.ecologic.co.in Learning Doc :Case Study Library
www.logicatwork.info Management

How to create class diagram ,Activity Diagrams based on requirements

5.2 Class Design Details

Student Class :

This class encapsulates all student related operations and details.

Student
studentID : String
name : String
street : String
city : String
zipCode : String
state : String
phoneNo : String
lateFeeTotal : Double
borrowedBook : Integer

addStudent(studentID, name, street, city, zipCode, state, phoneNo) : Boolean


validateNewStudent() : Integer
search(studentID, name) : Object
update(name, studentID, street, city, zipCode, state, phoneNo) : Boolean
delete(studentID) : Boolean

Book Class :

Learning Doc Ecologic Corporation ,Chandigarh Page 4


:Case Study Come , Learn More with Us
Library
Management
Ecologic Corporation , Chandigarh , www.ecologic.co.in Learning Doc :Case Study Library
www.logicatwork.info Management

How to create class diagram ,Activity Diagrams based on requirements

This class encapsulates all Book related operations and details.

Book
callNo : String
ISBN : String
title : String
author : String
status : String

addBook(callNo, ISBN, title, author) : Boolean


validate() : Integer
search(callNo, ISBN, title, author) : Object
update(callNo, ISBN, title, author) : Boolean
delete(callNo) : Boolean

Transaction Class :

This class encapsulates a single transaction, and maps a student to a book which has been checked out. All
associated details of a transaction are also stored in this class (late fees, checkin, checkout dates).

Transaction
transctionID : String
studentID : String
callNo : String
checkOutDate : Date
checkInDate : Date
fines : Double

checkin(callNo) : Boolean
checkout(studentID, callNo) : Boolean

MyListClass :

Learning Doc Ecologic Corporation ,Chandigarh Page 5


:Case Study Come , Learn More with Us
Library
Management
Ecologic Corporation , Chandigarh , www.ecologic.co.in Learning Doc :Case Study Library
www.logicatwork.info Management

How to create class diagram ,Activity Diagrams based on requirements

This class encapsulates the usecases related to maintaing a temporary subset of user selected books
during a search operation.

MyList
callNo : String

addToMyList(callNo) : Boolean
deleteFromList(callNo) : Boolean
viewList() : Object

Learning Doc Ecologic Corporation ,Chandigarh Page 6


:Case Study Come , Learn More with Us
Library
Management
Ecologic Corporation , Chandigarh , www.ecologic.co.in Learning Doc :Case Study Library
www.logicatwork.info Management

How to create class diagram ,Activity Diagrams based on requirements

6. Activity diagrams/State diagrams

6.1 State diagram of whole system

Totally 12 windows.
All states except "Display Exit Info"
can go back to Main Menu.

Help
Get Help Content
Enter Book Info Add a book Main Menu
14
1 Add a student
do/ Insert a student into DB
Enter Student Info
7
Reset Search students do/ Insert student into DB
Search books
Exit

View Mylist
Enter Search Info
Enter Search Info
11
2 Update/Delete
Search
Display
Back
Exit Info
Display MyList
5 Display Results
New Search 12
exit/ Send from List message Check In/Out
entry/ Search students in DB

Search
Add to list View Detail / UpdateDelete

Update,Delete
Add to list Display Book Detail
4 Check In/Out
Back Update Detail
do/ Update, Delete 60
do/ Update,Delete
View Detail
Display Results
3
Check In/Out
entry/ Search books in DB
Check In/Out

Enter books. student Info


13
do/ Check In, Check Out

Learning Doc Ecologic Corporation ,Chandigarh Page 7


:Case Study Come , Learn More with Us
Library
Management
Ecologic Corporation , Chandigarh , www.ecologic.co.in Learning Doc :Case Study Library
www.logicatwork.info Management

How to create class diagram ,Activity Diagrams based on requirements

6.2 Activity diagram of each operation

6.2.1 Student class

• AddStudent : add a new student

validat eStudent [ exists ] return error


message

[ not exist s ]

add the student record to return success


Student table message

• DeleteStudent : delete an existing student

validat eStudent [ not exist s ] return error


message

[ exists ]

delete t he student record return success


to Student table message

• UpdateStudent : update information of existing student

Learning Doc Ecologic Corporation ,Chandigarh Page 8


:Case Study Come , Learn More with Us
Library
Management
Ecologic Corporation , Chandigarh , www.ecologic.co.in Learning Doc :Case Study Library
www.logicatwork.info Management

How to create class diagram ,Activity Diagrams based on requirements

Update the student record in


the Student table

• SearchStudent : search students

Query the student record


in Student table

return Resultset

• ValidateStudent : validate student

Learning Doc Ecologic Corporation ,Chandigarh Page 9


:Case Study Come , Learn More with Us
Library
Management
Ecologic Corporation , Chandigarh , www.ecologic.co.in Learning Doc :Case Study Library
www.logicatwork.info Management

How to create class diagram ,Activity Diagrams based on requirements

Query the student in Student


table according to studentID

Return [ not empty ] Ret urn true


Resultset

[ empty ]

Return false

Learning Doc Ecologic Corporation ,Chandigarh Page 10


:Case Study Come , Learn More with Us
Library
Management
Ecologic Corporation , Chandigarh , www.ecologic.co.in Learning Doc :Case Study Library
www.logicatwork.info Management

How to create class diagram ,Activity Diagrams based on requirements

6.2.2 Book class

addBook: Add a new book in database

Check Book record


in database

yes Return "Book already


exist
exist" message

no

Insert book record


in database

return success
message

Learning Doc Ecologic Corporation ,Chandigarh Page 11


:Case Study Come , Learn More with Us
Library
Management
Ecologic Corporation , Chandigarh , www.ecologic.co.in Learning Doc :Case Study Library
www.logicatwork.info Management

How to create class diagram ,Activity Diagrams based on requirements

exist: Check if the book record already exist in database.

Search Book record


in database

no return not exist


found record?
message

yes

return exist
message

Learning Doc Ecologic Corporation ,Chandigarh Page 12


:Case Study Come , Learn More with Us
Library
Management
Ecologic Corporation , Chandigarh , www.ecologic.co.in Learning Doc :Case Study Library
www.logicatwork.info Management

How to create class diagram ,Activity Diagrams based on requirements

searchBook: Search books in database

search book record


in database

return
resultset

updateBook: modify book info

Learning Doc Ecologic Corporation ,Chandigarh Page 13


:Case Study Come , Learn More with Us
Library
Management
Ecologic Corporation , Chandigarh , www.ecologic.co.in Learning Doc :Case Study Library
www.logicatwork.info Management

How to create class diagram ,Activity Diagrams based on requirements

update record in
database

return success
message

deleteBook: Delete a book in database

Learning Doc Ecologic Corporation ,Chandigarh Page 14


:Case Study Come , Learn More with Us
Library
Management
Ecologic Corporation , Chandigarh , www.ecologic.co.in Learning Doc :Case Study Library
www.logicatwork.info Management

How to create class diagram ,Activity Diagrams based on requirements

check
existence

no
exist?

yes

delete the
record return fail
message

return success
message

Learning Doc Ecologic Corporation ,Chandigarh Page 15


:Case Study Come , Learn More with Us
Library
Management
Ecologic Corporation , Chandigarh , www.ecologic.co.in Learning Doc :Case Study Library
www.logicatwork.info Management

How to create class diagram ,Activity Diagrams based on requirements

6.2.3 Transaction class

checkIn() : check in one book

SQL Statement
(Update.....)

Exception? Yes
Print "error
message"
No

return true ret urn false

Learning Doc Ecologic Corporation ,Chandigarh Page 16


:Case Study Come , Learn More with Us
Library
Management
Ecologic Corporation , Chandigarh , www.ecologic.co.in Learning Doc :Case Study Library
www.logicatwork.info Management

How to create class diagram ,Activity Diagrams based on requirements

checkOut() : check out one book

SQL Statement
(Update.....)

Exception? Yes
Print "error
message"
No

return true ret urn false

Learning Doc Ecologic Corporation ,Chandigarh Page 17


:Case Study Come , Learn More with Us
Library
Management
Ecologic Corporation , Chandigarh , www.ecologic.co.in Learning Doc :Case Study Library
www.logicatwork.info Management

How to create class diagram ,Activity Diagrams based on requirements

6.2.4 MyList class

addTolist() : add one book to mylist

SQL Statement
(Insert.....)

Exception? Yes
Print "error
message"
No

return true ret urn false

Learning Doc Ecologic Corporation ,Chandigarh Page 18


:Case Study Come , Learn More with Us
Library
Management
Ecologic Corporation , Chandigarh , www.ecologic.co.in Learning Doc :Case Study Library
www.logicatwork.info Management

How to create class diagram ,Activity Diagrams based on requirements

deleteFromList() : delete one book from mylist

SQL Statement
(Delete.....)

Exception? Yes
Print "error
message"
No

return true ret urn false

Learning Doc Ecologic Corporation ,Chandigarh Page 19


:Case Study Come , Learn More with Us
Library
Management
Ecologic Corporation , Chandigarh , www.ecologic.co.in Learning Doc :Case Study Library
www.logicatwork.info Management

How to create class diagram ,Activity Diagrams based on requirements

Mylist.viewList() : retrieve books in mylist

SQL Statement
(Select....)

Exception? Yes
Print "error
message"
No

return true ret urn false

If You are
1 Aspiring Programmers
2 Budding Programmers
3 Professional Programmers
And Confused about Career in
Computers !

Wondering ! What roles you might Perform in Software Industry


Find you right role from Below :

Come ,Learn and Collaborate with Ecologic Corporation to Become


www.ecologic.co.in

Roles
1 Programmer
2 Software Tester
3 Solution Architect

Learning Doc Ecologic Corporation ,Chandigarh Page 20


:Case Study Come , Learn More with Us
Library
Management
Ecologic Corporation , Chandigarh , www.ecologic.co.in Learning Doc :Case Study Library
www.logicatwork.info Management

How to create class diagram ,Activity Diagrams based on requirements

4 Solution Integrator
5 Solution Designer
6 Software Developer
7 Enterprise Architect
8 System Architect
9 System Engineer
10 Configurative Management Engineer
11 Test Engineer
12 Team Leader
13 Project Manager
14 Portfolio Manager
15 Process Owner
16 Implementation Engineer
17 Deployment and Maintenance Engineer
18 Network Engineer
19 Hardware Interfacing Process Engineer
20 Business Analyst
21 Functional / Domain Consultant
22 Quality Assurance Engineer
23 Technical Support Engineer
24 Technical Sales Engineer
25 IT Professional
26 Management Information Systems Manager
27 Business Intelligence & Reporting Engineer
28 Technologist Specialist
29 Industry Analyst
30 Web Master
31 Web Developer
32 Application Developer
33 Technical Content Writer
34 Security Expert
35 Search Engine Optimization Engineer
36 Technical Evangelist
37 User Interface Designer
38 Technology Evangelist

Learning Doc Ecologic Corporation ,Chandigarh Page 21


:Case Study Come , Learn More with Us
Library
Management
Ecologic Corporation , Chandigarh , www.ecologic.co.in Learning Doc :Case Study Library
www.logicatwork.info Management

How to create class diagram ,Activity Diagrams based on requirements

If you Lack Ideas !

Here are 150 Project Ideas for Computer Science Students Doing
MCA/BCA/BE /B-Level
From Ecologic Corporation.
You may take these ideas and develop these project in Java , Php , VB.Net /
ASP .Net / C#

150 Project Ideas for Industrial Training from Ecologic


Corporation, Chandigarh , http://www.ecologic.co.in
For More Ideas : contact projectideas@ecologic.co.in
For Learning more on : VB.NET / ASP.NET / Java : Visit L
http://logicatwork.info
For Learning Java/ PHP/ .NET / Embedded Systems contact :
training@ecologic.co.in
Watch Power Presentation from Ecologic Corporation:
http://slideshare.com/puneetarora2000/

1 Business Performance Reporting


2 Case Management for Government Agencies
3 Classroom Management
4 Clinical Trial Initiation and Management
5 Competitive Analysis Web Site
6 Discussion Forum website
7 Disputed Invoice Management
8 Employee Training Scheduling and Materials
9 Equity Research Management
10 Integrated Marketing Campaign Tracking
11 Manufacturing Process Managements
12 Product and Marketing Requirements Planning
13 Request for Proposal Software
14 Sports League Management
15 Absence Request and Vacation Schedule Management
16 Budgeting and Tracking Multiple Projects
Learning Doc Ecologic Corporation ,Chandigarh Page 22
:Case Study Come , Learn More with Us
Library
Management
Ecologic Corporation , Chandigarh , www.ecologic.co.in Learning Doc :Case Study Library
www.logicatwork.info Management

How to create class diagram ,Activity Diagrams based on requirements

17 Bug Database Management


18 Call Center Management Software
19 Change Request Management
20 Compliance Process Support Site
21 Contacts Management Software
22 Document Library and Review
23 Event Planning and Management
24 Expense Reimbursement and Approval
25 Help Desk and Ticket Management
26 Inventory Tracking
27 I T Team Workspace
29 Job Requisition and Interview Management
28 Knowledge Base
29 Lending Library
30 Physical Asset Tracking and Management
31 Project Tracking Workspace
32. Shopping Cart .
33 Knowledge Base
34 Lending Library
35 Physical Asset Tracking and Management
36 Project Tracking Workspace
37 Room and Equipment Reservations
38 Sales Lead Pipeline
39. Yellow Pages & Business Directory
40. Time & Billing
41. Class Room Management
42. Expense Report Database
43. Sales Contact Management Database
44. Inventory Management Database
45. Issue Database
46. Event Management Database
47. Service Call Management Database
48. Accounting Ledger Database
49. Asset Tracking Database
50. Cycle Factory Works Management
51. Sales Corporation Management
52. Business Directory
53. Education Directory
54. Dental Clinic Management
55. Fund Raising Management
56. Clinic/ Health Management
57. Cable Management System

Learning Doc Ecologic Corporation ,Chandigarh Page 23


:Case Study Come , Learn More with Us
Library
Management
Ecologic Corporation , Chandigarh , www.ecologic.co.in Learning Doc :Case Study Library
www.logicatwork.info Management

How to create class diagram ,Activity Diagrams based on requirements

58. Survey Creation and Analytics


59. Museum Management System
60. Multi-Level Marketing System
61. Learning Management System
62. Knowledge Management System
63. Missing Person Site
64. Disaster Management Site
65. Job Management Site
66. Financial Portfolio Management
67. Market Research Management
68. Order Management System
69. Point of Sale
70. Advertisement /Banner Management and Analytics
71. Export Management System
72. Invoice Management
73. Recruitment Management System
74. Articles / Blog / Wiki Web site
75. Online Planner
76. Mock Tests and Examination Management
77. Examination System
78. Practice Test Management.
79. Asset Management System
80. Travel Agency System.
81. Placement Management System.
82. Polls Management
83. Customer Management
84. Project Management System.
85. Network Marketing System
86. Yoga Health Care Management
87. Personal Finance Management System
88. Real Estate Management System
89. Stock Mutual Funds Management
90. Careers and Employment Management System
91. Music Albums Management System
92. Classified Ads Managements
93. Property Management System
94. Sales & Retail Management
95. Dating Site
96. Hotel Management System
97. Search Engine
98. Online News Paper Site
99. Image Gallery

Learning Doc Ecologic Corporation ,Chandigarh Page 24


:Case Study Come , Learn More with Us
Library
Management
Ecologic Corporation , Chandigarh , www.ecologic.co.in Learning Doc :Case Study Library
www.logicatwork.info Management

How to create class diagram ,Activity Diagrams based on requirements

100. Staffing and Human Capital Management


101. Address Book
102. Inventory Management System
103. Newspaper Classifieds
104 Hostel Management
105 Music , Lyrics Website .
106 Wildlife Safari Trip Management
107 Wildlife Sanctuary Management
108 Wild life Flora and Fauna Statistics Management
109 Animal Hospital Management
110 Zoo Management System
111 Agro-Forestry Management System
112 Bus Depot Management System
113 Even t Management System
114 Clinical Research Management System
115 Food Technology Management System
116 Circus Management System
117. Resort Management System
118. Bugs/Issues Management System
119.Life /Motor Insurance Management System
120. Exam Scheduler
121. Ad Campaign Management System
123. Internet Banking Management System
124. Ad Agency Management System
125.Vechical Traffic Management System
126 Web Traffic Analytics Management System
127. Solid Waste Management System
128. Peer-To –Peer File Sharing System
129. Chat Application
130. Crisis Management System
131. Disaster Management System
132. Document Management System
133. Security Threats Evolution Software
134. Digital Rights Management System
135. Games ,Single , Multi-Player
136. Content /Document Management System
137. Archaeological Survey Management System
138. Market Research Management System
139. Crime Management System
140. Jail/Prison management System
141. Telephone Traffic Monitoring Management System
142. School Drop Out Statistics and Analytics System

Learning Doc Ecologic Corporation ,Chandigarh Page 25


:Case Study Come , Learn More with Us
Library
Management
Ecologic Corporation , Chandigarh , www.ecologic.co.in Learning Doc :Case Study Library
www.logicatwork.info Management

How to create class diagram ,Activity Diagrams based on requirements

143.Lost & Found Management System


144. Online Tutorials Management System
145.Bulk Sms Application
146. Criminal Records management System
147. Email Campaign Management System
148.Political Campaign Management System
149. Skill Competence and Mapping Application
150. Ontology based Web Crawler

Learning Doc Ecologic Corporation ,Chandigarh Page 26


:Case Study Come , Learn More with Us
Library
Management

Vous aimerez peut-être aussi