15
ONLINE BOOK SHOP Problem statement: Following the model of amazon.com or bn.com, design and implement an online book store. Abstract: Distribution of information for public access using computer networks instead of physical media, such as paper or cd-rom is online publishing. The context of online publications may be enhanced by the use of such features as hyper text search facilities and multimedia. The majority of online publishing takes place over the internet particularly by means of World Wide Web (W W W). The online book shopping system enables the user o browse through a list of books available in book database and purchases any no of books through internet using a valid credit card. As part of case study, following analysis diagrams will be created 1. Use cases for the system 2. Class diagram for initially identified classes. 3. Activity diagram to show flow for each use case. 4. CRC cards showing how every class fits into the system. 5. Sequence and collaboration diagrams. 6. State chart diagram shows states before and after each action. Conceptualization: Online Bookshop Bookshop: Books, Software, And, Music CD’S Customer: Browse, Register, And Order Bookseller: Charge Function points: Customer Registers Details 1

OoAD_Onlinebookshop

Embed Size (px)

Citation preview

Page 1: OoAD_Onlinebookshop

ONLINE BOOK SHOP

Problem statement:

Following the model of amazon.com or bn.com, design and implement an online book store.

Abstract:

Distribution of information for public access using computer networks instead of physical media, such as paper or cd-rom is online publishing. The context of online publications may be enhanced by the use of such features as hyper text search facilities and multimedia. The majority of online publishing takes place over the internet particularly by means of World Wide Web (W W W).

The online book shopping system enables the user o browse through a list of books available in book database and purchases any no of books through internet using a valid credit card.

As part of case study, following analysis diagrams will be created

1. Use cases for the system2. Class diagram for initially identified classes.3. Activity diagram to show flow for each use case.4. CRC cards showing how every class fits into the system.5. Sequence and collaboration diagrams.6. State chart diagram shows states before and after each action.

Conceptualization:

Online Bookshop Bookshop: Books, Software, And, Music CD’S Customer: Browse, Register, And Order Bookseller: Charge

Function points:

Customer Registers Details Customer Browses and Orders Items

System Welcome Message Customer System Validates password If password is invalid Error Message is given Exit

LOOP

Customer Browses System Displays item information Customer selects items System Adds To Shopping Chart

1

Page 2: OoAD_Onlinebookshop

Customer done System creates order System shows order form and cost Customer agrees to pay Seller delivers to customer Seller updates details

Actors:

These are who are involved in interaction of the whole process. The steps involved in this whole process are indicated as use cases.

Sign in Browse and search for books Order for books and pay Seller delivers to customer Send acknowledgement

1. SIGN IN:

For purchasing a book through internet the user must have an account in the online book store (i.e.) one must register themselves to the online book shopping by giving their details. These details include email id, account name, and credit card no etc.

Without any account one cannot make any transactions as it is a prerequisite. So if a new user wants to buy books first he/she needs to sign up. By giving the required details, he/she can sign in with the id and use the services.

Every account is protected by password, which adds security to the user. This achieved by restricting undefined accessing through a particular username by validating password.

2. BROWSE FOR BOOKS:

After signing in, the user searches for the book. This selection can done in various ways like on basis of name of book, author, publication or category. As requested by the user the books are filtered and the rest is displayed. On one’s interest none or one or more books are selected. If no books are selected the user may logout.

3. ORDER AND PAY:

The user fills in the order form requesting the required books. He/she needs to fill in the credit card no for the payment. When the user submits the order form the online book shopping verifies the card validity. This is done by the banker. He/she says the card is valid if the number is right and enough balance is in the account.

4. ACKNOWLEDGEMENT:

2

Page 3: OoAD_Onlinebookshop

After receiving the books from online book shopping the user needs to sign in and give acknowledgement that he/she has received that book, so that the banker can do the money transaction between the accounts.

Online Book Shop Use case Diagram:

A use case diagram shows a set of use cases and actors and their relationships.

ACTORS USECASES

Customer   Login to the site Look for book catalogue Select book (s). Register and order book(s) Fill order form

Seller Login Update details Collect order forms Send order forms to DBA

Deliver book (s) to customer.

3

Page 4: OoAD_Onlinebookshop

1. Online Book Shop Class Diagram

A class diagram shows a set of classes, interfaces and collaborations and their relationships. The two main classes are customer and seller that are grouped with sub classes related to them. The classes contain attributes and operations related to them. Operations performed by the customer are

CUSTOMER:

Log on to the site Search for required books Order for the books by filling order form Pay money Confirm details for delivering Give acknowledgement

SELLER:

Maintain lists of books available Give lists of books requested by the customer Get order details and money Get books delivered to customer

Online book shop class diagram

4

Page 5: OoAD_Onlinebookshop

3. Online bookshop activity diagram

5

Page 6: OoAD_Onlinebookshop

An activity diagram shows the flow from activity to activity within a system. It emphasizes the flow of control among objects.

Online bookshop activity diagram

4. Online book shop sequence diagram:

6

Page 7: OoAD_Onlinebookshop

A diagram is an interaction diagram that emphasizes the time ordering of messages. It consists of set of objects and actor

Actors:CUSTOMER: He/she is the person who wants to buy the books. Once he/she logs on the system of objects and actor.SELLER: The person who is willing to sell his products in exchange of money is called seller.

Objects:

1. LOGIN: This maintains the security of users and site. It validates the user details before allowing him to access the site and account.

2. WEB PAGE: This is the user interface: It is the main source of communication between user and the web master or administrator of site. The messages are displayed on this page.

3. ORDER AND CUSTOMER DETAILS: This takes care of the customer details and the ordered books and mode of payment.

4. SELLER: He is the person who sells the books to customer receiving money.

5. BOOK LISTS: This is the database in, which the availability of books and other details of each book stored.

Online book shop sequence diagram

7

Page 8: OoAD_Onlinebookshop

5. Online book shop collaboration diagram:

8

Page 9: OoAD_Onlinebookshop

A collaboration diagram is an interaction diagram that emphasizes the structural organization of the objects that send and receive messages. It shows set of objects, links among those objects and messages sent and received by those objects.

6. Online book shop state chart diagram:

9

Page 10: OoAD_Onlinebookshop

A state chart diagram shows a state machine, consisting of states, transitions, events and activities. It emphasizes the events ordered behavior of an object, which is especially useful in modeling reactive systems.

7. Online book shop Component diagram:

10

Page 11: OoAD_Onlinebookshop

A component diagram models the physical components (such as source code -jsp, executable programs, user interface ,database –oracle database) of the system

8. Online book shop deployment diagram:

11

Page 12: OoAD_Onlinebookshop

The deployment diagram shows the configuration of runtime processing elements and the software components process and object that lives them we are using three tier architecture

12