20. Attribute Name Class Data Type/Data Structure
user_type user enum
user_name user,administrator,librarian string
password user,administrator,librarian string
user_status user enum
e-mail user,administrator,librarian string
report_no report int
intended_user report int
date report date
report_type report enum
11/18/2014 20
26. • Date Source
– User Database
– Item Database
• Required Class
– DB Connect
– DAO
DAO
insert()
update()
delete()
select()
DB Connect
connectionString
databaseName
databaseUser
Password
databaseType
connect()
11/18/2014 26
34. • Graphical design notation
• Tabular design notation
• Program design language
11/18/2014 34
35. Select User
Check User
Availability
active
Select Item
Check Item
Availability
available
issue retrieve
Get Selection
blocked
Not available
Update Item,User
Select User
Check Fine
no
Select Item
Update Item
Update User
yes
Generate Report
11/18/2014 35
36. Rules
Conditions 1 2 3 4
User Status F T F T
Item Status F F T T
Actions
Issue Item
Don’t Issue
Rules
Conditions 1 2
Check Fine F T
Actions
Retrieve Item
Fine Report
11/18/2014 36
37. Component Librarian:
The intent of this component is to manage the circulation of items of the library
and also update item data.
Initialize all system ports and reset all hardware
select user(username)
contact with user class and get the details of an user
specified by username
check user_status(user)
if user.status=“blocked”
return “user is blocked”
elseif user.status=“active”
return “user is active”
……………………………………………………………………
……………………………………………………………………………
11/18/2014 37