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 Commodity
commodity
The commodity/formula to be used in SPCjava.util.Date
deleted
A deletion timestampjava.lang.String
instructions
Additional instructions for SPCing this itemLocation
location
The production location that the commodity should be SPC'd atjava.lang.Double
lowerLowerTol
The lower-lower bounds for the SPC weighingjava.lang.Double
lowerTol
The lower bounds for the SPC weighingjava.lang.Integer
sampleFrequency
The number of seconds the system waits before prompting the operator to take samplesjava.lang.Integer
sampleSize
The target sample size for a runjava.lang.Double
sdLimit
The standard deviation limit before a FAIL is postedjava.lang.Double
tare
The tare to be applied when performing SPCjava.lang.Double
target
The target weight for the SPC weighingWeightUnit
units
The units relating totarget
java.lang.Double
upperTol
The upper bounds for the SPC weighingjava.lang.Double
upperUpperTol
The upper-upper bounds for the SPC weighingApprovalTemplate
workflowTemplateForBatchSignOff
When 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 Commodity
getCommodity()
java.util.Date
getDeleted()
java.lang.String
getInstructions()
Location
getLocation()
java.lang.Double
getLowerLowerTol()
java.lang.Double
getLowerTol()
java.lang.Integer
getSampleFrequency()
java.lang.Integer
getSampleSize()
java.lang.Double
getSdLimit()
java.lang.Double
getTare()
java.lang.Double
getTarget()
WeightUnit
getUnits()
java.lang.Double
getUpperTol()
java.lang.Double
getUpperUpperTol()
ApprovalTemplate
getWorkflowTemplateForBatchSignOff()
void
setCommodity(Commodity commodity)
void
setDeleted(java.util.Date deleted)
void
setInstructions(java.lang.String instructions)
void
setLocation(Location location)
void
setLowerLowerTol(java.lang.Double lowerLowerTol)
void
setLowerTol(java.lang.Double lowerTol)
void
setSampleFrequency(java.lang.Integer sampleFrequency)
void
setSampleSize(java.lang.Integer sampleSize)
void
setSdLimit(java.lang.Double sdLimit)
void
setTare(java.lang.Double tare)
void
setTarget(java.lang.Double target)
void
setUnits(WeightUnit units)
void
setUpperTol(java.lang.Double upperTol)
void
setUpperUpperTol(java.lang.Double upperUpperTol)
void
setWorkflowTemplateForBatchSignOff(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)
-
-