Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Library System
Version: Draft
September 17, 2008
Prepared by:
This document is adapted from Software Project Survival Guide by Steve McConnell
(Microsoft Press, 1998). The document template used to create this document, related
documents, plans, and other materials can be downloaded from the survival guide website
at http://www.construx.com/survivalguide/.
Software Requirements Specification (SRS)
REVISION CHART
CONTENTS
1. INTRODUCTION ...............................................................................................................7
PURPOSE......................................................................................................................7
SCOPE.........................................................................................................................7
DEFINITIONS, ACRONYMS, AND ABBREVIATIONS...................................................................7
REFERENCES.................................................................................................................8
WEBSITES : ...............................................................................................................8
OVERVIEW....................................................................................................................8
2. OVERALL DESCRIPTION..................................................................................................10
PRODUCT PERSPECTIVE.................................................................................................10
2.1.1 User Interfaces........................................................................................ .............10
2.1.2 Software Interfaces..................................................................................... ..........10
PRODUCT FUNCTIONS....................................................................................................11
2.1.3 Login..................................................................................................... ...............12
2.1.4 Register............................................................................................. ...................12
2.1.5 borrowing................................................................................................. ............12
2.1.6 search..................................................................................................... ..............12
2.1.7 return................................................................................................................. ...12
2.1.8 report................................................................................................................. ...12
USER CHARACTERISTICS................................................................................................13
3. SPECIFIC REQUIREMENTS...............................................................................................14
SOFTWARE PRODUCT FEATURES......................................................................................14
3.1.1 Login Use Case...................................................................................... ..............14
3.1.1.1 Brief Description....................................................................................................14
3.1.1.2 Flow of Events.......................................................................................................14
3.1.1.3 Basic Flow - Login.................................................................................................14
3.1.1.4 Alternative Flows...................................................................................................14
3.1.1.4.1 Forget Password........................................................................................... .....14
3.1.1.5 Special Requirements............................................................................................15
3.1.1.6 Postconditions........................................................................................................15
3.1.1.7 Login Sequence Diagram......................................................................................15
3.1.1.8 Login Activity Diagram.........................................................................................15
3.1.2 Check Out Customer Use Case / register................................................. ............16
3.1.2.1 Brief Description....................................................................................................17
3.1.2.2 Flow of Events.......................................................................................................17
3.1.2.3 Basic Flow - Check Out Customer........................................................................17
3.1.2.4 Alternative Flows...................................................................................................17
3.1.2.5 Special Requirements............................................................................................17
3.1.2.6 Preconditions.........................................................................................................17
3.1.2.7 Postconditions........................................................................................................17
4. INDEX..........................................................................................................................61
LIST OF FIGURES
Figure 1 : Online Retail Supply Chain System Use Case Diagram........................................... .....9
Figure 2: Online Retail Supply Chain System Activity Diagram………………………..……… 12
Figure 3 : Login Sequence Diagram........................................................................ ....................16
Figure 4 : Login Activity Diagram............................................................................... ................17
Figure 5 : Check Out Customer Sequence Diagram........................................... .........................20
Figure 6 : Check Out Customer Activity Diagram .................................................. ....................21
Figure 7 : Oversee Current Stock Sequence Diagram......................................................... .........24
Figure 8 : Oversee Current Stock Activity Diagram ................................................................ ...25
Figure 9 : Place an Order Sequence Diagram........................................................................... ..28
Figure 10 : Place an Order Activity Diagram.............................................................. ................29
Figure 11 : View Order Status Sequence Diagram..................................................................... ..31
Figure 12 : View Order Status Activity Diagram................................................................. ........32
Figure 13 : Make an Order Payment Sequence Diagram..................................................... ......34
Figure 14 : Make an Order Payment Activity Diagram............................................................. ..35
Figure 15 : View Order Sequence Diagram............................................................................. ....37
Figure 16 : View Order Activity Diagram....................................................... ............................38
Figure 17 : Confirm Order Sequence Diagram.................................................................. ........40
Figure 18 : Confirm Order Activity Diagram.......................................................................... .....41
Figure 19 : Bill Store Manager Sequence Diagram.................................................. ...................44
Figure 20 : Bill Store Manager Activity Diagram.......................................................... .............45
Figure 21 : Update Order Status Sequence Diagram........................................................... ........48
Figure 22 : Update Order Status Activity Diagram................................................................... ...49
1.INTRODUCTION
Purpose
The purpose of this document is to specify the software requirement specifications to develop the
Library System. This document outlines a brief description about what functions are to be
performed on what data to produce what results at what location for whom.
Scope
This document specifies software requirement specifications for Library System. This has been
achieved through developing Use Case Diagrams for each function and for the system as a whole
using Prototyping model. It also explain the flow of events (process) of the whole system through
activity diagram. Moreover, This document states each Use Case through several steps including
brief description, flow of events, basic flow, alternative flows, special requirements, preconditions,
postconditions, activity diagram and sequence diagram. Activity and sequence diagrams(
Interaction diagrams ) are used in this document to describe exemplary how groups of objects
collaborate in some behavior. They capture the behavior of a single use case. In addition, it
specifies non-functional requirements for the system such as usability, reliability and performance
which are considered as the constraints on the system’s functions or services.
References
Websites :
• http://www.wikipedia.com
• http://www.google.com
• http://ilkom.unsri.ac.id
References book :
• Sommerville, Ian. 2006. Software Engineering 8th edition. England: Addison-Wesley
Overview
This is the Use Case Diagram for Online Retail Supply Chain System.
Place an Order
View Order
2.OVERALL DESCRIPTION
Product Perspective
This product is dependent with Library website and the ID database. Only officer, that has an ID
can access the system. However, the data involved in the Library System is independent and self-
contained. The user can only view information provided from the system.
2.1.1User Interfaces
2.1.2Software Interfaces
1. Windows XP
Product Functions
The name of this system is Libarary System which just can be accessed by officer . The major
functions of this system are to manage borrowing and returning book transaction, search book that
the members n visitors want to borrow, register for visitor, borrow book, return book, produce
report, update transaction status.. In this software, users which are the officer, should have ID and
password to login to the system. This document also explains about the prerequirement to visitors
and members about borrowing and returning the book. The benefit of this system is to help both
officer, visitors, and members to have a good arrangement in this system.
Place an Order
View Order
Status(again)
View Order
End Online Retail Supply Chain
System
Order rejected
Confirm Order
Order approved
Bill Store
Manager
Update Order
Status
2.1.3Login
This use case will ask a user to enter ID and password to login to the system.
2.1.4Register
This use case is for user, who is visitors, to register if they want to borrow book(s). they must fill a
form that can b helped by officer. After they have been registered, they will give a member card.
2.1.5borrowing
This use case allows the member borrow the book that they want. Before the system process the
borrowing, the systems will be check the last transaction. If the member not return the book yet so
they should finish the the last transaction first before make a new transaction (borrow the new
book).
2.1.6search
This use case allows the system to search the book. The officer should enter the information about
authors name, title of the book or the publisher to find the book that member want to find..
2.1.7return
This use case allows the member return the book that they have been borrowed, if they return the
book run over from the date of return do they shoud pay the fine.
2.1.8report
This use case allows the system to produce the report, so the officer can check the report n print it..
User Characteristics
This system can be accessed by two types of users:
officer should have an ID and password to login to the system and do his/her particular
task.
3.SPECIFIC REQUIREMENTS
officer Login
User
3.1.1.1Brief Description
This use case describes how a user logs into the Library System. The actors starting this use case
is officer.
3.1.1.2Flow of Events
The use case begins when the actor types his/her name and password on the login form.
3.1.1.4Alternative Flows
3.1.1.4.1FORGET PASSWORD
If user submits incorrect ID and password, the error message will be displayed. The user must re-
enter ID and password again.
3.1.1.5Special Requirements
The ID must begin by alphabet and contain number 0-9. The passwords at least 6 characters and
contain alphabet and number. Preconditions
3.1.1.6Postconditions
3.is valid()
4.open()
Sequence Diagram:
Login/E--2:Forget
password
Sequence Diagram:
Login/E-1:Invalid
User Info
Figure 3 : Login Sequence Diagram
Fill in Login
Form
register
visitor
3.1.2.1Brief Description
This use case describes how a actor register to be a member of the Library. The actors starting this
use case is visitor.
3.1.2.2Flow of Events
The use case begins when the visitor want to borrow book(s) and should have a member ID.
3.1.2.4Alternative Flows
3.1.2.5Special Requirements
3.1.2.6Preconditions
3.1.2.7Postconditions
2.new(ID)
3.getItemCode()
4.getItem(code)
5.enterQuantity(integer)
6.calculateItemPrice()
7.insertItem(item,quantity,price)
8.endSale()
9.closeTransiction(total)
10.getTotal(total)
11.enterPayment()
12.deductTotal()
13.returnRemaining()
14.deductStock()
15.produceReceipt()
Select Close
Select New Sale
Transiction
Select Payment
Select Open
Transiction
Receive
Scan Item Payment
Return
Enter Quantity Remaining
3.1.3.1Brief Description
This use case describes user, which is the store manager, to oversee the stock in the store by login
to the system.
3.1.3.2Flow of Events
The use case begins when the user or the store manager login to the system and press stock button.
3.1.3.3Basic Flow
6. Check stock
7. Confirm request
3.1.3.4Alternative Flows
After the store manager view alert, the store manager also will check the stock, if they are still have
stock mean the system stock alert is error and the store manager simply ignore the alert and
continue without confirm request, press submit button and alert have been confirmed.
3.1.3.5Special Requirements
3.1.3.6Preconditions
Before this use case begins the user, which is store manager, has to log on to the system.
3.1.3.7Postconditions
The use case ends when the information about current stock is displayed.
1.viewStockAlerts()
2.getStockInfo()
3.stockInfo.
4.checkStock()
Sequence Diagram:
Oversee Current Stock/
5.confirmRequests()
E-1 :Alert is not true
6.senData()
7.alertsConfirmed()
Select Stock
Select Stock
Alert
View Stock
Alerts
Select Stock
Info.
Submit
Confirmation
3.1.4.1Brief Description
When the store manager log in using ID and password into the system, there are application status
menu. In that menu, they can see application supplier option. In this application, the store manager
can select supplier, view catalog, view item, and price.
3.1.4.2Flow of Events
The use case begins when the store manager select supplier button menu.
3.1.4.4Alternative Flows
If the store manager didn’t complete order information, an error massage is displayed. The system
will back to fill in user information until the user complete fill in user information or cancel the
transaction.
3.1.4.5Special Requirements
3.1.4.6Preconditions
3.1.4.7Postconditions
1.viewSuppliers()
2.selectSupplier()
3.getSupplierInfo.()
4.supplierInfo.()
5.getSupplierCatalog()
6.supplierCatalog()
7.viewCatalog()
8.fill inOrderForm()
9.sendData()
10.orderSubmitted()
Sequence Diagram:
Place an Order/E-1:
Incompleted Information
Start Place an
Order Use Case
Select
Suppliers
View Suppliers
Figure 9 :Place an Order Sequence Diagram
Select Supplier
View Catalog
Select Item
Select Amount
Items >1
Select Delivery
Date
Submit Order
3.1.5.1Brief Description
This use case describes user, which is the store manager, to view the order status by login to the
system.
3.1.5.2Flow of Events
The use case begins when the user or the store manager press view order status button menu
3.1.5.3Basic Flow
2. View orders, open order, view order status and close order (if orders > 1, then back to open
order) do all at once.
3. Press OK button
3.1.5.4Alternative Flows
3.1.5.5Special Requirements
If status show pending, the problem maybe with the internet connection. Users must wait at least
one day. If still pending, they must reorder item from another supplier.
3.1.5.6Preconditions
Before this use case begins the user, which is store manager, has to log on to the system.
3.1.5.7Postconditions
The use case ends when the information about order status is displayed.
1.organizeOrders(delivery date)
2.ViewOrders()
3.openOrder()
4.getOrderInfo.()
5.orderInfo.()
6.viewOrderStatus()
7.closeOrder()
8.sendData()
9.orderStatusViewed()
View Order
Status
Select Ok
SRS –Online Retail Supply Chain System End View Order Status Use Page 36
Case
Software Requirements Specification (SRS)
3.1.6.1Brief Description
After completing the place an order form the user make an order payment. The user will pay order
by online payment with pay pal, master card, visa card or online balance transfer.
3.1.6.2Flow of Events
The use case begins when the user select payment button menu.
3.1.6.3Basic Flow
3.1.6.4Alternative Flows
If required information not completed properly, error massage will be display and will highlight the
empty field information.
3.1.6.5Special Requirements
3.1.6.6Preconditions
3.1.6.7Postconditions
1.newPayment()
2.selectPaymentMethod()
3.getMethodInfo.()
4.methodInfo.()
5.fill inRequiredInfo()
6.submitPayment()
7.orderPaid()
Sequence Diagram:
Make an order
Payment /E-1:
Incompleted Info.
Select Payment
Select Method
Fill in Required
Information
Payment has
been submited
3.1.7.1Brief Description
This use case describes about how to view order information in the system. The actor in this use
case is supplier.
3.1.7.2Flow of Events
The use case begins when the supplier select press inbox button menu.
3.1.7.3Basic Flow
2. View order, open order, close order (orders > 1, back to open order)
3. Priorities Orders
4. Press Ok button
3.1.7.4Alternative Flows
3.1.7.5Special Requirements
The user must be the supplier and have ID and password to login the system.
3.1.7.6Preconditions
3.1.7.7Postconditions
1.organizeOrders(delivery date)
2.viewOrders()
3.openOrder()
4.getOrderInfo.()
5.orderInfo.()
6.closeOrder()
7.prioritiseOrders(delivery date,retailer)
8.sendData()
9.ordersViewed()
Select Inbox
Close Order
Orders >1
Prioritise Orders
Select Ok
Supplier
Confirm Order
3.1.8.1Brief Description
The supplier will make confirm or reject from every order. The supplier will send confirm or reject
order to the user account.
3.1.8.2Flow of Events
The use case begins when the supplier press confirmation button menu.
3.1.8.3Basic Flow
3.1.8.4Alternative Flows
If stock insufficient, the supplier will reject user order and will sent to user account
3.1.8.5Special Requirements
For make the user satisfied. The supplier must have enough stock and good price.
3.1.8.6Preconditions
3.1.8.7Postconditions
1.viewOrder()
2.getStockInfo.()
3.StockInfo.()
4.checkStock()
5.is Sufficient(amount)
6.confirmOrder()
7.sendData()
8.orderConfirmed()
Sequence Diagram :
confirm Orders/E-1:
Insufficient Stock Amount
Select Confirmation
Select Order
Check Stock
Stock is Insufficient
Confirm Order
Reject
Order
Submit
Confirmation
Supplier
Bill Store Manager
3.1.9.1Brief Description
The supplier will calculate item order and make invoice. And then, the supplier will send invoice to
user account.
3.1.9.2Flow of Events
The use case begins when the supplier press invoice button menu.
3.1.9.3Basic Flow
3.1.9.4Alternative Flows
If the user didn’t complete invoice information, error will displayed into the system and back to fill
in information.
3.1.9.5Special Requirements
The supplier must have item ordered, user information and retailer information
3.1.9.6Preconditions
3.1.9.7Postconditions
1.newInvoice()
2.newID( )
3.getOrderInfo.()
4.orderInfo.()
5.enterItem()
6.enterQuantity(integer)
7.calculateItemPrice()
8.insertItem(item,quantity,price)
9.closeTransiction(total)
10.getTotal(total)
11.fill inUserInfo.()
12.fill inRetailerInfo.()
13.submitInvoice()
Sequence Diagram:
Bill Store Manager/E-1
:Incompleted Information
Enter Quantity
Submit Invoice
Items >1 Calculate Item Did not complete Invoice Information Display Error
Price Message
Invoice has
been submitted
3.1.10.1Brief Description
After supplier confirm order or reject order, supplier will make update order status. This use case
describe about the step to update order status
3.1.10.2Flow of Events
The use case begins when the supplier press update order status button menu
3.1.10.3Basic Flow
3.1.10.4Alternative Flows
If the supplier reject order, the update order status never change.
3.1.10.5Special Requirements
Before the supplier update order status, supplier must approve order, make invoice, paid, order,
and delivered.
3.1.10.6Preconditions
The supplier must have ID and password to access the system for update status order.
3.1.10.7Postconditions
1.selectApproved()
2.sendData()
Sequence Diagram:
Update Order Status/E-1:
Select Rejected 3.orderApproved()
4.selectInvoiced()
5.sendData()
Sequence Diagram:
Update Order Status/E-2:
6.orderInvoiced()
Select Uninvoiced
7.selectPaid()
8.sendData()
Sequence Diagram:
Update Order Status/E-3:
9.orderPaid( )
Select Unpaid
10.viewOrders( )
11.selectOrder()
12.selectDelivered( )
13.sendData( )
Sequence Diagram:
Update Order Status/E-4:
Select Undelivered 14.orderDelivered( )
Select Rejected
Select Orders
Select Approved After Order has
Submit Order been delivered
Status(1)
Select Invoiced
Select Update Order
Status (4)
Submit Order
Status (2)
Select Delivered
Select Update Order After Order has
Status (3) been paid
Submit Order
Status (4)
Select Paid
3.1.11.1Windows Compliance
The desktop user-interface must be Windows 95/98 and above OS environment compliant for
access the system.
This system make very compatible to user with slow connection. Also not much
application in this system so can make user easy to access. The system also easy for
remember and shall be used by people with no training, and possibly no understanding of
English.
3.1.11.3Online Help
Online documents that capture and condense “how to” perform some behavior, operation, or
function with a system, serve as a semi-structured narrative that assert or imply end-user
requirements. “Formal” How-to’s descriptions include explicit declarations of their purpose as a
How-to and may be identified as a system tutorial. Community participants may seek these formal
How-to’s when they need to add a system module or class structure, or contribute other resources
or efforts to the open software project. In contrast, informal How-to’s may appear as a selection,
composition, or decomposition of any of the proceeding. These informal How-to guides may be
labeled as a “FAQ”; that is, as a list of frequently asked questions about how a system operates,
how to use it, where to find its development status, which developed what, known bugs and
workarounds, etc. However, most FAQs do not indicate how frequently any of the questions may
have been asked, or if effort has been made to measure or track FAQ usage/reference.
3.1.12Reliability
Reliability is complex concept that should always be considered at the system rather than the
individual component level. Because the components in a system are interdependent, a failure in
one component can be propagated through the system and affect the operation of other component.
3.1.12.1Availability
The probability that the system is available for use at a given time. Availability of 0.998 means
that the system is likely to be available for 998 of every 1000 time units. This metric should be
used in non-stop systems where users expect the system to deliver a continuous service. Examples
of such systems are telephone switching system and railway signaling systems.
The average time between observed system failures. An MTTF of 500 means that one failure can
be expected every 500 time unit. This metric should be used in systems where there are long
transaction; that is, where people use the system for long time. The MTTF should be longer than
the average length of each transaction. Example of system where this metric may be used are word
processor systems and CAD systems.
3.1.13Performance
3.1.13.1Simultaneous Users
Online retail supply chain system can support 10000 simultaneous users against the central
database at any given time and up to 4000 simultaneous users against the local servers at any one
time.
The system provides access to the legacy course catalog database with no more than 7 second
latency.
The user can access the system in 30 second and when the user login the system take 15 seconds.
The system provide several optional such as log out, order item, contact us etc. and to login every
optional the system take 1 minute. The system takes 1 minute 45 seconds to complete 85% all
transaction. This also depends with internet connection. For complete all transactions the system
requires the user have 50 Mbps internet connection.
4.INDEX
A
S L V
Abbreviations,
Scope,7 7 Login,10
View Order Activity Diagram,36
Acronyms, 7 Users,49
Simultaneous LoginView
activity diagram,15
Order Sequence Diagram,35
Administrator,7
Software Product Features,14 LoginView
Sequence
OrderDiagram,14
Status Activity Diagram,30
Alternative Flow13,17,20,24,28,31,34,37,40,45 Login
Special Requirements14,17,21,23,28,31,34,37,41,42,45 Usecase,13
View Order Status Sequence Diagram,29
Appendices
Specific Requirements,13 View Order Status Use Case,28
Availability,49 View Order Status,11
T M View Order Use Case,34
B
Transaction Response Time,50 MakeView
an Order Payment Activity Diagram,33
Order,11
Basic Flow13,16,20,28,26,31,34,37,40,44 Make an Order Payment Sequence Diagram,32
Bill Store Manager,11
U MakeW an Order Payment Use Case,31
Bill Store Manager Activity Diagram,43
Update Order Status Activity Diagram,47 Make an Order Compliance,48
Windows Payment,11
Bill Store Manager Sequence Diagram,42
Update Order Status Sequence Diagram,46 Mean Time Between Failures,49
Bill Store Manager Use Case,40
Update Order Status Use Case,44
Brief Description13,16,20,24,28,31,34,37,40,44
Update Order Status,11 N
Usability,48 Non Functional Requirements,48
C
User Characteristics,11
Check Out Customer,10 O
Check Out Customer Activity Diagram,19 Online Help,48
Check Out Customer Sequence Diagram,18 Overall Description,10
Check Out Customer Use Case,16 Oversee Current Stock Activity Diagram,23
Confirm Order,11 Oversee Current Stock Sequence Diagram,22
Confirm Orders Activity Diagram,39 Oversee Current Stock Use Case,20
Confirm Orders Sequence Diagram,38 Oversee Current Stock,10
Confirm Orders Use Case,37 Overview,9
D P
Database Access Response Time,49 Performance,49
Definitions,7 Place an Order Activity Diagram,27
Design for ease of use,48 Place an Order Sequence Diagram,26
Diagram15,18,22,25,28,31,34,37,41,45 Place an Order Use Case,24
Place an Order,10
E Postconditions,14,17,21,25,29,32,35,38,41,45
Extension Points14,16,20,27,30,33,36,39,43 Preconditions,14,17,21,25,29,31,34,37,41,45
Product Functions,10
F Product Perspective,10
Flow of Events13,16,20,24,28,31,34,37,40,44 Purpose,6
Forget Password,13
R
I References,8
Index,49 Reliability,49
Introduction,7
Invalid Password,14