Class SPCCommodity


  • public class SPCCommodity
    extends HibernateObject
    This class provides a wrapper to encapsulate a commodity or formula with additional information for use in an SPCRun
    Author:
    SGSystems
    • 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
      • 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.
    • Constructor Detail

      • SPCCommodity

        public SPCCommodity()
    • 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)
      • 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)