Friday, 3 May 2013

Class Diagram for Restaurant Order Management System

Class Diagram for Restaurant Order Management System
(Click on the diagram to enlarge.)
Explanation

The description of various classes and their relationships are as follows.

ÙOwner

This class represents owner of a restaurant. Each owner will have zero or more restaurants registered under his account.

ÙRestaurant

This class represents a restaurant. Each restaurant has zero or more employees registered. These employees are part of the restaurant because if a restaurant becomes inactive all its employees will get inactive automatically (operation propagation).

Similarly restaurants have zero or menu sections as their parts.

Customers will have zero or more ratings awarded to it by the customers. This will help the future customers to evaluate the services provided by a particular restaurant.

ÙEmployee

This class represents employees working in restaurants. The owners are responsible for registering them and assigning them a restaurant.

The employee class is specialized into Waiter and Delivery Boy classes.

ÙMenu Section

A restaurant has zero or more menu sections. Each menu section consists of zero or more Items.

ÙItem

This class represents menu items under a menu section. 

ÙCustomer

This class represent a customer in the system. It is a very important entity. A customer can place zero or more orders. S/He can comment on of the dishes ordered or can rate a restaurant for its services.

ÙOrder

This class represents the Order placed by a customer.

Each order has an associated delivery address which is represented by object of Delivery Address class.

The order goes through following states.
  1. Placed
  2. Accepted | Rejected
  3. Processing
  4. On the way
  5. Delivered | Delivery Failed

Each time the state of the order is changed by an employee, a time stamp is attached with the order specifying the date and time at which the state is changed. An instance of Status Details will maintain this information. This will help a customer in tracking an order placed by him/her.

One order will have one or more order items for which the order is placed.

ÙOrder Item

Each order consists of one or more instances of order item class. Each instance of an order item holds reference of the Item for which the order is placed.

ÙItem Ratings

The customer can rate and comment about the services provided to him/her by a restaurant. The customer can also write reviews about a restaurant which will be represented by an instance of Restaurant Ratings class.

ÙComment

A restaurant owner can comment about the conduct of a customer. This will be helpful for other restaurants at the time of accepting orders from a customer.












No comments:

Post a Comment

Your comments are very much valuable for us. Thanks for giving your precious time.

Do you like this article?