Class InHouse
java.lang.Object
com.xavierloeraflores.inventorymanagement.Part
com.xavierloeraflores.inventorymanagement.InHouse
A class representing in house parts in
which inherits from the part class.
- Author:
- xavierloeraflores
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
The [int] value machineId of the machine than can develop this part in house. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the id number of the product.void
setMachineId
(int machineId) Sets the machineId of the machine than can develop this part in house.
-
Field Details
-
machineId
private int machineIdThe [int] value machineId of the machine than can develop this part in house.
-
-
Constructor Details
-
InHouse
Constructor initializing this.id to id, this.name to name, this.price to price, this.stock to stock, this.min to min, this.max to max, this.machineId to machineId- Parameters:
id
- The [int] value id identifying this part.name
- The [String] value name of this part.price
- The [double] value name of this part.stock
- The [int] value stock representing the total stock left of this part.min
- The [int] value min representing the minimum order quantity of this part.max
- The [int] value max representing the maximum order quantity of this part.machineId
- The [int] value machineId of the machine than can develop this part in house.
-
-
Method Details
-
getMachineId
public int getMachineId()Returns the id number of the product.- Returns:
- [int] value machineId of the machine that can develop this part.
-
setMachineId
public void setMachineId(int machineId) Sets the machineId of the machine than can develop this part in house.- Parameters:
machineId
- The [int] value machineId of the machine than can develop this part in house.
-