You are on page 1of 28

1

–––

Software Design and Architecture Lab

Group Members
1. Insia Sharafat_010
2. Barira Akbar_021
2

Table of Contents
1. Introduction 4

1.1 Purpose 4

2. Use Case Diagram and Case Specification documentation 5

2.1 View items 7

2.3 Checkout 8

3. Class Diagram 10

3.1 Explanation 10

4. Sequence Diagram 11

4.1 Place Order 12

4.2 Cancel Order 12

4.3 Checkout 13

4.4 Review 13

4.5 Payment 14

5. Package Diagram 15

5.1 Explanation 18

6. Communication diagram 17

6.1Place Order 18

6.2 Cancel Order 18

6.3 Checkout 19

6.4 Review 19

6.5 Payment 20

7. Activity Diagram with and without swim lane 21

7.1 Place Order 23

7.2 Cancel Order 23


3

7.3 Checkout 24

7.4 Review 24

7.5 Payment 25

8. Deployment Diagram 25

8.1 Place Order 26

8.2 Cancel Order 26

8.3 Checkout 27

8.4 Review 27

8.5 Payment 28
4

1. Introduction

Food panda is an application which processes and sends orders to the partners (restaurants, shops),
where the people can order food and grocery items online from their favorite restaurants or shops,
and have them delivered at their doorstep. Customer can simply select city & area or select on the
location feature in the food panda app & browse through a list of quality restaurants. These are the
basic stages of food panda to deliver the food to the customer.
 Placing of an order by the customer via web/mobile

 The restaurant receives your order

 Customer receives confirmation

 The restaurant starts to prepare an order

 Restaurant assigns orders to the delivery staff

 Delivery staff delivers the food to customers

PLACE AN ORDER
ORDER RECEIVED

ORDER CONFIRMATION
DELIVERED MESSAGE
ORDEPREPARE

ASSIGNING THE ORDER PREPARE


ORDER

1.1 Purpose

Instead of going to the specific restaurant, the customer can make an order and receive the food or
grocery items which he/she has ordered. Their purpose is to serve people a splendid meal without
any difficulty for all the food lovers and the one who doesn’t want to step out to do the shopping
from grocery stores.
5

1. Use case Diagram

Actors
 Customer
 Admin
 Accountant
 Delivery man
6

Use cases Description

1. Download App: If the person wants to order something from foodpanda he/she will have to
download it.
2. Area/location: Foodpanda will ask for the specific location of the area to give options
regarding available outlets near your home or the address customer has provided.
3. Log in: The customer must log in to the website through their email address.
4. Filter / choose: Customer filters out their choices according to their taste.
5. Pick restaurant: The customer can choose the restaurant of their demand by clicking this
option.
6. Add to cart: If the food is decided, customer can add it to cart and follow the next steps.
7. Place order: Customer can order the specific food after confirming it.
8. Cancel: If the customer is confused or do not have money, they can cancel the order.
9. Sale: There can be a discount on delivery or food.
10. Payment: Payment can be done through PayPal or on receiving the delivery.
11. Review: Customers are allowed to give their reviews on the website.
12. Checkout: App confirms at the end from the customer to check out the list.
13. Delivery: Delivery boy delivers the food at the given address.
14. Refund: Customer has the right to refund their cash if their food is not up to the mark.
15. Delivery Fee: Delivery fee can be collected by delivery man or through online system.
16. Billing Address: For the verification of credit card, there is a need of providing the exact
billing address that is written in the credit card statement.
17. Complain: Customer can complain about the food or late delivery to the branch and admin
can access (views) that complain.

Include Extend Relationship:

 Login use case is included use case not available by itself login is part of Download app.
 Pick restaurant use case is included use case not available by itself login is part of
Location.
 Refund, payment, pick restaurant, cancel use cases are extended by several optional use
cases because they provide some optional functions allowing customer to find food item.
7

1. View items

 View Items use case is extended by several optional use cases because they provide some
optional functions allowing customer to find item.
 Customer Authentication use case is included in offers and Add to cart because both
require the customer to be authenticated. At the same time, item could be added to the
shopping cart without customer authentication.
2. Checkout

 Checkout use case includes several required uses cases.


 Checkout use case also includes Payment use case which could be done either by using
credit card and cash on delivery.
8

Use case 1: Place Order

Scope: Food ordering system

Level: User is working at primary level.

Primary actor: Customer

Stakeholder: Restaurants

Preconditions: Customer must have a valid account, password

Success scenario: Placed an order successfully.

Use case 2: Cancel Order

Scope: Food ordering system

Level: User is working at primary level.

Primary actor: Customer

