Package model

Class 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)  
    • Constructor Detail

      • Part

        public Part​(int id,
                    java.lang.String name,
                    double price,
                    int stock,
                    int min,
                    int max)
    • 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