Class Outsourced
java.lang.Object
com.xavierloeraflores.inventorymanagement.Part
com.xavierloeraflores.inventorymanagement.Outsourced
A class representing outsourced parts in
which inherits from the part class.
- Author:
- xavierloeraflores
-
Field Summary
Modifier and TypeFieldDescriptionprivate String
The [String] value companyName of the outsourced company than can develop this part. -
Constructor Summary
ConstructorDescriptionOutsourced
(int id, String name, double price, int stock, int min, int max, String companyName) 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.companyName to companyName -
Method Summary
Modifier and TypeMethodDescriptionReturns the companyName of the outsourced company than can develop this part.void
setCompanyName
(String companyName) Sets the companyName of the outsourced company than can develop this part.
-
Field Details
-
companyName
The [String] value companyName of the outsourced company than can develop this part.
-
-
Constructor Details
-
Outsourced
public Outsourced(int id, String name, double price, int stock, int min, int max, String companyName) 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.companyName to companyName- 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.companyName
- The [String] value companyName of the outsourced company than can develop this part.
-
-
Method Details
-
getCompanyName
Returns the companyName of the outsourced company than can develop this part.- Returns:
- [String] value companyName of this outsourced part.
-
setCompanyName
Sets the companyName of the outsourced company than can develop this part.- Parameters:
companyName
- The [String] value companyName of this outsourced part.
-