Stakeholder: Restaurants
9

Preconditions: Customer must have a valid account, password and have selected food item.

Success scenario: Order cancelled successfully.

Use case 3: Payment

Scope: Food ordering system

Level: User is working at primary level.

Primary actor: Customer

Stakeholder: Bank

Preconditions: Customer must have a bank or easy paisa account.

Success scenario: Successfully paid for selected items.

Use case 4: Checkout

Scope: Food ordering system

Level: User is working at primary level.

Primary actor: Customer

Stakeholder: Restaurants

Preconditions: Customer must have selected items for order.

Success scenario: Successfully checked out number of items and payment details.

Use case 5: Review

Scope: Food ordering system

Level: User is working at primary level.

Primary actor: Customer

Stakeholder: Restaurants

Preconditions: Customer must have received an order after that he/she will review about
restaurant, order and services.

Success scenario: Customer reviewed order successfully.


10

2. Domain model(class diagram)

Explanation:

The class diagram above shows that:

 There are fifteen classes used in this diagram to show the ordering of items (food/grocery)
from Foodpanda
 Relationships have been used in the diagram to make the link clearer between the classes
11

 Every class has its own operations and attributes


 Proper steps have been followed with the help of class diagram to order the product
 Direct association, Generalization, Dependency, Aggregation, Composition and annotations
have been used
 Customer login to the website and filters the location, the menu appears and customers could
buy the items he/she want, Once he orders it , adds it to cart and purchase it through clearing
the payment till the very end and Admin manages the billing
3. Sequence diagram

Use Cases of Sequence diagram:


12

1. Place order

2. Review
13

3. Cancel order

4. Checkout
14

5. Payment

Explanation:

All of the use cases discussed above have different scenarios and all of them are communicating
with the help of lifelines. The lifelines used in these diagrams are:

 Customer
 Foodpanda
 Cart
 Order
15

6. Package diagram

Explanation:

The package diagram of Foodpanda above shows that there are five packages along with their
models.

1. Customer
Models: Name, Address, Contact
16

2. Foodpanda
Models: Item, Price
3. Shops
Models: Item_qty, Item_price
4. Restaurant
Models: Item_qty, Item_price
5. Order
Models: Item_id, Item_name, price, Customer_name, Customer_id, Date
6. Cart
Models: Total_items, Amount, Item_description
7. Payment
Models: Customer_info, Total_Bill, Items_info
8. Delivery
Models: Customer_name, Address, Amount
9. Credit
Models: Card_number, Amount
10. Delivery
Models: Bank Account, Amount

Dependencies:

 Foodpanda can only be accessed when it will allow the customer to log in
 If there will be a customer, then the order will be placed
 If there will be a customer and items, then the customer will add items to the cart
 If there will be no customer, no one will give payment. So here payment depends on customer

Conforms:

 Delivery
 Credit
 PayPal
17

Above mentioned packages are conformed from payment showing that these payment methods are
driven from payment, and payment can be done through them.

Containments:

 Foodpanda contains shops through which customers can order simple grocery items
 Foodpanda contains restaurants through which customers can order foods from different
restaurants
 Foodpanda contains cart to handle the orders
7. Communication diagram

This diagram represents the whole performance of communication diagram without being divided
into use cases, and the ones divided are given below:
18

1. Place Order

2. Cancel Order
19

3. Checkout

4. Review
20

5. Payment

Explanation

This communication diagram explains the communications between different lifelines. Forward
and reverse messages are used respectively by simply displaying the sequence of messages.

 Customer
 Foodpanda
 Item
 Cart
 Order
 Delivery

These are the lifelines which are used in different use cases.
21

8. Activity diagram

Explanation:

This diagram represents the whole procedure of Foodpanda with the help of activity diagram in
swim lanes.

 Customer
 Website
 Database
22

These are the vertical swim lanes which are used in the diagram to represent the activities of
Foodpanda.

This is the general activity diagram showing the activities of foodpanda just like swim lanes
without actually using it.

1. Place Order
23

2. Cancel Order

3. Checkout
24

4. Review Order
25

5. Payment

6. Deployment diagram

1. Place Order
26

2. Cancel Order

3. Checkout
27

4. Review Order

5. Payment
28

Explanations:

Similarly deployment diagram shows the hardware or software systems, their communication link
and the placement of software files on them.

 Customer Desktop
 Web service
 Database storage
 Foodpanda server
 Nested nodes

These are the nodes representing the initial system of devices

 Shops
 Restaurants

Whereas these are the artifacts, which have been deployed from Foodpanda. Without their
existence there would be no working of foodpanda.

You might also like