Package com.sgs.common.database
Class SPCCommodity
- java.lang.Object
-
- com.sgs.common.database.HibernateObject
-
- com.sgs.common.database.SPCCommodity
-
public class SPCCommodity extends HibernateObject
This class provides a wrapper to encapsulate a commodity or formula with additional information for use in anSPCRun- Author:
- SGSystems
-
-
Field Summary
Fields Modifier and Type Field Description CommoditycommodityThe commodity/formula to be used in SPCjava.util.DatedeletedA deletion timestampjava.lang.StringinstructionsAdditional instructions for SPCing this itemLocationlocationThe production location that the commodity should be SPC'd atjava.lang.DoublelowerLowerTolThe lower-lower bounds for the SPC weighingjava.lang.DoublelowerTolThe lower bounds for the SPC weighingjava.lang.IntegersampleFrequencyThe number of seconds the system waits before prompting the operator to take samplesjava.lang.IntegersampleSizeThe target sample size for a runjava.lang.DoublesdLimitThe standard deviation limit before a FAIL is postedjava.lang.DoubletareThe tare to be applied when performing SPCjava.lang.DoubletargetThe target weight for the SPC weighingWeightUnitunitsThe units relating totargetjava.lang.DoubleupperTolThe upper bounds for the SPC weighingjava.lang.DoubleupperUpperTolThe upper-upper bounds for the SPC weighingApprovalTemplateworkflowTemplateForBatchSignOffWhen set, this is the workflow template that it uses to signoff the SPC Run.-
Fields inherited from class com.sgs.common.database.HibernateObject
ID
-
-
Constructor Summary
Constructors Constructor Description SPCCommodity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommoditygetCommodity()java.util.DategetDeleted()java.lang.StringgetInstructions()LocationgetLocation()java.lang.DoublegetLowerLowerTol()java.lang.DoublegetLowerTol()java.lang.IntegergetSampleFrequency()java.lang.IntegergetSampleSize()java.lang.DoublegetSdLimit()java.lang.DoublegetTare()java.lang.DoublegetTarget()WeightUnitgetUnits()java.lang.DoublegetUpperTol()java.lang.DoublegetUpperUpperTol()ApprovalTemplategetWorkflowTemplateForBatchSignOff()voidsetCommodity(Commodity commodity)voidsetDeleted(java.util.Date deleted)voidsetInstructions(java.lang.String instructions)voidsetLocation(Location location)voidsetLowerLowerTol(java.lang.Double lowerLowerTol)voidsetLowerTol(java.lang.Double lowerTol)voidsetSampleFrequency(java.lang.Integer sampleFrequency)voidsetSampleSize(java.lang.Integer sampleSize)voidsetSdLimit(java.lang.Double sdLimit)voidsetTare(java.lang.Double tare)voidsetTarget(java.lang.Double target)voidsetUnits(WeightUnit units)voidsetUpperTol(java.lang.Double upperTol)voidsetUpperUpperTol(java.lang.Double upperUpperTol)voidsetWorkflowTemplateForBatchSignOff(ApprovalTemplate workflowTemplateForBatchSignOff)-
Methods inherited from class com.sgs.common.database.HibernateObject
getExported, getID, isDontSave, isModified, setDontSave, setExported, setID, setModified
-
-
-
-
Field Detail
-
commodity
public Commodity commodity
The commodity/formula to be used in SPC
-
target
public java.lang.Double target
The target weight for the SPC weighing
-
lowerTol
public java.lang.Double lowerTol
The lower bounds for the SPC weighing
-
upperTol
public java.lang.Double upperTol
The upper bounds for the SPC weighing
-
lowerLowerTol
public java.lang.Double lowerLowerTol
The lower-lower bounds for the SPC weighing
-
upperUpperTol
public java.lang.Double upperUpperTol
The upper-upper bounds for the SPC weighing
-
deleted
public java.util.Date deleted
A deletion timestamp
-
tare
public java.lang.Double tare
The tare to be applied when performing SPC
-
location
public Location location
The production location that the commodity should be SPC'd at
-
sampleSize
public java.lang.Integer sampleSize
The target sample size for a run
-
sdLimit
public java.lang.Double sdLimit
The standard deviation limit before a FAIL is posted
-
units
public WeightUnit units
The units relating totarget
-
instructions
public java.lang.String instructions
Additional instructions for SPCing this item
-
sampleFrequency
public java.lang.Integer sampleFrequency
The number of seconds the system waits before prompting the operator to take samples
-
workflowTemplateForBatchSignOff
public ApprovalTemplate workflowTemplateForBatchSignOff
When set, this is the workflow template that it uses to signoff the SPC Run.
-
-
Method Detail
-
getCommodity
public Commodity getCommodity()
-
getTarget
public java.lang.Double getTarget()
-
getLowerTol
public java.lang.Double getLowerTol()
-
getUpperTol
public java.lang.Double getUpperTol()
-
getDeleted
public java.util.Date getDeleted()
-
setCommodity
public void setCommodity(Commodity commodity)
-
setTarget
public void setTarget(java.lang.Double target)
-
setLowerTol
public void setLowerTol(java.lang.Double lowerTol)
-
setUpperTol
public void setUpperTol(java.lang.Double upperTol)
-
setDeleted
public void setDeleted(java.util.Date deleted)
-
getTare
public java.lang.Double getTare()
-
setTare
public void setTare(java.lang.Double tare)
-
getLocation
public Location getLocation()
-
setLocation
public void setLocation(Location location)
-
getSampleSize
public java.lang.Integer getSampleSize()
-
setSampleSize
public void setSampleSize(java.lang.Integer sampleSize)
-
getSdLimit
public java.lang.Double getSdLimit()
-
setSdLimit
public void setSdLimit(java.lang.Double sdLimit)
-
getUnits
public WeightUnit getUnits()
-
setUnits
public void setUnits(WeightUnit units)
-
getInstructions
public java.lang.String getInstructions()
-
setInstructions
public void setInstructions(java.lang.String instructions)
-
getLowerLowerTol
public java.lang.Double getLowerLowerTol()
-
setLowerLowerTol
public void setLowerLowerTol(java.lang.Double lowerLowerTol)
-
getUpperUpperTol
public java.lang.Double getUpperUpperTol()
-
setUpperUpperTol
public void setUpperUpperTol(java.lang.Double upperUpperTol)
-
getSampleFrequency
public java.lang.Integer getSampleFrequency()
-
setSampleFrequency
public void setSampleFrequency(java.lang.Integer sampleFrequency)
-
getWorkflowTemplateForBatchSignOff
public ApprovalTemplate getWorkflowTemplateForBatchSignOff()
-
setWorkflowTemplateForBatchSignOff
public void setWorkflowTemplateForBatchSignOff(ApprovalTemplate workflowTemplateForBatchSignOff)
-
-