Package model
Class Part
- java.lang.Object
-
- model.Part
-
- Direct Known Subclasses:
InHouse
,Outsourced
public abstract class Part extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Part(int id, java.lang.String name, double price, int stock, int min, int max)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getId()
int
getMax()
int
getMin()
java.lang.String
getName()
double
getPrice()
int
getStock()
void
setId(int id)
void
setMax(int max)
void
setMin(int min)
void
setName(java.lang.String name)
void
setPrice(double price)
void
setStock(int stock)
-
-
-
Method Detail
-
getId
public int getId()
- Returns:
- the id
-
setId
public void setId(int id)
- Parameters:
id
- the id to set
-
getName
public java.lang.String getName()
- Returns:
- the name
-
setName
public void setName(java.lang.String name)
- 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
-
-