Here is the final class diagram for the Inventory Management System:
The video explanation for the final class diagram for the Inventory Management System is as follows:
Let's now look at the final class diagram now, which gives you a holistic picture of all the users. The system user is the parent which is inherited by the rest. The system user class has the common attributes and methods common across the other users, namely the admin, supplier, inventory manager and so on. The system manager has a composition of the address. It also has a one to many relationship with the notification service where the association is represented using an association class. As you can see, the system user has its own constraints and the nodes are also specified on user ID. The system user class has an extension of supplier, admin and inventory manager. Each class has a relationship between them. Admin and supplier have a relationship between them as a one to many, One admin could be related to multiple suppliers and they also have a relationship by raising an invoice which is represented by an invoice class. And it also has a relationship through paying an invoice which is represented by a transaction class. This supplier also interacts with the order class where the order has all the order details. And there is also a relationship between the order class and the inventory manager. The order class turns out to be commonly shared between the inventory manager and the supplier.
Similarly between an admin and an inventory manager too, there is a relationship. An admin assigns a task to the inventory manager, he could assign one or many tasks and the relationship between the task and the inventory manager is the inventory manager completes those tasks. And thus there is a multiple level of relationships between the classes.
The final class diagram provides a comprehensive overview of all users in the system.
The system user class is inherited by all other user classes (admin, supplier, inventory manager, etc.) and contains common attributes and methods.
The system manager class has a composition of the address and a one-to-many relationship with the notification service, represented using an association class.
Each user class has relationships with other classes. Admin and supplier have a one-to-many relationship and are connected through an invoice class and a transaction class.
The order class contains all the details of an order and is commonly shared between the inventory manager and supplier classes.
Admin can assign tasks to inventory managers, and the relationship between the task and inventory manager is that the inventory manager completes those tasks.
There are multiple levels of relationships between the classes.