java.lang.Object
com.xavierloeraflores.inventorymanagement.Part
com.xavierloeraflores.inventorymanagement.InHouse

public class InHouse extends Part
A class representing in house parts in which inherits from the part class.
Author:
xavierloeraflores
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private int
    The [int] value machineId of the machine than can develop this part in house.
  • Constructor Summary

    Constructors
    Constructor
    Description
    InHouse(int id, String name, double price, int stock, int min, int max, int machineId)
    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
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the id number of the product.
    void
    setMachineId(int machineId)
    Sets the machineId of the machine than can develop this part in house.

    Methods inherited from class com.xavierloeraflores.inventorymanagement.Part

    getId, getMax, getMin, getName, getPrice, getStock, setId, setMax, setMin, setName, setPrice, setStock

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • machineId

      private int machineId
      The [int] value machineId of the machine than can develop this part in house.
  • Constructor Details

    • InHouse

      public InHouse(int id, String name, double price, int stock, int min, int max, int machineId)
      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.