|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.quinncurtis.chart2djava.ChartObj
com.quinncurtis.spcchartjava.SPCProcessCapabilityRecord
public class SPCProcessCapabilityRecord
The record class for a calculated SPC statistic. It holds the calculated value type, value, description and historical data.
Field Summary | |
---|---|
static int |
SPC_CP_CALC
Constant value CP calculation. |
static int |
SPC_CPK_CALC
Constant value CPK calculation. |
static int |
SPC_CPL_CALC
Constant value CPL calculation. |
static int |
SPC_CPM_CALC
Constant value CPM calculation. |
static int |
SPC_CPU_CALC
Constant value CPU calculation. |
static int |
SPC_CUSTOM_PC_CALC
Constant value for a custom SPC calculation (unused). |
static int |
SPC_PP_CALC
Constant value for a sum SPC calculation. |
static int |
SPC_PPK_CALC
Constant value PPK calculation. |
static int |
SPC_PPL_CALC
Constant value PPL calculation. |
static int |
SPC_PPU_CALC
Constant value PPU calculation. |
Constructor Summary | |
---|---|
SPCProcessCapabilityRecord()
Constructor initializes a calculated value record. |
|
SPCProcessCapabilityRecord(SPCControlChartData processvar,
double lsl,
double usl,
int calctype,
int samplesize,
java.lang.String description)
Constructor initializes a calculated value record. |
Method Summary | |
---|---|
double |
calculateProcessCapabilityValue(double lsl,
double usl,
int calctype,
int samplesize)
Calculate the process capability value.. |
double[] |
calculateProcessCapabilityValues(double lsl,
double usl,
int samplesize)
Calculate the process capability value.. |
java.lang.Object |
clone()
Returns an object that is a clone of this object. |
void |
copy(SPCProcessCapabilityRecord source)
Copies the source object. |
int |
getCalculationType()
Get the calculation type for this calculation value record. |
double |
getCurrentValue()
Get the current calculation value for this record. |
double[] |
getCurrentValues()
Get the reference to the currentValue array. |
static java.lang.String[] |
getDefaultProcessCapabilityStrings()
Default descriptors for the process capability strings: "", "Cp", "Cpl", "Cpu","Cpk","Pp", "Pl","Pu","Ppk". |
double |
getLSLValue()
Get the LSL value for this record. |
double |
getUSLValue()
Get the USL value for this record. |
BoolArray |
getValidValueFlags()
Get the reference to the validValueFlags array. |
java.lang.String |
getValueDescription()
Get the description of calculation value record. |
boolean |
isValueValid(int index)
Checks to the validValueFlags to see if a value in the calculated historical data array, currentValues, is valid. |
void |
reset()
Reset the history buffer of the SPCProcessCapabilityRecord class. |
void |
setCalculationType(int value)
Setthe calculation type for this calculation value record. |
void |
setCurrentValue(double value)
Set the current calculation value for this record. |
void |
SetCurrentValues(double[] value)
Get the reference to the currentValue array. |
void |
setLSLValue(double value)
Get the LSL value for this record. |
double |
setProcessCapabilityValue(DoubleArray samples)
Calculate the process capability value. |
void |
setUSLValue(double value)
Get the USL value for this record. |
void |
setValueDescription(java.lang.String value)
Set the description of calculation value record. |
static java.util.Vector<SPCProcessCapabilityRecord> |
TypeSafeVectorCopy(java.util.Vector<SPCProcessCapabilityRecord> source)
Returns an object that is a typesafe copy of the source Vector |
Methods inherited from class com.quinncurtis.chart2djava.ChartObj |
---|
copy, errorCheck, getChartObjIDCntr, getChartObjType, getThisChartObjID, TypeSafeVectorCopy |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int SPC_CP_CALC
public static final int SPC_CPK_CALC
public static final int SPC_CPL_CALC
public static final int SPC_CPM_CALC
public static final int SPC_CPU_CALC
public static final int SPC_CUSTOM_PC_CALC
public static final int SPC_PP_CALC
public static final int SPC_PPK_CALC
public static final int SPC_PPL_CALC
public static final int SPC_PPU_CALC
Constructor Detail |
---|
public SPCProcessCapabilityRecord()
public SPCProcessCapabilityRecord(SPCControlChartData processvar, double lsl, double usl, int calctype, int samplesize, java.lang.String description)
processvar
- The underlying SPCControlChartData object.lsl
- The low specification limit used in the process capability calculations.usl
- The upper specification limit used in the process capability calculations.calctype
- The calculation type for this record. Use one of the SPCProcessCapabilityRecrd
calculation type constants.samplesize
- The sub-group sample size used in the process capability calculations.description
- The description for this record.Method Detail |
---|
public double calculateProcessCapabilityValue(double lsl, double usl, int calctype, int samplesize)
lsl
- The low specification limit used in the process capability calculations.usl
- The upper specification limit used in the process capability calculations.calctype
- The calculation type for this record. Use one of the SPCProcessCapabilityRecrd
calculation type constants.samplesize
- The sub-group sample size used in the process capability calculations.
public double[] calculateProcessCapabilityValues(double lsl, double usl, int samplesize)
lsl
- The low specification limit used in the process capability calculations.usl
- The upper specification limit used in the process capability calculations.samplesize
- The sub-group sample size used in the process capability calculations.
public java.lang.Object clone()
clone
in class java.lang.Object
public void copy(SPCProcessCapabilityRecord source)
source
- The source object.public int getCalculationType()
public double getCurrentValue()
public double[] getCurrentValues()
public static java.lang.String[] getDefaultProcessCapabilityStrings()
public double getLSLValue()
public double getUSLValue()
public BoolArray getValidValueFlags()
public java.lang.String getValueDescription()
public boolean isValueValid(int index)
index
- The index of the data value to check.
public void reset()
public void setCalculationType(int value)
public void setCurrentValue(double value)
public void SetCurrentValues(double[] value)
public void setLSLValue(double value)
public double setProcessCapabilityValue(DoubleArray samples)
public void setUSLValue(double value)
public void setValueDescription(java.lang.String value)
public static java.util.Vector<SPCProcessCapabilityRecord> TypeSafeVectorCopy(java.util.Vector<SPCProcessCapabilityRecord> source)
source
- source object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |