Class Part
java.lang.Object
com.xavierloeraflores.inventorymanagement.Part
- Direct Known Subclasses:
InHouse
,Outsourced
An abstract class representing parts
- Author:
- xavierloeraflores
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
id
private int id -
name
-
price
private double price -
stock
private int stock -
min
private int min -
max
private int max
-
-
Constructor Details
-
Part
-
-
Method Details
-
getId
public int getId()- Returns:
- the id
-
setId
public void setId(int id) - Parameters:
id
- the id to set
-
getName
- Returns:
- the name
-
setName
- Parameters:
name
- the name to set
-
getPrice
public double getPrice()- Returns:
- the price
-
setPrice
public void setPrice(double price) - Parameters:
price
- the price to set
-
getStock
public int getStock()- Returns:
- the stock
-
setStock
public void setStock(int stock) - Parameters:
stock
- the stock to set
-
getMin
public int getMin()- Returns:
- the min
-
setMin
public void setMin(int min) - Parameters:
min
- the min to set
-
getMax
public int getMax()- Returns:
- the max
-
setMax
public void setMax(int max) - Parameters:
max
- the max to set
-