Package FLOTF

Class Part


  • public class Part
    extends java.lang.Object
    This class creates an NSN object type that holds index, part number, cage number, description, units of assembly, usable on code, and SMR code
    Author:
    Bernard Chan, Sonali Loomba
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javafx.beans.property.SimpleStringProperty cage
      Stores cage number of particular part
      private javafx.beans.property.SimpleStringProperty description
      Stores description of particular part
      private javafx.beans.property.SimpleStringProperty index
      Stores index of particular part
      private javafx.beans.property.SimpleStringProperty partNum
      Stores part number of particular part
      private javafx.beans.property.SimpleStringProperty smr
      Stores SMR code of particular part
      private javafx.beans.property.SimpleStringProperty units
      Stores units of assembly of particular part
      private javafx.beans.property.SimpleStringProperty usable
      Stores usable on code of particular part
    • Constructor Summary

      Constructors 
      Constructor Description
      Part​(java.lang.String index, java.lang.String partNum, java.lang.String cage, java.lang.String description, java.lang.String units, java.lang.String usable, java.lang.String smr)
      Part constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCage()
      Gets the cage number of particular Part object
      java.lang.String getDescription()
      Gets the description of particular Part object
      java.lang.String getIndex()
      Gets the index of particular Part object
      java.lang.String getPartNum()
      Gets the part number of particular Part object
      java.lang.String getSmr()
      Gets the SMR code of particular Part object
      java.lang.String getUnits()
      Gets the units of assembly of particular Part object
      java.lang.String getUsable()
      Gets the usable on code of particular Part object
      void setCage​(java.lang.String cage)
      Sets the cage number
      void setDescription​(java.lang.String description)
      Sets the description
      void setIndex​(java.lang.String index)
      Sets the index
      void setPartNum​(java.lang.String partNum)
      Sets the part number
      void setSmr​(java.lang.String smr)
      Sets the SMR code
      void setUnits​(java.lang.String units)
      Sets the units of assembly
      void setUsable​(java.lang.String usable)
      Sets the usable on code
      java.lang.String toString()
      Prints specified object's index
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • index

        private javafx.beans.property.SimpleStringProperty index
        Stores index of particular part
      • partNum

        private javafx.beans.property.SimpleStringProperty partNum
        Stores part number of particular part
      • cage

        private javafx.beans.property.SimpleStringProperty cage
        Stores cage number of particular part
      • description

        private javafx.beans.property.SimpleStringProperty description
        Stores description of particular part
      • units

        private javafx.beans.property.SimpleStringProperty units
        Stores units of assembly of particular part
      • usable

        private javafx.beans.property.SimpleStringProperty usable
        Stores usable on code of particular part
      • smr

        private javafx.beans.property.SimpleStringProperty smr
        Stores SMR code of particular part
    • Constructor Detail

      • Part

        public Part​(java.lang.String index,
                    java.lang.String partNum,
                    java.lang.String cage,
                    java.lang.String description,
                    java.lang.String units,
                    java.lang.String usable,
                    java.lang.String smr)
        Part constructor
        Parameters:
        index - index of particular part
        partNum - part number of particular part
        cage - cage number of particular part
        description - description of particular part
        units - units of assembly of particular part
        usable - usable on code of particular part
        smr - SMR code of particular part
    • Method Detail

      • getIndex

        public java.lang.String getIndex()
        Gets the index of particular Part object
        Returns:
        a String specifying the index
      • getPartNum

        public java.lang.String getPartNum()
        Gets the part number of particular Part object
        Returns:
        a String specifying the part number
      • getCage

        public java.lang.String getCage()
        Gets the cage number of particular Part object
        Returns:
        a String specifying the cage number
      • getDescription

        public java.lang.String getDescription()
        Gets the description of particular Part object
        Returns:
        a String specifying the description
      • getUnits

        public java.lang.String getUnits()
        Gets the units of assembly of particular Part object
        Returns:
        a String specifying the units of assembly
      • getUsable

        public java.lang.String getUsable()
        Gets the usable on code of particular Part object
        Returns:
        a String specifying the usable on code
      • getSmr

        public java.lang.String getSmr()
        Gets the SMR code of particular Part object
        Returns:
        a String specifying the SMR code
      • setIndex

        public void setIndex​(java.lang.String index)
        Sets the index
        Parameters:
        index - the Part's index
      • setPartNum

        public void setPartNum​(java.lang.String partNum)
        Sets the part number
        Parameters:
        partNum - the Part's part number
      • setCage

        public void setCage​(java.lang.String cage)
        Sets the cage number
        Parameters:
        cage - the Part's cage number
      • setDescription

        public void setDescription​(java.lang.String description)
        Sets the description
        Parameters:
        description - the Part's description
      • setUnits

        public void setUnits​(java.lang.String units)
        Sets the units of assembly
        Parameters:
        units - the Part's units of assembly
      • setUsable

        public void setUsable​(java.lang.String usable)
        Sets the usable on code
        Parameters:
        usable - the Part's usable on code
      • setSmr

        public void setSmr​(java.lang.String smr)
        Sets the SMR code
        Parameters:
        smr - the Part's SMR Code
      • toString

        public java.lang.String toString()
        Prints specified object's index
        Overrides:
        toString in class java.lang.Object
        Returns:
        a String specifying the index