Upload
puneet-arora
View
46.254
Download
2
Embed Size (px)
DESCRIPTION
When we talk to each other .., we talk in sense of features , Qualities , characteristics of each Other ...,You are fat ! , You are small , You are smart ! , You are intellegence and bold , You are this and that ..., Do you know ! this is way we need to understand object Oriented Programming Paradigm .., You are my friend ! ..My house is like white house of USA ect this articles helps you to learn about "How to draw objects and Classes on paper /ipaper?Class diagrams are the mainstay of object-oriented analysis and design. Class diagrams show the classes of the system, their interrelationships (including inheritance, aggregation, and association), and the operations and attributes of the classes. Class diagrams are used for a wide variety of purposes, including both conceptual/domain modeling and detailed design modeling. Although I prefer to create class diagrams on whiteboards because simple tools are more inclusive most of the diagrams that I’ll show in this article are drawn using a software-based drawing tool so you may see the exact notation.
Citation preview
Ecologic Corporation , Chandigarh , www.ecologic.co.in www.logicatwork.info
Learning Doc :Case Study Library Management
How to create class diagram ,Activity Diagrams based on requirements
Learning Doc :Case Study Library Management
Ecologic Corporation ,Chandigarh Come , Learn More with Us
Page 1
HHooww ccrreeaattee CCllaassss DDiiaaggrraammss ,, AAcctt iivvii ttyy ddiiaaggrraammss//SSttaattee
ddiiaaggrraammss bbaasseedd oonn RReeqquuii rreemmeenntt AAnnaallyyssiiss EEccoollooggiicc CCoorrppoorraatt iioonn,, CChhaannddiiggaarrhh
TTrraaiinniinngg DDeeppaarrttmmeenntt ..CChhaannddiiggaarrhh
TTaabbllee ooff CCoonntteennttss
11.. IInnttrroodduucctt iioonn ………………………………………… LLiibbrraarryy MMaannaaggeemmeenntt SSyysstteemm …………………………………………………………………………………………………….... 33 22.. PPrrooggrraammmmiinngg ppllaatt ffoorrmm ……………………………………………………………………………………………………………………………………………… 33 33.. DDaattaabbaassee ………………………………………………………………………………………………………………………………………………………………………………………… 33 44.. DDaattaabbaassee ttaabblleess …………………………………………………………………………………………………………………………………………………………………… 33 55.. CCllaasssseess ………………………………………………………………………………………………………………………………………………………………………………………………44 55..11 CCllaassss ddiiaaggrraamm …………………………………………………………………………………………………………………………………………………………………….. 44 55..22 CCllaassss ddeessiiggnn ddeettaaiill …………………………………………………………………………………………………………………………………………………………..55 66.. AAcctt iivvii ttyy ddiiaaggrraammss//SSttaattee ddiiaaggrraamm ……………………………………………………………………………………………………………………....77 66..11 AAccttiivviittyy ddiiaaggrraamm ooff wwhhoollee ssyysstteemm ……………………………………………………………………………………………………………………77 66..22 AAccttiivviittyy ddiiaaggrraamm ooff eeaacchh ooppeerraattiioonn ………………………………………………………………………………………………………………..88 66..22..11 SSttuuddeenntt ccllaassss …………………………………………………………………………………………………………………………………………………………88 66..22..22 BBooookk ccllaassss ………………………………………………………………………………………………………………………………………………………….. 1100 66..22..33 TTrraannssaaccttiioonn ccllaassss ………………………………………………………………………………………………………………………………………… 1144 66..22..44 MMyyLLiisstt ccllaassss …………………………………………………………………………………………………………………………………………………………1166
LLeeaarrnn ““ HHooww ccrreeaattee CCllaassss DDiiaaggrraammss ,, AAcctt iivvii ttyy ddiiaaggrraammss//SSttaattee
ddiiaaggrraammss bbaasseedd oonn RReeqquuii rreemmeenntt AAnnaallyyssiiss ““ EEccoollooggiicc CCoorrppoorraatt iioonn,, CChhaannddiiggaarrhh TTrraaiinniinngg DDeeppaarrttmmeenntt ..CChhaannddiiggaarrhh
Ecologic Corporation , Chandigarh , www.ecologic.co.in www.logicatwork.info
Learning Doc :Case Study Library Management
How to create class diagram ,Activity Diagrams based on requirements
Learning Doc :Case Study Library Management
Ecologic Corporation ,Chandigarh Come , Learn More with Us
Page 2
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_MyListcallNo : VARCHAR(255)
<<PK>> PK_T_MyList3()
T_StudentstudentID : VARCHAR(255)name : VARCHAR(255)street : VARCHAR(255)city : VARCHAR(255)zipCode : VARCHAR(255)state : VARCHAR(255)phoneNo : VARCHAR(255)lateFeeTotal : DOUBLE(64)
<<PK>> PK_T_Student0()
T_BookcallNo : VARCHAR(255)ISBN : VARCHAR(255)title : VARCHAR(255)author : VARCHAR(255)status : VARCHAR(255)
<<PK>> PK_T_Book2()
T_Transaction
transctionID : VARCHAR(255)studentID : VARCHAR(255)callNo : VARCHAR(255)checkOutDate : TIMESTAMPcheckInDate : TIMESTAMPfines : DOUBLE(64)COL_0 : VARCHAR(255)COL_1 : VARCHAR(255)
<<PK>> PK_T_Transactio1()<<FK>> FK_T_Transactio1()<<FK>> FK_T_Transactio0()<<Index>> TC_T_Transactio3()<<Index>> TC_T_Transactio1()
1 0..*1 0 ..*
<<Non-Identifying>>
10..* 10..*
<<Non-Identifying>>
Ecologic Corporation , Chandigarh , www.ecologic.co.in www.logicatwork.info
Learning Doc :Case Study Library Management
How to create class diagram ,Activity Diagrams based on requirements
Learning Doc :Case Study Library Management
Ecologic Corporation ,Chandigarh Come , Learn More with Us
Page 3
5. Classes
5.1 Class Diagram
MyList
callNo : String
addToMyList()deleteFromList()viewList()
Student
studentID : Stringname : Stringstreet : Stringcity : StringzipCode : Stringstate : StringphoneNo : StringlateFeeTotal : DoubleborrowedBook : Integer
addStudent()validateNewStudent()search()update()delete()
Transaction
t ransctionID : StringstudentID : StringcallNo : StringcheckOutDate : DatecheckInDate : Datefines : Double
checkin()checkout()
n 1n 1
Book
callNo : StringISBN : Stringtitle : Stringauthor : Stringstatus : String
addBook()validate()search()update()delete()
n1 n1
Ecologic Corporation , Chandigarh , www.ecologic.co.in www.logicatwork.info
Learning Doc :Case Study Library Management
How to create class diagram ,Activity Diagrams based on requirements
Learning Doc :Case Study Library Management
Ecologic Corporation ,Chandigarh Come , Learn More with Us
Page 4
5.2 Class Design Details
Student Class :
This class encapsulates all student related operations and details.
Student
studentID : Stringname : Stringstreet : Stringcity : StringzipCode : Stringstate : StringphoneNo : StringlateFeeTotal : DoubleborrowedBook : Integer
addStudent(studentID, name, street, city, zipCode, state, phoneNo) : BooleanvalidateNewStudent() : Integersearch(studentID, name) : Objectupdate(name, studentID, street, city, zipCode, state, phoneNo) : Booleandelete(studentID) : Boolean
Book Class :
Ecologic Corporation , Chandigarh , www.ecologic.co.in www.logicatwork.info
Learning Doc :Case Study Library Management
How to create class diagram ,Activity Diagrams based on requirements
Learning Doc :Case Study Library Management
Ecologic Corporation ,Chandigarh Come , Learn More with Us
Page 5
This class encapsulates all Book related operations and details.
Book
callNo : StringISBN : Stringtitle : Stringauthor : Stringstatus : String
addBook(callNo, ISBN, title, author) : Booleanvalidate() : Integersearch(callNo, ISBN, title, author) : Objectupdate(callNo, ISBN, title, author) : Booleandelete(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 : StringstudentID : StringcallNo : StringcheckOutDate : DatecheckInDate : Datefines : Double
checkin(callNo) : Booleancheckout(studentID, callNo) : Boolean
MyListClass :
Ecologic Corporation , Chandigarh , www.ecologic.co.in www.logicatwork.info
Learning Doc :Case Study Library Management
How to create class diagram ,Activity Diagrams based on requirements
Learning Doc :Case Study Library Management
Ecologic Corporation ,Chandigarh Come , Learn More with Us
Page 6
This class encapsulates the usecases related to maintaing a temporary subset of user selected books during a search operation.
MyList
callNo : String
addToMyList(callNo) : BooleandeleteFromList(callNo) : BooleanviewList() : Object
Ecologic Corporation , Chandigarh , www.ecologic.co.in www.logicatwork.info
Learning Doc :Case Study Library Management
How to create class diagram ,Activity Diagrams based on requirements
Learning Doc :Case Study Library Management
Ecologic Corporation ,Chandigarh Come , Learn More with Us
Page 7
6. Activity diagrams/State diagrams 6.1 State diagram of whole system
Main Menu1
Enter Book Info14
do/ Insert a student into DB
Add a book
Enter books. student Info13
do/ Check In, Check Out
Enter Search Info2
Reset
Search books
Display Results3
entry/ Search books in DB
Display Book Detail4
do/ Update, Delete
Display MyList5
exit/ Send from List message
Update/Delete
Enter Student Info7
do/ Insert student into DB
Add a student
Enter Search Info11
Search students
Display Results12
entry/ Search students in DB
Update Detail60
do/ Update,Delete
Update,Delete
Totally 12 windows.All states except "Display Exit Info" can go back to Main Menu.
Display Exit Info
Exit
Help ContentGet Help
Search
Back
View Detail / UpdateDelete
Check In/Out
Check In/Out
View Mylist
Search
New Search
Check In/Out
View Detail
Add to list
Back
Add to list
Check In/Out
Ecologic Corporation , Chandigarh , www.ecologic.co.in www.logicatwork.info
Learning Doc :Case Study Library Management
How to create class diagram ,Activity Diagrams based on requirements
Learning Doc :Case Study Library Management
Ecologic Corporation ,Chandigarh Come , Learn More with Us
Page 8
6.2 Activity diagram of each operation 6.2.1 Student class • AddStudent : add a new student
validateStudent
add the student record to Student table
return error message
return success message
[ not exists ]
[ exists ]
• DeleteStudent : delete an existing student
validateStudent
delete the student record to Student table
return error message
return success message
[ exists ]
[ not exists ]
• UpdateStudent : update information of existing student
Ecologic Corporation , Chandigarh , www.ecologic.co.in www.logicatwork.info
Learning Doc :Case Study Library Management
How to create class diagram ,Activity Diagrams based on requirements
Learning Doc :Case Study Library Management
Ecologic Corporation ,Chandigarh Come , Learn More with Us
Page 9
Update the student record in the Student table
• SearchStudent : search students
Query the student record in Student table
return Resultset
• ValidateStudent : validate student
Ecologic Corporation , Chandigarh , www.ecologic.co.in www.logicatwork.info
Learning Doc :Case Study Library Management
How to create class diagram ,Activity Diagrams based on requirements
Learning Doc :Case Study Library Management
Ecologic Corporation ,Chandigarh Come , Learn More with Us
Page 10
Query the student in Student table according to studentID
Return Resultset
Return false
[ empty ]
Return true[ not empty ]
Ecologic Corporation , Chandigarh , www.ecologic.co.in www.logicatwork.info
Learning Doc :Case Study Library Management
How to create class diagram ,Activity Diagrams based on requirements
Learning Doc :Case Study Library Management
Ecologic Corporation ,Chandigarh Come , Learn More with Us
Page 11
6.2.2 Book class addBook: Add a new book in database
Check Book record in database
exist
Insert book record in database
no
Return "Book already exist" message
yes
return success message
Ecologic Corporation , Chandigarh , www.ecologic.co.in www.logicatwork.info
Learning Doc :Case Study Library Management
How to create class diagram ,Activity Diagrams based on requirements
Learning Doc :Case Study Library Management
Ecologic Corporation ,Chandigarh Come , Learn More with Us
Page 12
exist: Check if the book record already exist in database.
Search Book record in database
found record?
return exist message
yes
return not exist message
no
Ecologic Corporation , Chandigarh , www.ecologic.co.in www.logicatwork.info
Learning Doc :Case Study Library Management
How to create class diagram ,Activity Diagrams based on requirements
Learning Doc :Case Study Library Management
Ecologic Corporation ,Chandigarh Come , Learn More with Us
Page 13
searchBook: Search books in database
search book record in database
return resultset
updateBook: modify book info
Ecologic Corporation , Chandigarh , www.ecologic.co.in www.logicatwork.info
Learning Doc :Case Study Library Management
How to create class diagram ,Activity Diagrams based on requirements
Learning Doc :Case Study Library Management
Ecologic Corporation ,Chandigarh Come , Learn More with Us
Page 14
update record in database
return success message
deleteBook: Delete a book in database
Ecologic Corporation , Chandigarh , www.ecologic.co.in www.logicatwork.info
Learning Doc :Case Study Library Management
How to create class diagram ,Activity Diagrams based on requirements
Learning Doc :Case Study Library Management
Ecologic Corporation ,Chandigarh Come , Learn More with Us
Page 15
check existence
exist?
delete the record
yes
return success message
return fail message
no
Ecologic Corporation , Chandigarh , www.ecologic.co.in www.logicatwork.info
Learning Doc :Case Study Library Management
How to create class diagram ,Activity Diagrams based on requirements
Learning Doc :Case Study Library Management
Ecologic Corporation ,Chandigarh Come , Learn More with Us
Page 16
6.2.3 Transaction class checkIn() : check in one book
SQL Statement (Update.....)
Exception?Print "error message"
return true return false
No
Yes
Ecologic Corporation , Chandigarh , www.ecologic.co.in www.logicatwork.info
Learning Doc :Case Study Library Management
How to create class diagram ,Activity Diagrams based on requirements
Learning Doc :Case Study Library Management
Ecologic Corporation ,Chandigarh Come , Learn More with Us
Page 17
checkOut() : check out one book
SQL Statement (Update.....)
Exception?Print "error message"
return true return false
No
Yes
Ecologic Corporation , Chandigarh , www.ecologic.co.in www.logicatwork.info
Learning Doc :Case Study Library Management
How to create class diagram ,Activity Diagrams based on requirements
Learning Doc :Case Study Library Management
Ecologic Corporation ,Chandigarh Come , Learn More with Us
Page 18
6.2.4 MyList class addTolist() : add one book to mylist
SQL Statement (Insert.....)
Exception?Print "error message"
return true return false
No
Yes
Ecologic Corporation , Chandigarh , www.ecologic.co.in www.logicatwork.info
Learning Doc :Case Study Library Management
How to create class diagram ,Activity Diagrams based on requirements
Learning Doc :Case Study Library Management
Ecologic Corporation ,Chandigarh Come , Learn More with Us
Page 19
deleteFromList() : delete one book from mylist
SQL Statement (Delete.....)
Exception?Print "error message"
return true return false
No
Yes
Ecologic Corporation , Chandigarh , www.ecologic.co.in www.logicatwork.info
Learning Doc :Case Study Library Management
How to create class diagram ,Activity Diagrams based on requirements
Learning Doc :Case Study Library Management
Ecologic Corporation ,Chandigarh Come , Learn More with Us
Page 20
Mylist.viewList() : retrieve books in mylist
SQL Statement (Select....)
Exception?Print "error message"
return true return false
No
Yes
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
Ecologic Corporation , Chandigarh , www.ecologic.co.in www.logicatwork.info
Learning Doc :Case Study Library Management
How to create class diagram ,Activity Diagrams based on requirements
Learning Doc :Case Study Library Management
Ecologic Corporation ,Chandigarh Come , Learn More with Us
Page 21
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
Ecologic Corporation , Chandigarh , www.ecologic.co.in www.logicatwork.info
Learning Doc :Case Study Library Management
How to create class diagram ,Activity Diagrams based on requirements
Learning Doc :Case Study Library Management
Ecologic Corporation ,Chandigarh Come , Learn More with Us
Page 22
IIff yyoouu LLaacckk IIddeeaass !!
HHeerree aarree 115500 PPrroojjeecctt IIddeeaass ffoorr CCoommppuutteerr SScciieennccee SSttuuddeennttss DDooiinngg MMCCAA//BBCCAA//BBEE //BB--LLeevveell
FFrroomm EEccoollooggiicc CCoorrppoorraatt iioonn..
YYoouu mmaayy ttaakkee tthheessee iiddeeaass aanndd ddeevveelloopp tthheessee pprroojjeecctt iinn JJaavvaa ,, PPhhpp ,, VVBB..NNeett // AASSPP ..NNeett // CC##
150 Project Ideas for Industrial Training from Ecologic
Corporation, Chandigarh , http://www.ecologic.co.in
For More Ideas : contact [email protected] For Learning more on : VB.NET / ASP.NET / Java : Visit L
http://logicatwork.info For Learning Java/ PHP/ .NET / Embedded Systems contact :
[email protected] 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
Ecologic Corporation , Chandigarh , www.ecologic.co.in www.logicatwork.info
Learning Doc :Case Study Library Management
How to create class diagram ,Activity Diagrams based on requirements
Learning Doc :Case Study Library Management
Ecologic Corporation ,Chandigarh Come , Learn More with Us
Page 23
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
Ecologic Corporation , Chandigarh , www.ecologic.co.in www.logicatwork.info
Learning Doc :Case Study Library Management
How to create class diagram ,Activity Diagrams based on requirements
Learning Doc :Case Study Library Management
Ecologic Corporation ,Chandigarh Come , Learn More with Us
Page 24
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
Ecologic Corporation , Chandigarh , www.ecologic.co.in www.logicatwork.info
Learning Doc :Case Study Library Management
How to create class diagram ,Activity Diagrams based on requirements
Learning Doc :Case Study Library Management
Ecologic Corporation ,Chandigarh Come , Learn More with Us
Page 25
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
Ecologic Corporation , Chandigarh , www.ecologic.co.in www.logicatwork.info
Learning Doc :Case Study Library Management
How to create class diagram ,Activity Diagrams based on requirements
Learning Doc :Case Study Library Management
Ecologic Corporation ,Chandigarh Come , Learn More with Us
Page 26
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