Professional Documents
Culture Documents
Bakery Management System: I. Use Case Diagram
Bakery Management System: I. Use Case Diagram
The Bakery Management System use case diagram provides a high-level overview of the
interactions between the system and its primary actors: Admin, Manager, Employee, and
Customer. The diagram captures key functionalities and processes that contribute to the
seamless operation of the bakery.
Admin:
The Admin actor holds a central role in system configuration and management. They are
responsible for overseeing and configuring the entire bakery management system. Admin
interacts with the whole Branch Management use case ensuring the smooth functioning
of the system
Manager:
Managers play a crucial role in the day-to-day operations of the bakery. They are
involved in overseeing employees, and handling branch-related tasks. The Manager actor
interacts with the Employee Management, customer review Management, and Branch
Management use cases.
Employee:
Employees contribute to the operational efficiency of the bakery. They participate in
processes related to order management and carry out tasks assigned by managers. The
Employee actor interacts with the Online order taking, Inventory Management, Order
Management and Employee Management use cases.
Customer:
Customers are essential to the bakery management system as they initiate the online order
taking process and provide valuable feedback through the customer review management
process. The Customer actor interacts primarily with the Online Order Taking, and
Customer Review Management use cases.
1. Manager Login:
Manager Login to the system just at the start.
2. Add Employees:
Manager initiates the process of adding employees, involving interaction with the
employee.
3. Check Employee Information:
Manager checks the employee information and show lists of employees.
4. Employee Information:
System shows Employee Information after adding an employee.
~6~
The state diagram above shows the Possible States our Bakery Management system will
be in, which includes:
Logging in state:
This is the state that our system will be in right as the system is started. At this stage the
customer is logging in.
Logged In state:
This is the state that our system in in when the log in credentials of the customer is
validated and the customer has successfully logged in.
Order Placed state:
This is the state of our system when the customer has placed their order and their order is
received by the System.
Order Confirmed State:
This is the state that our system is in when the Order placed by the customer in the
previous state is Confirmed by the employee. The system also sends a confirmation
message to the customer.
Order in Progress state:
When the customers placed and confirmed order is being prepared by the employee we
say that the System is in Order in Progress state.
The State Diagram above shows the states that our system goes through when an employee uses
it. The Following are the possible states:
Logging in state:
This is the state that our system will be in right as the system is started. At this stage the
customer is logging in.
Logged In state:
This is the state that our system in in when the log in credentials of the customer are
validated and the customer has successfully logged in.
~ 10 ~
v. coMponent diagraM:
The Component diagram above shows how Components interact with each other. The
following are the components of our Bakery Management System, keeping in mind it is a
close branched diagram:
1) Customer
2) Employee
3) Manager
4) Admin
5) Order
6) Branch
Customer:
In a business, the customer is an important component, without its business cannot thrive.
The class Customer contains the attributes and the methods that are required for order
placement. It includes name, phone number, email address, and address.
This class is also used for online orders, so details like address are also used.
Employee:
Employees serves the customer (aggregation), remove expire products, performs assigned
task etc . It contains all attributes that are required in the bakery.
Methods include all the functions perform by an employee. Attributes are name, id, cnic,
and workingHours.
Methods include:
getSalary(int dailyHours): salary is calculated according to the daily hours spent
at workplace.
assignedTask(String skill): View the task that is assigned to an employee.
getWorkingHours(int hours)
removeExpireProducts().
Manager:
Manager manages the branch. As manager is also an employee, so it inherits all the
attributes and methods from employe but has some additional methods, that include:
calculateProfit(int todaySales)
distributeSalary(Employee employee)
generateReport()
employeeRecord(int attendance, int workingHours)
totalOrdersPlaced(String online, String onsite)
Order:
When the customer places an order(cpmposition), data is saved in order class that
contains the order_Id, the items ordered and the amount of bill to be paid, served by the
employee(association).
Methods include:
ordersFulfilled()
ordersRecieved()
inventoryOrders(): Orders placed with vendor to stock up inventory.
Admin:
Admin is the owner of the bakery (composition ) and owns a single branch or more. Its
attributes include name, employeeRecord, branchRecord.
Methods are:
caculateProfit(Branch branch): Every branch’s profit is calculated in net profit.
calculateLoss(Branch branch): Every branch’s loss is calculated in net loss.
BranchCost(int expenses): Expenses spent on a branch are calculated.
~ 15 ~
Branch:
If there are more than one branch of an admin then, branch data is saved in branch class.
Its attributes are: branchProfit, branchLoss, branchManager.
Methods are:
employee1 is an object of class Employee. Following are the values assigned to the
attributes:
name : Akram
Id: 12
CNIC: 1222-3333323-22
working Hours: 8