OOAD Case Study - Inventory System
OOAD Case Study - Inventory System
OOAD Case Study - Inventory System
Page Nos.
40 40 40 41 42 44 44 48 49 51
3.0 INTRODUCTION
Inventory control systems are used for managing the stocks of companies and big distribution organisations. In this unit we will discuss about OOM for invention control systems. We will cover class diagram design, object diagram different kind of relationships, which include generalization, association and collaboration. We will also discuss use case diagrams activities and events.
3.1 OBJECTIVES
After going through this unit, you should be able to: explain class diagram and object diagram of Inventory control System; describe generalization and Specialization of the system; describe collaboration diagram of the system; explain different activities and events of the systems, and explain deployment Diagram.
SUPPLIER Supplier-id Supp-name Supp-address Supp-city Supp-state Supp-pincode Supp-status Supp-Contact No1 Supp-phone 2 ADD MODIFY DELETE VIEW
CUSTOMER Customer-id Cust-name Cust-address Cust-city Cust-state Cust-pincode Cust-contact-no ADD MODIFY DELETE VIEW
You know that a class is represented in a box like Figure which can have at the most three regions. Class Name List of Attributes List of Operations/Methods
PRODUCTS Product-id Name-of-product Category-id Description price Qty-in-stock Danger-level Last-modification-date Manufacturing-date ADD MODIFY DELETE VIEW Class Name ORDER Order-id Description No. of items product-id order date NEW () EXISTING ()
Attributes/properties
Class Methods
INVOICE Invoice-no Invoice-date Customer-id Supplier-id Payment-status Generate () View () Receipt-no Sale-of- sale Qty-sold
SALE
41
Generate Report
Invoice No.
Order- no
Name address
Places an order
ORDER
details
Update Identifies
Super Type
Sub Type 1
CUSTOMER Name: string
Sub Type 2
Credit ()
Customer
New Product
Existing Product
Association: This represents static relationship between classes. Roles represent the way the two classes see each other.
name
Aggregation: This denotes a strong ownership between class A, the whole, and class B, and its part. Hollow Diamond Filled Diamond
PRODUCT
ORDER
SUPPLIER
PRODUCT
43
Implementation
Representation
Object: Class 1.2: [Condition] Message
Object: Class
Object: Class
Actor
: SUPPLIER SUPPLIER 1 places an order 2.0 [SUPPLIER] Invoice [In Stock] : ORDER Delivery new () Customer New product 1 [In order] 1.1 : STOCK 3.0
: PRODUCT
State
Final state
event/action
Activity Diagram
This illustrates the dynamic nature of a system by modeling the flow of control from activity to activity, or you can say operation on some class that results in a change in the state of the system.
44
Basically, this shows the workflow model, or business process and the internal operation
: Class
Activity
Activity : Class
Synchronization and Splitting of Control A short heavy bar with two transitions entering it represents a synchronization of Control. Splitting of Control that creates multiple states.
Synchronization
Splitting of Control
Check QTY-in-stock Cancel Demand Validate the Order Place the Order [else]
Regular Delivery
Demand Occurred
Payment Made
Events
Actions taken in Inventory Control System: 1) 2) 3) 4) 5) Order is placed by the CUSTOMER Order is received by the SUPPLIER Checking of Quantity-in-Stock and Reorder-level Checking of Inventory Status Generating Bills of Material
45
Implementation
6) 7)
Select Order
Validation
Min Qty >qty-in-stock Reorder Level Display Do: finish process Do: Display Bad Message Generation Do: Generate INVOICE
46
<<uses>>
<<extends>>
Generate Receipt
Check Qty-in-stock
Check
Invalid 1.2 2.0 Display error Msg Order Check Reorder level
47
Implementation
Use Case
Use Case
Actor (Customer)
Generate BOM
Generate BOM
48
USER INTERFACE
Run Program Interactive Display Operate enter Display Menu Screen do: show Customer button Select Set supplier & Customer code
Display Order Screen do: show order details
Run Program
HOLD
60 Sec without input Setup Set Qty-in-stock Set Order Qty Set Program
Set Qty-in-stock
To View
Run Button
Press
Press
Report Button
49
Implementation
Deployment diagrams depicts the physical resources in a system including nodes, components and connections, where a node is a physical resource that executes code components.
Node Component
<<JDBC>> JDBC
<<Device>> DB Server
Inventory DB <<databases>>
SUPPLIER
PRODUCTS
{order=order}
<<Deployment Space.>> Placing of Order Execution: thread Nested Transaction: True <<EJBs>> Servlets
Web Server
<<JDBC>>
<<Device>> :App Server : EJB Container customes. ear supplier. ear product. ear order..xml <<deployment space>> Inventory gmt. jar
<<JDBC>> Inventory DB
50
3.9 SUMMARY
In this unit different diagram are design to represent OOM of inventory control system. These diagrams are: Class diagram Object diagram Generalization and association Collaboration diagram Activity diagram State diagram Dataflow diagram Use case diagram Use Interface and Deployment Diagram.
51