Package FLOTF
Class Part
- java.lang.Object
-
- FLOTF.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 partprivate javafx.beans.property.SimpleStringProperty
description
Stores description of particular partprivate javafx.beans.property.SimpleStringProperty
index
Stores index of particular partprivate javafx.beans.property.SimpleStringProperty
partNum
Stores part number of particular partprivate javafx.beans.property.SimpleStringProperty
smr
Stores SMR code of particular partprivate javafx.beans.property.SimpleStringProperty
units
Stores units of assembly of particular partprivate 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 objectjava.lang.String
getDescription()
Gets the description of particular Part objectjava.lang.String
getIndex()
Gets the index of particular Part objectjava.lang.String
getPartNum()
Gets the part number of particular Part objectjava.lang.String
getSmr()
Gets the SMR code of particular Part objectjava.lang.String
getUnits()
Gets the units of assembly of particular Part objectjava.lang.String
getUsable()
Gets the usable on code of particular Part objectvoid
setCage(java.lang.String cage)
Sets the cage numbervoid
setDescription(java.lang.String description)
Sets the descriptionvoid
setIndex(java.lang.String index)
Sets the indexvoid
setPartNum(java.lang.String partNum)
Sets the part numbervoid
setSmr(java.lang.String smr)
Sets the SMR codevoid
setUnits(java.lang.String units)
Sets the units of assemblyvoid
setUsable(java.lang.String usable)
Sets the usable on codejava.lang.String
toString()
Prints specified object's index
-
-
-
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 partpartNum
- part number of particular partcage
- cage number of particular partdescription
- description of particular partunits
- units of assembly of particular partusable
- usable on code of particular partsmr
- 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 classjava.lang.Object
- Returns:
- a String specifying the index
-
-