0% found this document useful (0 votes)
50 views1 page

UML Class Diagram

The document describes an inventory system with classes for Parts and Products. Parts are abstract and have properties like ID, name, price, stock levels. Products reference Parts and have additional properties. The inventory tracks lists of Parts and Products and allows adding, updating, deleting, and looking up by ID or name. There are also InHouse and Outsourced subclasses that extend Part with additional machine or company fields.

Uploaded by

Boyapati Bhavya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views1 page

UML Class Diagram

The document describes an inventory system with classes for Parts and Products. Parts are abstract and have properties like ID, name, price, stock levels. Products reference Parts and have additional properties. The inventory tracks lists of Parts and Products and allows adding, updating, deleting, and looking up by ID or name. There are also InHouse and Outsourced subclasses that extend Part with additional machine or company fields.

Uploaded by

Boyapati Bhavya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Inventory

- allParts:ObservableList<Part>
- allProducts:ObservableList<Product>

+ addPart(newPart:Part):void
+ addProduct(newProduct:Product):void
+ lookupPart(partId:int):Part
+ lookupProduct(productId:int):Product
+ lookupPart(partName:String):ObservableList<Part>
+ lookupProduct(productName:String):ObservableList<Product>
+ updatePart(index:int, selectedPart:Part):void
+ updateProduct(index:int, newProduct:Product):void
+ deletePart(selectedPart:Part):boolean
+ deleteProduct(selectedProduct:Product):boolean
+ getAllParts():ObservableList<Part>
+ getAllProducts():ObservableList<Product>

Part <<Abstract>> Product

- id : int - associatedParts:ObservableList<Part>
- name : String - id : int
- price : double - name : String
- stock : int - price : double
- min : int - stock : int
- max : int - min : int
- max : int
+ Part(id : int, name : String,
price : double, stock : int, min : int, max : int)
+ setId(id:int):void + Product(id : int, name : String,
+ setName(name:String):void price : double, stock : int, min : int, max : int)
+ setPrice(price:double):void + setId(id:int):void
+ setStock(stock:int):void + setName(name:String):void
+ setMin(min:int):void + setPrice(price:double):void
+ setMax(max:int):void + setStock(stock:int):void
+ getId():int + setMin(min:int):void
+ getName():String + setMax(max:int):void
+ getPrice():double + setPrice(max:int):void
+ getStock():int + getId():int
+ getMin():int + getName():String
+ getMax():int + getPrice():double
+ getStock():int
+ getMin():int
+ getMax():int
+ addAssociatedPart(part:Part):void
+ deleteAssociatedPart(selectedAspart:Part):boolean
+ getAllAssociatedParts():ObservableList<Part>

InHouse Outsourced

- machineId : int - companyName : String

+ InHouse(id : int, name : String, + Outsourced(id : int, name : String,


price : double, stock : int, min : int, max : int, price : double, stock : int, min : int, max : int,
machineId:int) companyName:String)
+ setMachineId(machineId:int):void + setCompanyName(companyName:String):void
+ getMachineId():int + getCompanyName():String

You might also like