|
|||||||||
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.SPCControlChartData
public class SPCControlChartData
SPCProcessCapabilityRecord This class holds the data that is plotted in the SPC chart. It holds the header information used to customize the chart table, the raw sample data used to prepare the chart, the calculated chart values used in the chart, and the SPC control limits.
Field Summary | |
---|---|
static int |
CUSTOM_ATTRIBUTE_CONTROL_CHART
Chart type constant: Custom SPC Attribute Control Chart (unused) |
static int |
CUSTOM_VARIABLE_CONTROL_CHART
Chart type constant: Custom SPC Variable Control Chart (not used) |
static int |
DATALOG_FILE_ALL
Datalog flag specifying that all available items should be logged to the file. |
static int |
DATALOG_FILE_BATCH_NUMBER
Datalog flag specifying that the batch number should be logged to the file. |
static int |
DATALOG_FILE_CALCULATED_VALUES
Datalog flag specifying that the calculated values should be logged to the file. |
static int |
DATALOG_FILE_COLUMN_HEADS
Datalog flag specifying that the column heads should be logged to the file. |
static int |
DATALOG_FILE_CONTROL_LIMIT_VALUES
Datalog flag specifying that the control limit values should be logged to the file. |
static int |
DATALOG_FILE_NOTES
Datalog flag specifying that the notes should be logged to the file. |
static int |
DATALOG_FILE_PROCESS_CAPABILITY_VALUES
Datalog flag specifying that the control limit values should be logged to the file. |
static int |
DATALOG_FILE_SAMPLED_VALUES
Datalog flag specifying that the sampled values should be logged to the file. |
static int |
DATALOG_FILE_TIME_STAMP
Datalog flag specifying that the time stamp should be logged to the file. |
static int |
DATALOG_USER_STRING
Datalog flag specifying that the file prefix row ist NOT to be included. |
static int |
EWMA_CHART
Chart type constant: Exponential weighted moving average chart |
static int |
FRACTION_DEFECTIVE_PARTS_CHART
Chart type constant: Fraction Defective Parts (p-chart) Control Chart |
static int |
FRACTION_DEFECTIVE_PARTS_CHART_VSS
Chart type constant: Fraction Defective Parts (p-chart) Control Chart variable sample size |
static int |
HEADER_STRINGS_LEVEL0
SPC Chart header level constant: display no header strings. |
static int |
HEADER_STRINGS_LEVEL1
SPC Chart header level constant: display minimal header strings, title, partNumber, chartNumber, dateString |
static int |
HEADER_STRINGS_LEVEL2
SPC Chart header level constant: display most header strings, title, partNumber, chartNumber, partName, operation, operator, machine, dateString |
static int |
HEADER_STRINGS_LEVEL3
SPC Chart header level constant: display all header strings, title, partNumber, chartNumber, partName, operation, operator, machine, specification limits, gage, unitofMeasure, zeroEqulas and dateString |
static int |
INDIVIDUAL_RANGE_CHART
Chart type constant: Individual Range (Individual X) SPC Variable Control Chart |
static int |
MA_CHART
Chart type constant: moving average chart |
static int |
MEAN_RANGE_CHART
Chart type constant: Mean and Range (X-Bar R) SPC Variable Control Chart ( |
static int |
MEAN_SIGMA_CHART
Chart type constant: Mean and Sigma (X-Bar Sigma) SPC Variable Control Chart |
static int |
MEAN_SIGMA_CHART_VSS
Chart type constant: Mean and Sigma (X-Bar Sigma) SPC Variable Control Chart |
static int |
MEAN_VARIANCE_CHART
Chart type constant: Mean and Variance (X-Bar Variance) SPC Variable Control Chart |
static int |
MEDIAN_RANGE_CHART
Chart type constant: Median and Range (Median-Range) SPC Variable Control Chart |
static int |
NO_DATALOG_FILE_PREFIX
Datalog flag specifying that the file prefix row ist NOT to be included. |
static int |
NUMBER_DEFECTIVE_PARTS_CHART
Chart type constant: Number Defective Parts (np-chart) Control Chart |
static int |
NUMBER_DEFECTS_CHART
Chart type constant: Number Defects (c-chart) Control Chart |
static int |
NUMBER_DEFECTS_PERUNIT_CHART
Chart type constant: Number Defects per Unit (u-chart) Control Chart |
static int |
NUMBER_DEFECTS_PERUNIT_CHART_VSS
Chart type constant: Number Defects per Unit (u-chart) Control Chart variable sample size |
static int |
PERCENT_DEFECTIVE_PARTS_CHART
Chart type constant: Percent Defective Parts (p-chart) Control Chart |
static int |
PERCENT_DEFECTIVE_PARTS_CHART_VSS
Chart type constant: Percentage Defective Parts (p-chart) Control Chart variable sample size |
static int |
REPORT_ALL_ALARMS
Report all alarms. |
static int |
REPORT_FIRST_ALARM
Break alarm checking after firsrt alarm encountered. |
static int |
SPC_PRIMARY_CONTROL_TARGET
Index of primary chart target control limit in controlLimitData array. |
static int |
SPC_PRIMARY_LOWER_CONTROL_LIMIT
Index of primary chart lower control limit in controlLimitData array. |
static int |
SPC_PRIMARY_UPPER_CONTROL_LIMIT
Index of primary chart upper control limit in controlLimitData array. |
static int |
SPC_SECONDARY_CONTROL_TARGET
Index of secondary chart target control limit in controlLimitData array. |
static int |
SPC_SECONDARY_LOWER_CONTROL_LIMIT
Index of secondary chart lower control limit in controlLimitData array. |
static int |
SPC_SECONDARY_UPPER_CONTROL_LIMIT
Index of secondary chart upper control limit in controlLimitData array. |
static int |
TABCUSUM_CHART
Chart type constant: Tabular Cusum chart |
Constructor Summary | |
---|---|
SPCControlChartData()
Default constructor for an SPC Control chart. |
|
SPCControlChartData(int charttype,
int numsamplecategories,
int numrecordsperchart,
double timeincrementminutes)
Constructor for a Variable Control chart SPCControlChartData class. |
|
SPCControlChartData(int charttype,
int numsamplecategories,
int numrecordsperchart,
int samplesize,
double timeincrementminutes)
Constructor for an Attribute Control chart SPCControlChartData class. |
|
SPCControlChartData(int charttype,
int numsamplecategories,
int numrecordsperchart,
StringArray samplerowheadstrings,
int samplesize,
double timeincrementminutes)
Constructor for an Attribute Control chart SPCControlChartData class. |
Method Summary | |
---|---|
void |
addAlarmStateEventListener(SPCAlarmEventListener listener)
Add an alarm state event listener to this process variable. |
void |
addAlarmTransitionEventListener(SPCAlarmEventListener listener)
Add an alarm transition event listener to this process variable. |
int |
addNewSampleRecord(DoubleArray samples)
Add a new sample record to a batch-based SPC chart. |
int |
addNewSampleRecord(DoubleArray samples,
java.lang.String notes)
Add a new sample record, with notes, to a batch-based SPC chart. |
int |
addNewSampleRecord(double timestamp,
DoubleArray samples)
Add a new sample record, with notes, to a batch-based SPC chart. |
int |
addNewSampleRecord(double timestamp,
DoubleArray samples,
DoubleArray controllimits)
Add a new sample record to a batch-based SPC chart that plots variable control limits. |
int |
addNewSampleRecord(double timestamp,
DoubleArray samples,
DoubleArray controllimits,
java.lang.String notes)
Add a new sample record, with notes, to a batch-based SPC chart that plots variable control limits. |
int |
addNewSampleRecord(double timestamp,
DoubleArray samples,
java.lang.String notes)
Add a new sample record, with notes, to a batch-based SPC chart. |
int |
addNewSampleRecord(double x,
java.util.GregorianCalendar timestamp,
DoubleArray samples)
Add a new sample record to a numeric-based SPC chart. |
int |
addNewSampleRecord(double x,
java.util.GregorianCalendar timestamp,
DoubleArray samples,
DoubleArray controllimits)
Add a new sample record to a numeric-based SPC chart that plots variable control limits. |
int |
addNewSampleRecord(double x,
java.util.GregorianCalendar timestamp,
DoubleArray samples,
DoubleArray controllimits,
java.lang.String notes)
Add a new sample record, with notes, to a numeric-based SPC chart that plots variable control limits. |
int |
addNewSampleRecord(double x,
java.util.GregorianCalendar timestamp,
DoubleArray samples,
java.lang.String notes)
Add a new sample record, with notes, to a numeric-based SPC chart . |
int |
addNewSampleRecord(java.util.GregorianCalendar timestamp,
DoubleArray samples)
Add a new sample record to a time-based SPC chart. |
int |
addNewSampleRecord(java.util.GregorianCalendar timestamp,
DoubleArray samples,
DoubleArray controllimits)
Add a new sample record to a time-based SPC chart that plots variable control limits. |
int |
addNewSampleRecord(java.util.GregorianCalendar timestamp,
DoubleArray samples,
DoubleArray controllimits,
java.lang.String notes)
Add a new sample record with notes to a time-based SPC chart that plots variable control limits. |
int |
addNewSampleRecord(java.util.GregorianCalendar timestamp,
DoubleArray samples,
java.lang.String notes)
Add a new sample record with notes to a time-based SPC chart. |
void |
addProcessCapabilityValue(int pcindex)
If set true enables the process capability value |
int |
appendCurrentRecordValuesToDataLog(CSV csv,
java.lang.String filename)
This methods will create a text file and append the current SPC data record to that file in a CSV (Comma Separated Value) format. |
void |
appendNotesString(int index,
java.lang.String notes,
boolean after)
Append the specified string to the current the notes string for the specified record record. |
void |
appendNotesString(java.lang.String notes,
boolean after)
Append the specified string to the current the notes string for the current record. |
boolean |
assumeTrainingMode()
If all alarm limit values are 0.0, assume alarms have not been set, therefore training mode. |
static int |
calcRangeBasedDecimalPos(double range)
Calculate the decimal precision used to display calculated values in the data table. |
void |
calculateControlLimits(DoubleArray controllimits)
Calculate the control limits |
java.lang.Object |
clone()
Returns an object that is a clone of this object. |
boolean |
controlLimitInitialized(int item)
Returns true if the control limit record at the index is initiated. |
void |
copy(SPCControlChartData source)
Copies the source object. |
int |
dataLogFileOpenForWrite()
This methods will create a unique text file with a name defaultDataLogFilenameRoot + Month + Day + Year + hour + Minute + second, and output the SPC chart data to that file in a CSV (Comma Separated Value) format. |
int |
dataLogFileOpenForWrite(CSV csv,
java.lang.String filename,
int datalogflags)
This methods will create a text file and output the SPC chart data to that file in a CSV (Comma Separated Value) format. |
int |
dataLogFileOpenForWrite(CSV csv,
java.lang.String filename,
int datalogflags,
java.lang.String userstring)
This methods will create a text file and output the SPC chart data to that file in a CSV (Comma Separated Value) format. |
int |
dataLogFileOpenForWrite(java.lang.String filename)
This methods will create a text file and output the SPC chart data to that file in a CSV (Comma Separated Value) format. |
int |
dataLogFileOpenForWrite(java.lang.String filename,
int datalogflags)
This methods will create a text file and output the SPC chart data to that file in a CSV (Comma Separated Value) format. |
int |
dataLogFileOpenForWrite(java.lang.String filename,
int datalogflags,
java.lang.String userstring)
This methods will create a text file and output the SPC chart data to that file in a CSV (Comma Separated Value) format. |
void |
excludeRecordFromControlLimitCalculations(int item,
boolean exclude)
Exclude the specified record from the SOC control limit calculations. |
int |
getAlarmReportMode()
Specifies whether only first alarm reported, or all alarms. |
boolean |
getAlarmStateEventEnable()
Set to True to signify that any alarm should invoke the AlarmStateEventHandler. |
java.util.Vector<SPCAlarmEventListener> |
getAlarmStateEventListeners()
Get the alarm state event listener vector. |
java.lang.String |
getAlarmStatusValueRowHeader()
The data table time value row header. |
java.lang.String |
getAlarmTimeFormatString()
Get the TimeFormater string used to format time values for alarm reporting. |
boolean |
getAlarmTransitionEventEnable()
Set to True to signify that any change in an alarm state should invoke the AlarmTransitionEventHandler. |
java.util.Vector<SPCAlarmEventListener> |
getAlarmTransitionEventListeners()
Get the alarm transition event listener vector. |
boolean |
getAutoLogAlarmsAsNotes()
Get true to automatically log alarm conditions to the samples intervals notes object. |
static java.lang.String |
getBatchColumnHeadString()
Default string used as the batch number column head in the log file. |
double |
getBatchNumberValue(int col)
Get the group number value at the specified index. |
double |
getCalculatedValue(int row,
int column)
Get a calcualted value at a specific row (index) and column (time). |
SPCCalculatedValueRecord |
getCalculatedValueRecord(int item)
Get the calculated value record at the specified index. |
java.lang.String |
getChartNumber()
Get data table chart number string. |
java.lang.String |
getChartNumberHeader()
Get the header for the chartNumber field. |
double |
getControlLimit(int limittype)
Get the value of a specific SPC chart limit. |
SPCControlLimitRecord |
getControlLimitRecord(int item)
Get the control limit record at the specified index. |
java.lang.String |
getControlLimitString(int limittype)
Get the text for a specific SPC chart limit. |
java.lang.String |
getControlLimitText(int item)
Get the control limit text at the specified index. |
double |
getControlLimitValue(int row)
Get a control limit value (for charts with variable control limits) at a specific row (index) and column (time). |
double |
getControlLimitValue(int row,
int column)
Get a control limit value (for charts with variable control limits) at a specific row (index) and column (time). |
int |
getCurrentNumberRecords()
Get the current number of records for the chart. |
double |
getCusumHValue()
Get the cuSum H value |
double |
getCusumKValue()
Get the cuSum K value |
boolean |
getDatalLogEnable()
Returns true if data logging enabled. |
CSV |
getDataLogCSV()
The CSV (Comma Separated Value) specifyier for the logging data SPC data to a file. |
java.lang.String |
getDataLogFilename()
The string used as the file name for data logging. |
int |
getDataLogFlags()
Get the flags that control what items are logged to the data log file. |
java.lang.String |
getDataLogUserString()
The dataLogUserString is output as the second line in a datalog file, if the DATALOG_USER_STRING flag is set in dataLogFlags. |
java.lang.String |
getDateHeader()
Get the header for the dateString field. |
java.lang.String |
getDateString()
Get data table date string. |
static java.lang.String |
getDefaultAbsRangeString()
Default string used to the y-axis of secondary chart of I-R charts. |
static java.lang.String |
getDefaultDataLogFilenameRoot()
Default string used as the default file name for data logging. |
static java.lang.String |
getDefaultDefectRowHeaderPrefix()
Get the default symbol used for the row headers of the sample data items. |
static java.lang.String |
getDefaultHighAlarmMessageString()
Default string used as the high alarm message for a low control limit. |
static java.lang.String |
getDefaultLowAlarmMessageString()
Default string used to the label the target lower control limit line of the chart. |
static java.lang.String |
getDefaultLowControlLimitString()
Default string used to the label the target low control limit line of the chart. |
static java.lang.String |
getDefaultMeanString()
Default string used to title the y-axis of mean graphs. |
static java.lang.String |
getDefaultMedianString()
Default string used to title the y-axis of median graphs. |
static java.lang.String |
getDefaultRangeString()
Default string used to title the y-axis of range graphs. |
static java.lang.String |
getDefaultSampleRowHeaderPrefix()
Get the default symbol used for the row headers of the sample data items. |
static java.lang.String |
getDefaultSampleValueString()
Default string used to the y-axis of primary chart of I-R charts. |
static java.lang.String |
getDefaultSigmaString()
Default string used to title the y-axis of sigma graphs. |
static java.lang.String |
getDefaultSumString()
Default string used to title the sum table row. |
static java.lang.String |
getDefaultTargetString()
Default string used to the label the target control limit line of the chart. |
static java.lang.String |
getDefaultUpperControlLimitString()
Default string used to the label the target upper control limit line of the chart. |
static java.lang.String |
getDefaultVarianceString()
Default string used to title the y-axis of variance graphs. |
static java.lang.String |
getDefaultXBarString()
Default string used to title primary chart. |
static java.lang.String |
getDefaultXString()
Default string used to the primary chart of I-R charts. |
int |
getDefectiveDecimalPrecision()
Get the default value to use for the decimal precision used to display defective item counts, -1 = auto. |
boolean |
getEnableProcessCapabilityValue(int pcindex)
Get enable of process capability value |
double |
getEWMA_Lambda()
Get the lambda value for EWMA calculations. |
double |
getEWMA_StartingValue()
Get the lambda value for EWMA calculations. |
boolean |
getEWMA_UseSSLimits()
Get EWMA steady-state limits |
java.lang.String |
getGage()
Get data table gage string. |
java.lang.String |
getGageHeader()
Get the header for the gage field. |
int |
getMA_w()
Get the MA length value for MA calculations. |
java.lang.String |
getMachine()
Get data table machine string. |
java.lang.String |
getMachineHeader()
Get the header for the machine field. |
static java.lang.String |
getNotesColumString()
Default string used as the notes column head in the log file. |
java.lang.String |
getNotesHeader()
Get the data table notes header string. |
java.lang.String |
getNotesMessage()
Get data table notes message string. |
java.lang.String |
getNotesString(int col)
Get the notes string at the specified index. |
NotesToolTip |
getNotesToolTips()
Get the notes tool tip. |
double |
getNumberOfSamplesPerSubgroup(int col)
Get the number of samples per subgroup value at the specified index. |
java.lang.String |
getNumberSamplesValueRowHeader()
Get the data table number of samples row header. |
int |
getNumCalculatedValues()
Get number of calculated values for each record in the chart. |
int |
getNumProcessCapabilityValues()
Get number of process capability values for each record in the chart. |
int |
getNumRecordsPerChart()
Get the maximum number of records displayable at one time in the chart. |
int |
getNumSampleCategories()
Get the number of categories in an Attribute Control chart. |
java.lang.String |
getOperation()
Get data table operation string. |
java.lang.String |
getOperationHeader()
Get the header for the operation field. |
java.lang.String |
getOperatorHeader()
Get the header for the theOperator field. |
java.lang.String |
getPartName()
Get data table part name string. |
java.lang.String |
getPartNameHeader()
Get the header for the partName field. |
java.lang.String |
getPartNumber()
Get data table part number string. |
java.lang.String |
getPartNumberHeader()
Get the header for the partNumber field. |
int |
getPrimaryCalculatedVariableIndex()
Get index in the calculatedValues array for the primary calculated value data. |
void |
getPrimaryControlLimits(int primaryindex,
int secondaryindex,
double sigmalevel,
double[] target,
double[] lcl,
double[] ucl)
Using the current sampled data values, high, target and low control limits are calculated for the primary chart using an algorithim appropriate to the SPC chart type. |
double |
getProcessCapabilityLSLValue()
Get the LSL value for this record. |
SPCProcessCapabilityRecord |
getProcessCapabilityRecord(int item)
Get the process capability value record at the specified index. |
double |
getProcessCapabilityUSLValue()
Get the USL value for this record. |
double |
getProcessCapabilityValue(int row,
int column)
Get a process capability value at a specific row (index) and column (time). |
double |
getProcessMean()
Get the process mean |
boolean |
getProcessMeanOverride()
Returns the the processMeanOverride |
double |
getProcessSigma()
Get the process sigma |
boolean |
getProcessSigmaOverride()
Returns the processSigmaOverride |
double |
getSampledValue(int row,
int col)
Get a sampled value at a specific row (index) and column (time). |
java.lang.String |
getSampleRowHeaderString(int item)
Get data table row header for the sampled (or category) item. |
int |
getSampleSubgroupSize_VSS()
Get the number of samples in a sample sub group for a Variable Control chart. |
int |
getSampleSubgroupSize()
Get the number of samples in a sample sub group for a Variable Control chart. |
static java.lang.String |
getSampleValueColumnString()
Default string used as the sample value column head in the log file. |
int |
getSecondaryCalculatedVariableIndex()
Get index in the calculatedValues array for the secondary calculated value data. |
void |
getSecondaryControlLimits(int primaryindex,
int secondaryindex,
double sigmalevel,
double[] target,
double[] lcl,
double[] ucl)
Using the current sampled data values, high, target and low control limits are calculated for the primary chart using an algorithim appropriate to the SPC chart type. |
int |
getSPCChartType()
Get the control chart type: use one of the SPCControlChartData chart type constants: MEAN_RANGE_CHART, MEDIAN_RANGE_CHART, MEAN_SIGMA_CHART, MEAN_VARIANCE_CHART, INDIVIDUAL_RANGE_CHART, CUSTOM_ATTRIBUTE_CONTROL_CHART, PERCENT_DEFECTIVE_PARTS_CHART, FRACTION_DEFECTIVE_PARTS_CHART, NUMBER_DEFECTIVE_PARTS_CHART, NUMBER_DEFECTS_CHART, NUMBER_DEFECTS_PERUNIT_CHART . |
java.lang.String |
getSpecificationLimits()
Get data table specification limits string. |
java.lang.String |
getSpecificationLimitsHeader()
Get the header for the specificationLimits field. |
java.lang.String |
getTheOperator()
Get data table operator string. |
java.util.GregorianCalendar |
getTimeStamp()
Get the time stamp for the most recent sample data added to the class. |
static java.lang.String |
getTimeStampColumnString()
Default string used as the time stamp column head in the log file. |
java.util.GregorianCalendar |
getTimeValue(int col)
Get the time stamp value at the specified index. |
java.lang.String |
getTimeValueRowHeader()
The data table time value row header. |
java.lang.String |
getTitle()
Get data table title string. |
java.lang.String |
getTitleHeader()
Get the header for the title field. |
double |
getTotalSampleSigma()
Returns the standard deviation for all samples. |
boolean |
getTrainingMode()
Get the maximum number of records displayable at one time in the chart. |
java.lang.String |
getUnitOfMeasure()
Get data table unit of measure string. |
java.lang.String |
getUnitOfMeasureHeader()
Get the header for the unit of measure field. |
int |
getUpdateIndex()
Get the EWMA index value |
java.lang.String |
getYAxisTitle(int source,
int index)
Get the y-axis title or a specific index, based description of the item in the SPCCalculatedValueRecord or SPCSampledValueRecord record. |
java.lang.String |
getZeroEquals()
Get data table zero equals string. |
java.lang.String |
getZeroEqualsHeader()
Get the header for the zeroEqulas field. |
boolean |
isControlLimit(SPCControlLimitRecord controllimitrecord)
Returns true if the control limit record at the index is initiated. |
boolean |
isSampledValueValid(int row,
int col)
Returns true if the row and col index are valid, in the case of variable sample sizes.. |
int |
outputAllValuesToDataLog(CSV csv,
java.lang.String filename)
This methods will create a text file and output all of the current SPC data records to that file in a CSV (Comma Separated Value) format. |
int |
outputAllValuesToDataLog(java.lang.String filename)
This methods will create a text file and output all of the current SPC data records to that file in a CSV (Comma Separated Value) format. |
int |
readAllValuesFromFile(CSV csv,
java.lang.String filename)
This methods will read a text file of SPC data records organized in a CSV (Comma Separated Value) format. |
int |
readAllValuesFromFile(java.lang.String filename)
This method will read a text file of SPC data records organized in a CSV (Comma Separated Value) format. |
int |
readAllValuesFromFile(java.lang.String filename,
int samplevaluecount,
int calculatedvaluecount,
int controllimitvaluecount,
int processcapabilityvaluecount)
This methods will read a text file of SPC data records organized in a CSV (Comma Separated Value) format. |
void |
removeAlarmStateEventListener(SPCAlarmEventListener listener)
Remove an alarm state event listener to this process variable. |
void |
removeAlarmTransitionEventListener(SPCAlarmEventListener listener)
Remove an alarm transition event listener to this process variable. |
void |
resetSPCChartData()
Reset the history buffers of all of the SPC data objects. |
int |
save(CSV csv,
java.lang.String filename)
This methods will create a text file and output the SPC chart data to that file in a CSV (Comma Separated Value) format. |
int |
save(java.lang.String filename)
This methods will create a text file and output the SPC chart data to that file in a CSV (Comma Separated Value) format. |
void |
setAlarmReportMode(int value)
Specifies whether only first alarm reported, or all alarms. |
void |
setAlarmStateEventEnable(boolean value)
Set to True to signify that any alarm should invoke the AlarmStateEventHandler. |
void |
setAlarmStatusValueRowHeader(java.lang.String value)
The data table time value row header. |
void |
setAlarmTimeFormatString(java.lang.String formatstring)
Set the TimeFormater string used to format time values for alarm reporting. |
void |
setAlarmTransitionEventEnable(boolean value)
Set to True to signify that any change in an alarm state should invoke the AlarmTransitionEventHandler. |
void |
setAutoLogAlarmsAsNotes(boolean value)
Set true to automatically log alarm conditions to the samples intervals notes object. |
static void |
setBatchColumnHeadString(java.lang.String value)
Default string used as the batch number column head in the log file. |
void |
setChartNumber(java.lang.String value)
Set data table chart number string. |
void |
setChartNumberHeader(java.lang.String value)
Set/Get the header for the chartNumber field. |
void |
setControlLimitString(int limittype,
java.lang.String limittext)
Set the SPC text for a specific SPC chart limit. |
void |
setControlLimitStrings(java.lang.String[] limittext)
Set the SPC control limit text for an SPC control chart. |
void |
setControlLimitValue(int limittype,
double limitvalue)
Set the SPC value of a specific SPC chart limit. |
void |
setControlLimitValues(double[] limitvalues)
Set the SPC control limit values for an SPC control chart. |
void |
setCusumHValue(double value)
Set the cuSum H value |
void |
setCusumKValue(double value)
Set the cuSum K value |
void |
setDatalLogEnable(boolean value)
Set to true to enable data logging. |
void |
setDataLogCSV(CSV value)
The CSV (Comma Separated Value) specifyier for the logging data SPC data to a file. |
void |
setDataLogFilename(java.lang.String value)
The string used as the file name for data logging. |
void |
setDataLogFlags(int value)
Set the flags that control what items are logged to the data log file. |
void |
setDataLogUserString(java.lang.String value)
The dataLogUserString is output as the second line in a datalog file, if the DATALOG_USER_STRING flag is set in dataLogFlags. |
void |
setDateHeader(java.lang.String value)
Set the header for the dateString field. |
void |
setDateString(java.lang.String value)
Set data table date string. |
static void |
setDefaultAbsRangeString(java.lang.String value)
Default string used to the y-axis of secondary chart of I-R charts. |
static void |
setDefaultDataLogFilenameRoot(java.lang.String value)
Default string used as the default file name for data logging. |
static void |
setDefaultDefectRowHeaderPrefix(java.lang.String value)
Set the default symbol used for the row headers of the sample data items. |
static void |
setDefaultHighAlarmMessageString(java.lang.String value)
Default string used as the high alarm message for a low control limit. |
static void |
setDefaultLowAlarmMessageString(java.lang.String value)
Default string used to the label the target lower control limit line of the chart. |
static void |
setDefaultLowControlLimitString(java.lang.String value)
Default string used to the label the target low control limit line of the chart. |
static void |
setDefaultMeanString(java.lang.String value)
Default string used to title the y-axis of mean graphs. |
static void |
setDefaultMedianString(java.lang.String value)
Default string used to title the y-axis of median graphs. |
static void |
setDefaultRangeString(java.lang.String value)
Default string used to title the y-axis of range graphs. |
static void |
setDefaultSampleRowHeaderPrefix(java.lang.String value)
Set the default symbol used for the row headers of the sample data items. |
static void |
setDefaultSampleValueString(java.lang.String value)
Default string used to the y-axis of primary chart of I-R charts. |
static void |
setDefaultSigmaString(java.lang.String value)
Default string used to title the y-axis of sigma graphs. |
static void |
setDefaultSumString(java.lang.String value)
Default string used to title the sum table row. |
static void |
setDefaultTargetString(java.lang.String value)
Default string used to the label the target control limit line of the chart. |
static void |
setDefaultUpperControlLimitString(java.lang.String value)
Default string used to the label the target upper control limit line of the chart. |
static void |
setDefaultVarianceString(java.lang.String value)
Default string used to title the y-axis of variance graphs. |
static void |
setDefaultXBarString(java.lang.String value)
Default string used to title primary chart. |
static void |
setDefaultXString(java.lang.String value)
Default string used to the primary chart of I-R charts. |
void |
setDefectiveDecimalPrecision(int value)
Set the default value to use for the decimal precision used to display defective item counts, -1 = auto. |
void |
setEWMA_Lambda(double value)
Set the lambda value for EWMA calculations. |
void |
setEWMA_StartingValue(double value)
Set the lambda value for EWMA calculations. |
void |
setEWMA_UseSSLimits(boolean value)
Set EWMA steady-state limits |
void |
setGage(java.lang.String value)
Set data table gage string. |
void |
setGageHeader(java.lang.String value)
Set/Get the header for the gage field. |
void |
setMA_w(int value)
Set the MA length value for MA calculations. |
void |
setMachine(java.lang.String value)
Set data table machine string. |
void |
setMachineHeader(java.lang.String value)
Set the header for the machine field. |
static void |
setNotesColumString(java.lang.String value)
Default string used as the notes column head in the log file. |
void |
setNotesHeader(java.lang.String value)
Set the data table notes header string. |
void |
setNotesMessage(java.lang.String value)
Set data table notes message string. |
void |
setNotesString(java.lang.String notes)
Set the notes string for the current record to the specified string. |
void |
setNotesToolTips(NotesToolTip value)
Set the notes tool tip. |
void |
setNumberSamplesValueRowHeader(java.lang.String value)
Set the data table number of samples row header. |
void |
setNumRecordsPerChart(int value)
Set the maximum number of records displayable at one time in the chart. |
void |
setNumSampleCategories(int value)
Set the number of categories in an Attribute Control chart. |
void |
setOperation(java.lang.String value)
Set data table operation string. |
void |
setOperationHeader(java.lang.String value)
Set the header for the operation field. |
void |
setOperatorHeader(java.lang.String value)
Set the header for the theOperator field. |
void |
setPartName(java.lang.String value)
Set data table part name string. |
void |
setPartNameHeader(java.lang.String value)
Sett the header for the partName field. |
void |
setPartNumber(java.lang.String value)
Set data table part number string. |
void |
setPartNumberHeader(java.lang.String value)
Set the header for the partNumber field. |
void |
setPrimaryCalculatedVariableIndex(int value)
Set index in the calculatedValues array for the primary calculated value data. |
void |
setProcessCapabilityLSLValue(double value)
Set the LSL value for this record. |
void |
setProcessCapabilityUSLValue(double value)
Set the USL value for this record. |
void |
setProcessMean(double value)
Set the process mean |
void |
setProcessMeanOverride(boolean value)
Use the processMean rather than calculate from data |
void |
setProcessSigma(double value)
Set the process sigma |
void |
setProcessSigmaOverride(boolean value)
Set to true to use the processSigma rather than calculate from data |
void |
setSampleRowHeaderString(int item,
java.lang.String s)
Set data table row header for the sampled (or category) item. |
void |
setSampleSubgroupSize_VSS(int value)
Set the number of samples in a sample sub group for a Variable Control chart. |
void |
setSampleSubgroupSize(int value)
Set the number of samples in a sample sub group for a Variable Control chart. |
static void |
setSampleValueColumnString(java.lang.String value)
Default string used as the sample value column head in the log file. |
void |
setSecondaryCalculatedVariableIndex(int value)
Set index in the calculatedValues array for the secondary calculated value data. |
void |
setSPCChartType(int value)
Set the control chart type: use one of the SPCControlChartData chart type constants: MEAN_RANGE_CHART, MEDIAN_RANGE_CHART, MEAN_SIGMA_CHART, MEAN_VARIANCE_CHART, INDIVIDUAL_RANGE_CHART, CUSTOM_ATTRIBUTE_CONTROL_CHART, PERCENT_DEFECTIVE_PARTS_CHART, FRACTION_DEFECTIVE_PARTS_CHART, NUMBER_DEFECTIVE_PARTS_CHART, NUMBER_DEFECTS_CHART, NUMBER_DEFECTS_PERUNIT_CHART . |
void |
setSpecificationLimits(java.lang.String value)
Set data table specification limits string. |
void |
setSpecificationLimitsHeader(java.lang.String value)
Set the header for the specificationLimits field. |
void |
setTheOperator(java.lang.String value)
Set data table operator string. |
void |
setTimeStamp(java.util.GregorianCalendar value)
Set the time stamp for the most recent sample data added to the class. |
static void |
setTimeStampColumnString(java.lang.String value)
Default string used as the time stamp column head in the log file. |
void |
setTimeValueRowHeader(java.lang.String value)
The data table time value row header. |
void |
setTitle(java.lang.String value)
Set data table title string. |
void |
setTitleHeader(java.lang.String value)
Set the header for the title field. |
void |
setTrainingMode(boolean value)
Set the maximum number of records displayable at one time in the chart. |
void |
setUnitOfMeasure(java.lang.String value)
Set data table unit of measure string. |
void |
setUnitOfMeasureHeader(java.lang.String value)
Set the header for the unit of measure field. |
void |
setUpdateIndex(int value)
Set the EWMA index value |
void |
setZeroEquals(java.lang.String value)
Set data table zero equals string. |
void |
setZeroEqualsHeader(java.lang.String value)
Set the header for the zeroEqulas field. |
DoubleArray |
simulateDefectRecord(double meanvalue)
Simulates a defect measurement for a SPC Attribute Control chart with a specified mean. |
DoubleArray |
simulateDefectRecord(double meanvalue,
int type)
Simulates a defect record for a SPC Attribute Control chart with a specified mean. |
DoubleArray |
simulateMeasurementRecord(double meanvalue)
Simulates a sample measurement for a SPC Variable Control chart with a specified mean value. |
DoubleArray |
simulateMeasurementRecord(double meanvalue,
double range)
Simulates a sample measurement for a SPC Variable Control chart with a specified mean and range. |
void |
sortAlarmObjectsByValue(java.util.Vector<SPCControlLimitRecord> sortarray)
This method sorts the objects in the controlLimitValues array in the ascending value of their alarm value. |
boolean |
transitionEventCondition(int transitionevent)
Returns true if an alarm transition has taken place. |
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 CUSTOM_ATTRIBUTE_CONTROL_CHART
public static final int CUSTOM_VARIABLE_CONTROL_CHART
public static final int DATALOG_FILE_ALL
public static final int DATALOG_FILE_BATCH_NUMBER
public static final int DATALOG_FILE_CALCULATED_VALUES
public static final int DATALOG_FILE_COLUMN_HEADS
public static final int DATALOG_FILE_CONTROL_LIMIT_VALUES
public static final int DATALOG_FILE_NOTES
public static final int DATALOG_FILE_PROCESS_CAPABILITY_VALUES
public static final int DATALOG_FILE_SAMPLED_VALUES
public static final int DATALOG_FILE_TIME_STAMP
public static final int DATALOG_USER_STRING
public static final int EWMA_CHART
public static final int FRACTION_DEFECTIVE_PARTS_CHART
public static final int FRACTION_DEFECTIVE_PARTS_CHART_VSS
public static final int HEADER_STRINGS_LEVEL0
public static final int HEADER_STRINGS_LEVEL1
public static final int HEADER_STRINGS_LEVEL2
public static final int HEADER_STRINGS_LEVEL3
public static final int INDIVIDUAL_RANGE_CHART
public static final int MA_CHART
public static final int MEAN_RANGE_CHART
public static final int MEAN_SIGMA_CHART
public static final int MEAN_SIGMA_CHART_VSS
public static final int MEAN_VARIANCE_CHART
public static final int MEDIAN_RANGE_CHART
public static final int NO_DATALOG_FILE_PREFIX
public static final int NUMBER_DEFECTIVE_PARTS_CHART
public static final int NUMBER_DEFECTS_CHART
public static final int NUMBER_DEFECTS_PERUNIT_CHART
public static final int NUMBER_DEFECTS_PERUNIT_CHART_VSS
public static final int PERCENT_DEFECTIVE_PARTS_CHART
public static final int PERCENT_DEFECTIVE_PARTS_CHART_VSS
public static final int REPORT_ALL_ALARMS
public static final int REPORT_FIRST_ALARM
public static final int SPC_PRIMARY_CONTROL_TARGET
public static final int SPC_PRIMARY_LOWER_CONTROL_LIMIT
public static final int SPC_PRIMARY_UPPER_CONTROL_LIMIT
public static final int SPC_SECONDARY_CONTROL_TARGET
public static final int SPC_SECONDARY_LOWER_CONTROL_LIMIT
public static final int SPC_SECONDARY_UPPER_CONTROL_LIMIT
public static final int TABCUSUM_CHART
Constructor Detail |
---|
public SPCControlChartData()
public SPCControlChartData(int charttype, int numsamplecategories, int numrecordsperchart, double timeincrementminutes)
charttype
- The SPC chart type parameter. Use one of the SPCControlChartData SPC chart types:
MEAN_RANGE_CHART, MEDIAN_RANGE_CHART, MEAN_SIGMA_CHART, MEAN_VARIANCE_CHART, INDIVIDUAL_RANGE_CHARTnumsamplecategories
- For Variable Control Charts (MEAN_RANGE_CHART, MEDIAN_RANGE_CHART, MEAN_SIGMA_CHART, MEAN_VARIANCE_CHART, INDIVIDUAL_RANGE_CHART) this
value specifies the number of samples that make up a sample subgroup. In Attribute Control Charts this value represents the number
of defect categories used to determine defect counts.numrecordsperchart
- Specifies the number of sample subgroups displayed in the graph at one time. *timeincrementminutes
- Specifies the normal time increment between adjacent subgroup samples. *public SPCControlChartData(int charttype, int numsamplecategories, int numrecordsperchart, int samplesize, double timeincrementminutes)
charttype
- The SPC chart type parameter. Use one of the SPCControlChartData SPC chart types:
PERCENT_DEFECTIVE_PARTS_CHART, FRACTION_DEFECTIVE_PARTS_CHART, NUMBER_DEFECTIVE_PARTS_CHART,
NUMBER_DEFECTS_CHART, NUMBER_DEFECTS_PERUNIT_CHART .numsamplecategories
- For Variable Control Charts (MEAN_RANGE_CHART, MEDIAN_RANGE_CHART, MEAN_SIGMA_CHART, MEAN_VARIANCE_CHART, INDIVIDUAL_RANGE_CHART) this
value specifies the number of samples that make up a sample subgroup. In Attribute Control Charts this value represents the number
of defect categories used to determine defect counts.numrecordsperchart
- Specifies the number of sample subgroups displayed in the graph at one time. *samplesize
- Specifies the sample size per subgroup for the Attribute Control Chart. *timeincrementminutes
- Specifies the normal time increment between adjacent subgroup samples. *public SPCControlChartData(int charttype, int numsamplecategories, int numrecordsperchart, StringArray samplerowheadstrings, int samplesize, double timeincrementminutes)
charttype
- The SPC chart type parameter. Use one of the SPCControlChartData SPC chart types:
PERCENT_DEFECTIVE_PARTS_CHART, FRACTION_DEFECTIVE_PARTS_CHART, NUMBER_DEFECTIVE_PARTS_CHART,
NUMBER_DEFECTS_CHART, NUMBER_DEFECTS_PERUNIT_CHART .numsamplecategories
- For Variable Control Charts (MEAN_RANGE_CHART, MEDIAN_RANGE_CHART, MEAN_SIGMA_CHART, MEAN_VARIANCE_CHART, INDIVIDUAL_RANGE_CHART) this
value specifies the number of samples that make up a sample subgroup. In Attribute Control Charts this value represents the number
of defect categories used to determine defect counts.numrecordsperchart
- Specifies the number of sample subgroups displayed in the graph at one time. *samplerowheadstrings
- Specifies the strings used to label the defect categorys rows of the data table. *samplesize
- Specifies the sample size per subgroup for the Attribute Control Chart. *timeincrementminutes
- Specifies the normal time increment between adjacent subgroup samples. *Method Detail |
---|
public void addAlarmStateEventListener(SPCAlarmEventListener listener)
listener
- The listener for alarm state events generated by this object.public void addAlarmTransitionEventListener(SPCAlarmEventListener listener)
listener
- The listener for alarm transition events generated by this object.public int addNewSampleRecord(DoubleArray samples)
samples
- Array of new sample values. *
public int addNewSampleRecord(DoubleArray samples, java.lang.String notes)
samples
- Array of new sample values. *notes
- A string specifying any notes associated with this sample subgroup *
public int addNewSampleRecord(double timestamp, DoubleArray samples)
timestamp
- Batch number of the sample. *samples
- Array of new sample values. *
public int addNewSampleRecord(double timestamp, DoubleArray samples, DoubleArray controllimits)
timestamp
- Batch number of the sample. *samples
- Array of new sample values. *controllimits
- Array of control limits, one for each control limits (low, target, and high) *
public int addNewSampleRecord(double timestamp, DoubleArray samples, DoubleArray controllimits, java.lang.String notes)
timestamp
- Batch number of the sample. *samples
- Array of new sample values. *controllimits
- Array of control limits, one for each control limits (low, target, and high) *notes
- A string specifying any notes associated with this sample subgroup *
public int addNewSampleRecord(double timestamp, DoubleArray samples, java.lang.String notes)
timestamp
- Batch number of the sample. *samples
- Array of new sample values. *notes
- A string specifying any notes associated with this sample subgroup *
public int addNewSampleRecord(double x, java.util.GregorianCalendar timestamp, DoubleArray samples)
x
- Batch number of the sample. *timestamp
- Time stamp for the current sample record. *samples
- Array of new sample values. *
public int addNewSampleRecord(double x, java.util.GregorianCalendar timestamp, DoubleArray samples, DoubleArray controllimits)
x
- Batch number of the sample. *timestamp
- Time stamp for the current sample record. *samples
- Array of new sample values. *controllimits
- Array of control limits, one for each control limits (low, target, and high) *
public int addNewSampleRecord(double x, java.util.GregorianCalendar timestamp, DoubleArray samples, DoubleArray controllimits, java.lang.String notes)
x
- Batch number of the sample. *timestamp
- Time stamp for the current sample record. *samples
- Array of new sample values. *controllimits
- Array of control limits, one for each control limits (low, target, and high) *notes
- A string specifying any notes associated with this sample subgroup *
public int addNewSampleRecord(double x, java.util.GregorianCalendar timestamp, DoubleArray samples, java.lang.String notes)
x
- Batch number of the sample. *timestamp
- Time stamp for the current sample record. *samples
- Array of new sample values. *notes
- A string specifying any notes associated with this sample subgroup *
public int addNewSampleRecord(java.util.GregorianCalendar timestamp, DoubleArray samples)
timestamp
- Time stamp for the current sample record. *samples
- Array of new sample values. *
public int addNewSampleRecord(java.util.GregorianCalendar timestamp, DoubleArray samples, DoubleArray controllimits)
timestamp
- Time stamp for the current sample record. *samples
- Array of new sample values. *controllimits
- Array of control limits, one for each control limits (low, target, and high) *
public int addNewSampleRecord(java.util.GregorianCalendar timestamp, DoubleArray samples, DoubleArray controllimits, java.lang.String notes)
timestamp
- Time stamp for the current sample record. *samples
- Array of new sample values. *controllimits
- Array of control limits, one for each control limits (low, target, and high) *notes
- A string specifying any notes associated with this sample subgroup *
public int addNewSampleRecord(java.util.GregorianCalendar timestamp, DoubleArray samples, java.lang.String notes)
timestamp
- Time stamp for the current sample record. *samples
- Array of new sample values. *notes
- A string specifying any notes associated with this sample subgroup *
public void addProcessCapabilityValue(int pcindex)
public int appendCurrentRecordValuesToDataLog(CSV csv, java.lang.String filename)
csv
- An instance of an CSV object.filename
- The name of the file.
public void appendNotesString(int index, java.lang.String notes, boolean after)
index
- Sample interval index *notes
- A string specifying any notes associated with this sample subgroupafter
- Set to true and the notes string is appended after the current notes stringpublic void appendNotesString(java.lang.String notes, boolean after)
notes
- A string specifying any notes associated with this sample subgroupafter
- Set to true and the notes string is appended after the current notes string.public boolean assumeTrainingMode()
public static int calcRangeBasedDecimalPos(double range)
range
- The range of the values.
public void calculateControlLimits(DoubleArray controllimits)
public java.lang.Object clone()
clone
in class java.lang.Object
public boolean controlLimitInitialized(int item)
item
- The index of the desired SPCControlLimitRecord in the controlLimitValues array.
public void copy(SPCControlChartData source)
source
- The source object.public int dataLogFileOpenForWrite()
public int dataLogFileOpenForWrite(CSV csv, java.lang.String filename, int datalogflags)
csv
- An instance of an CSV object.filename
- The name of the file.datalogflags
- The datalogflags value controls what items are logged to the data log file. The default has all of the
optional items logged to the file. "OR" together individual data log file flags to specify the
items you want logger to the file. For example:
datalogflags = DATALOG_FILE_TIME_STAMP | DATALOG_FILE_SAMPLED_VALUES | DATALOG_FILE_CALCULATED_VALUES | DATALOG_FILE_COLUMN_HEADS.
Use one of the SPCControlChartData datalog:
DATALOG_FILE_BATCH_NUMBER, DATALOG_FILE_TIME_STAMP, DATALOG_FILE_SAMPLED_VALUES, DATALOG_FILE_CALCULATED_VALUES,
DATALOG_FILE_CONTROL_LIMIT_VALUES, DATALOG_FILE_NOTES, DATALOG_FILE_COLUMN_HEADS.
public int dataLogFileOpenForWrite(CSV csv, java.lang.String filename, int datalogflags, java.lang.String userstring)
csv
- An instance of an CSV object.filename
- The name of the file.datalogflags
- The datalogflags value controls what items are logged to the data log file. The default has all of the
optional items logged to the file. "OR" together individual data log file flags to specify the
items you want logger to the file. For example:
datalogflags = DATALOG_FILE_TIME_STAMP | DATALOG_FILE_SAMPLED_VALUES | DATALOG_FILE_CALCULATED_VALUES | DATALOG_FILE_COLUMN_HEADS.
Use one of the SPCControlChartData datalog:
DATALOG_FILE_BATCH_NUMBER, DATALOG_FILE_TIME_STAMP, DATALOG_FILE_SAMPLED_VALUES, DATALOG_FILE_CALCULATED_VALUES,
DATALOG_FILE_CONTROL_LIMIT_VALUES, DATALOG_FILE_NOTES, DATALOG_FILE_COLUMN_HEADS.userstring
- A user defined string that can appear on the second line of the data log file,
between the file prefix and the column heads. The datalogflags must have the DATALOG_USER_STRING option
set before this string is output to the file.
public int dataLogFileOpenForWrite(java.lang.String filename)
filename
- The name of the file.
public int dataLogFileOpenForWrite(java.lang.String filename, int datalogflags)
filename
- The name of the file.datalogflags
- The datalogflags value controls what items are logged to the data log file. The default has all of the
optional items logged to the file. "OR" together individual data log file flags to specify the
items you want logger to the file. For example:
datalogflags = DATALOG_FILE_TIME_STAMP | DATALOG_FILE_SAMPLED_VALUES | DATALOG_FILE_CALCULATED_VALUES | DATALOG_FILE_COLUMN_HEADS.
Use one of the SPCControlChartData datalog:
DATALOG_FILE_BATCH_NUMBER, DATALOG_FILE_TIME_STAMP, DATALOG_FILE_SAMPLED_VALUES, DATALOG_FILE_CALCULATED_VALUES,
DATALOG_FILE_CONTROL_LIMIT_VALUES, DATALOG_FILE_NOTES, DATALOG_FILE_COLUMN_HEADS.
public int dataLogFileOpenForWrite(java.lang.String filename, int datalogflags, java.lang.String userstring)
filename
- The name of the file.datalogflags
- The datalogflags value controls what items are logged to the data log file. The default has all of the
optional items logged to the file. "OR" together individual data log file flags to specify the
items you want logger to the file. For example:
datalogflags = DATALOG_FILE_TIME_STAMP | DATALOG_FILE_SAMPLED_VALUES | DATALOG_FILE_CALCULATED_VALUES | DATALOG_FILE_COLUMN_HEADS.
Use one of the SPCControlChartData datalog:
DATALOG_FILE_BATCH_NUMBER, DATALOG_FILE_TIME_STAMP, DATALOG_FILE_SAMPLED_VALUES, DATALOG_FILE_CALCULATED_VALUES,
DATALOG_FILE_CONTROL_LIMIT_VALUES, DATALOG_FILE_NOTES, DATALOG_FILE_COLUMN_HEADS.userstring
- A user defined string that can appear on the second line of the data log file,
between the file prefix and the column heads. The datalogflags must have the DATALOG_USER_STRING option
set before this string is output to the file.
public void excludeRecordFromControlLimitCalculations(int item, boolean exclude)
item
- The index of the item to exclude.exclude
- Set true and the item is excluded. Set false and it is included.public int getAlarmReportMode()
public boolean getAlarmStateEventEnable()
public java.util.Vector<SPCAlarmEventListener> getAlarmStateEventListeners()
public java.lang.String getAlarmStatusValueRowHeader()
public java.lang.String getAlarmTimeFormatString()
public boolean getAlarmTransitionEventEnable()
public java.util.Vector<SPCAlarmEventListener> getAlarmTransitionEventListeners()
public boolean getAutoLogAlarmsAsNotes()
public static java.lang.String getBatchColumnHeadString()
public double getBatchNumberValue(int col)
col
- The time index used to access the group number in the groupNumberValues array.
public double getCalculatedValue(int row, int column)
row
- The index of the SPCCalculatedValueRecord record in the in the calculatedValues array.column
- The time index of the item in the SPCCalculatedValueRecord.CalculatedValues array..public SPCCalculatedValueRecord getCalculatedValueRecord(int item)
item
- The time index used to access the calculated value record in the calculatedValues array.
public java.lang.String getChartNumber()
public java.lang.String getChartNumberHeader()
public double getControlLimit(int limittype)
limittype
- The control limit type. Use one of the control limit constants: SPC_PRIMARY_CONTROL_TARGET, SPC_PRIMARY_LOWER_CONTROL_LIMIT,
SPC_PRIMARY_UPPER_CONTROL_LIMIT, SPC_SECONDARY_CONTROL_TARGET, SPC_SECONDARY_LOWER_CONTROL_LIMIT,
SPC_SECONDARY_UPPER_CONTROL_LIMIT.
public SPCControlLimitRecord getControlLimitRecord(int item)
item
- The index of the desired SPCControlLimitRecord in the controlLimitValues array.
public java.lang.String getControlLimitString(int limittype)
limittype
- The control limit type. Use one of the control limit constants: SPC_PRIMARY_CONTROL_TARGET, SPC_PRIMARY_LOWER_CONTROL_LIMIT,
SPC_PRIMARY_UPPER_CONTROL_LIMIT, SPC_SECONDARY_CONTROL_TARGET, SPC_SECONDARY_LOWER_CONTROL_LIMIT,
SPC_SECONDARY_UPPER_CONTROL_LIMIT.
public java.lang.String getControlLimitText(int item)
item
- The index of the desired SPCControlLimitRecord in the controlLimitValues array.
public double getControlLimitValue(int row)
row
- The index of the SPCControlLimitRecord record in the controlLimitValues array.public double getControlLimitValue(int row, int column)
row
- The index of the SPCControlLimitRecord record in the in the controlLimitValues array.column
- The time index of the item in the SPCControlLimitRecord.getControlLimitValue()s array..public int getCurrentNumberRecords()
public double getCusumHValue()
public double getCusumKValue()
public boolean getDatalLogEnable()
public CSV getDataLogCSV()
public java.lang.String getDataLogFilename()
public int getDataLogFlags()
public java.lang.String getDataLogUserString()
public java.lang.String getDateHeader()
public java.lang.String getDateString()
public static java.lang.String getDefaultAbsRangeString()
public static java.lang.String getDefaultDataLogFilenameRoot()
public static java.lang.String getDefaultDefectRowHeaderPrefix()
public static java.lang.String getDefaultHighAlarmMessageString()
public static java.lang.String getDefaultLowAlarmMessageString()
public static java.lang.String getDefaultLowControlLimitString()
public static java.lang.String getDefaultMeanString()
public static java.lang.String getDefaultMedianString()
public static java.lang.String getDefaultRangeString()
public static java.lang.String getDefaultSampleRowHeaderPrefix()
public static java.lang.String getDefaultSampleValueString()
public static java.lang.String getDefaultSigmaString()
public static java.lang.String getDefaultSumString()
public static java.lang.String getDefaultTargetString()
public static java.lang.String getDefaultUpperControlLimitString()
public static java.lang.String getDefaultVarianceString()
public static java.lang.String getDefaultXBarString()
public static java.lang.String getDefaultXString()
public int getDefectiveDecimalPrecision()
public boolean getEnableProcessCapabilityValue(int pcindex)
public double getEWMA_Lambda()
public double getEWMA_StartingValue()
public boolean getEWMA_UseSSLimits()
public java.lang.String getGage()
public java.lang.String getGageHeader()
public int getMA_w()
public java.lang.String getMachine()
public java.lang.String getMachineHeader()
public static java.lang.String getNotesColumString()
public java.lang.String getNotesHeader()
public java.lang.String getNotesMessage()
public java.lang.String getNotesString(int col)
col
- The time index used to access the string in the notesString array.
public NotesToolTip getNotesToolTips()
public double getNumberOfSamplesPerSubgroup(int col)
col
- The time index used to access the number of samples per group value in the numberSamplesPerSubgroup array.
public java.lang.String getNumberSamplesValueRowHeader()
public int getNumCalculatedValues()
public int getNumProcessCapabilityValues()
public int getNumRecordsPerChart()
public int getNumSampleCategories()
public java.lang.String getOperation()
public java.lang.String getOperationHeader()
public java.lang.String getOperatorHeader()
public java.lang.String getPartName()
public java.lang.String getPartNameHeader()
public java.lang.String getPartNumber()
public java.lang.String getPartNumberHeader()
public int getPrimaryCalculatedVariableIndex()
public void getPrimaryControlLimits(int primaryindex, int secondaryindex, double sigmalevel, double[] target, double[] lcl, double[] ucl)
primaryindex
- The calculated value index for the primary chart control data. *secondaryindex
- The calculated value index for the secondary chart control data. *sigmalevel
- The sigma level of the control chart calculations. *target
- Returns the target value value for the chart. *lcl
- Returns the low control limit for the chart. *ucl
- Returns the high control limit for the chart. *public double getProcessCapabilityLSLValue()
public SPCProcessCapabilityRecord getProcessCapabilityRecord(int item)
item
- The time index used to access the process capability value record in the processCapabilityValues array.
public double getProcessCapabilityUSLValue()
public double getProcessCapabilityValue(int row, int column)
row
- The index of the SPCProcessCapabilityRecord record in the in the processCapabilityValues array.
public double getProcessMean()
public boolean getProcessMeanOverride()
public double getProcessSigma()
public boolean getProcessSigmaOverride()
public double getSampledValue(int row, int col)
row
- The index of the item in the sampledValues array.col
- The time index of the item in the SPCSampledValueRecord.SampledValues array..
public java.lang.String getSampleRowHeaderString(int item)
item
- Sample row header index in the sampleRowHeaderStrings array. *
public int getSampleSubgroupSize_VSS()
public int getSampleSubgroupSize()
public static java.lang.String getSampleValueColumnString()
public int getSecondaryCalculatedVariableIndex()
public void getSecondaryControlLimits(int primaryindex, int secondaryindex, double sigmalevel, double[] target, double[] lcl, double[] ucl)
primaryindex
- The calculated value index for the primary chart control data.secondaryindex
- The calculated value index for the secondary chart control data.sigmalevel
- The sigma level of the control chart calculations.target
- Returns the target value value for the chart.lcl
- Returns the low control limit for the chart.ucl
- Returns the high control limit for the chart.public int getSPCChartType()
public java.lang.String getSpecificationLimits()
public java.lang.String getSpecificationLimitsHeader()
public java.lang.String getTheOperator()
public java.util.GregorianCalendar getTimeStamp()
public static java.lang.String getTimeStampColumnString()
public java.util.GregorianCalendar getTimeValue(int col)
col
- The time index used to access the time stamp value in the timeStampValues array.
public java.lang.String getTimeValueRowHeader()
public java.lang.String getTitle()
public java.lang.String getTitleHeader()
public double getTotalSampleSigma()
public boolean getTrainingMode()
public java.lang.String getUnitOfMeasure()
public java.lang.String getUnitOfMeasureHeader()
public int getUpdateIndex()
public java.lang.String getYAxisTitle(int source, int index)
source
- The source is either a sampled value, or a calculated value. Use one of SPCChartObjects
constants SPCChartObjects.CALCULATED_VALUE_SOURCE, or SPCChartObjects.SAMPLED_VALUE_SOURCEindex
- The index of the item in the source sampledValues or calculatedValues array.
public java.lang.String getZeroEquals()
public java.lang.String getZeroEqualsHeader()
public boolean isControlLimit(SPCControlLimitRecord controllimitrecord)
controllimitrecord
- The index of the desired SPCControlLimitRecord in the controlLimitValues array.
public boolean isSampledValueValid(int row, int col)
row
- The index of the item in the sampledValues array.col
- The time index of the item in the SPCSampledValueRecord.SampledValues array..
public int outputAllValuesToDataLog(CSV csv, java.lang.String filename)
csv
- An instance of an CSV object.filename
- The name of the file.
public int outputAllValuesToDataLog(java.lang.String filename)
filename
- The name of the file.
public int readAllValuesFromFile(CSV csv, java.lang.String filename)
csv
- An instance of an CSV object.filename
- The name of the file.
public int readAllValuesFromFile(java.lang.String filename)
filename
- The name of the file.
public int readAllValuesFromFile(java.lang.String filename, int samplevaluecount, int calculatedvaluecount, int controllimitvaluecount, int processcapabilityvaluecount)
filename
- The name of the file.samplevaluecount
- The number of sampled value columns in the data file.calculatedvaluecount
- The number of calculated value columns in the data file.controllimitvaluecount
- The number of control limit value columns in the data file.processcapabilityvaluecount
- The number of process capability value columns in the data file.
public void removeAlarmStateEventListener(SPCAlarmEventListener listener)
listener
- The listener for alarm state events generated by this object.public void removeAlarmTransitionEventListener(SPCAlarmEventListener listener)
listener
- The listener for alarm transition events generated by this object.public void resetSPCChartData()
public int save(CSV csv, java.lang.String filename)
csv
- An instance of an CSV object.filename
- The name of the file.
public int save(java.lang.String filename)
filename
- The name of the file.
public void setAlarmReportMode(int value)
public void setAlarmStateEventEnable(boolean value)
public void setAlarmStatusValueRowHeader(java.lang.String value)
public void setAlarmTimeFormatString(java.lang.String formatstring)
public void setAlarmTransitionEventEnable(boolean value)
public void setAutoLogAlarmsAsNotes(boolean value)
public static void setBatchColumnHeadString(java.lang.String value)
public void setChartNumber(java.lang.String value)
public void setChartNumberHeader(java.lang.String value)
public void setControlLimitString(int limittype, java.lang.String limittext)
limittype
- The control limit type. Use one of the control limit constants: SPC_PRIMARY_CONTROL_TARGET, SPC_PRIMARY_LOWER_CONTROL_LIMIT,
SPC_PRIMARY_UPPER_CONTROL_LIMIT, SPC_SECONDARY_CONTROL_TARGET, SPC_SECONDARY_LOWER_CONTROL_LIMIT,
SPC_SECONDARY_UPPER_CONTROL_LIMIT.limittext
- The value of the limit in the SPC chart,public void setControlLimitStrings(java.lang.String[] limittext)
limittext
- An array of string values, one for each control limit in the SPC chart,
sorted in the following order [SPC_PRIMARY_CONTROL_TARGET, SPC_PRIMARY_LOWER_CONTROL_LIMIT,
SPC_PRIMARY_UPPER_CONTROL_LIMIT, SPC_SECONDARY_CONTROL_TARGET, SPC_SECONDARY_LOWER_CONTROL_LIMIT,
SPC_SECONDARY_UPPER_CONTROL_LIMIT].public void setControlLimitValue(int limittype, double limitvalue)
limittype
- The control limit type. Use one of the control limit constants: SPC_PRIMARY_CONTROL_TARGET, SPC_PRIMARY_LOWER_CONTROL_LIMIT,
SPC_PRIMARY_UPPER_CONTROL_LIMIT, SPC_SECONDARY_CONTROL_TARGET, SPC_SECONDARY_LOWER_CONTROL_LIMIT,
SPC_SECONDARY_UPPER_CONTROL_LIMIT.limitvalue
- The value of the limit in the SPC chart,public void setControlLimitValues(double[] limitvalues)
limitvalues
- An array of double values, one for each control limit in the SPC chart,
sorted in the following order [SPC_PRIMARY_CONTROL_TARGET, SPC_PRIMARY_LOWER_CONTROL_LIMIT,
SPC_PRIMARY_UPPER_CONTROL_LIMIT, SPC_SECONDARY_CONTROL_TARGET, SPC_SECONDARY_LOWER_CONTROL_LIMIT,
SPC_SECONDARY_UPPER_CONTROL_LIMIT].public void setCusumHValue(double value)
public void setCusumKValue(double value)
public void setDatalLogEnable(boolean value)
public void setDataLogCSV(CSV value)
public void setDataLogFilename(java.lang.String value)
public void setDataLogFlags(int value)
public void setDataLogUserString(java.lang.String value)
public void setDateHeader(java.lang.String value)
public void setDateString(java.lang.String value)
public static void setDefaultAbsRangeString(java.lang.String value)
public static void setDefaultDataLogFilenameRoot(java.lang.String value)
public static void setDefaultDefectRowHeaderPrefix(java.lang.String value)
public static void setDefaultHighAlarmMessageString(java.lang.String value)
public static void setDefaultLowAlarmMessageString(java.lang.String value)
public static void setDefaultLowControlLimitString(java.lang.String value)
public static void setDefaultMeanString(java.lang.String value)
public static void setDefaultMedianString(java.lang.String value)
public static void setDefaultRangeString(java.lang.String value)
public static void setDefaultSampleRowHeaderPrefix(java.lang.String value)
public static void setDefaultSampleValueString(java.lang.String value)
public static void setDefaultSigmaString(java.lang.String value)
public static void setDefaultSumString(java.lang.String value)
public static void setDefaultTargetString(java.lang.String value)
public static void setDefaultUpperControlLimitString(java.lang.String value)
public static void setDefaultVarianceString(java.lang.String value)
public static void setDefaultXBarString(java.lang.String value)
public static void setDefaultXString(java.lang.String value)
public void setDefectiveDecimalPrecision(int value)
public void setEWMA_Lambda(double value)
public void setEWMA_StartingValue(double value)
public void setEWMA_UseSSLimits(boolean value)
public void setGage(java.lang.String value)
public void setGageHeader(java.lang.String value)
public void setMA_w(int value)
public void setMachine(java.lang.String value)
public void setMachineHeader(java.lang.String value)
public static void setNotesColumString(java.lang.String value)
public void setNotesHeader(java.lang.String value)
public void setNotesMessage(java.lang.String value)
public void setNotesString(java.lang.String notes)
notes
- A string specifying any notes associated with this sample subgrouppublic void setNotesToolTips(NotesToolTip value)
public void setNumberSamplesValueRowHeader(java.lang.String value)
public void setNumRecordsPerChart(int value)
public void setNumSampleCategories(int value)
public void setOperation(java.lang.String value)
public void setOperationHeader(java.lang.String value)
public void setOperatorHeader(java.lang.String value)
public void setPartName(java.lang.String value)
public void setPartNameHeader(java.lang.String value)
public void setPartNumber(java.lang.String value)
public void setPartNumberHeader(java.lang.String value)
public void setPrimaryCalculatedVariableIndex(int value)
public void setProcessCapabilityLSLValue(double value)
public void setProcessCapabilityUSLValue(double value)
public void setProcessMean(double value)
public void setProcessMeanOverride(boolean value)
public void setProcessSigma(double value)
public void setProcessSigmaOverride(boolean value)
public void setSampleRowHeaderString(int item, java.lang.String s)
item
- Sample row header index in the sampleRowHeaderStrings array. *s
- Sample row header string. *public void setSampleSubgroupSize_VSS(int value)
public void setSampleSubgroupSize(int value)
public static void setSampleValueColumnString(java.lang.String value)
public void setSecondaryCalculatedVariableIndex(int value)
public void setSPCChartType(int value)
public void setSpecificationLimits(java.lang.String value)
public void setSpecificationLimitsHeader(java.lang.String value)
public void setTheOperator(java.lang.String value)
public void setTimeStamp(java.util.GregorianCalendar value)
public static void setTimeStampColumnString(java.lang.String value)
public void setTimeValueRowHeader(java.lang.String value)
public void setTitle(java.lang.String value)
public void setTitleHeader(java.lang.String value)
public void setTrainingMode(boolean value)
public void setUnitOfMeasure(java.lang.String value)
public void setUnitOfMeasureHeader(java.lang.String value)
public void setUpdateIndex(int value)
public void setZeroEquals(java.lang.String value)
public void setZeroEqualsHeader(java.lang.String value)
public DoubleArray simulateDefectRecord(double meanvalue)
meanvalue
- Samples are returned using the formula
result[i] = (int) (0.5 + meanvalue * 2 * ChartSupport.getRandomDouble());
public DoubleArray simulateDefectRecord(double meanvalue, int type)
meanvalue
- Samples are returned using the formula
result[i] = (0.5 + (totaldefectiveparts/(numSampleCategories-1)) * 2.5 * ChartSupport.getRandomDouble());type
- The Attribute Control chart type, PERCENT_DEFECTIVE_PARTS_CHART,
FRACTION_DEFECTIVE_PARTS_CHART, NUMBER_DEFECTIVE_PARTS_CHART, NUMBER_DEFECTS_CHART
and NUMBER_DEFECTS_PERUNIT_CHART charts.
public DoubleArray simulateMeasurementRecord(double meanvalue)
meanvalue
- Samples are returned using the formula
result[i] = meanvalue + meanvalue * (0.5 - ChartSupport.getRandomDouble());
public DoubleArray simulateMeasurementRecord(double meanvalue, double range)
meanvalue
- The mean of the simulated values. Samples are returned using the formula
result[i] = meanvalue + range * 1.5 * (0.5 - ChartSupport.getRandomDouble());range
- The range of the simulated value.
public void sortAlarmObjectsByValue(java.util.Vector<SPCControlLimitRecord> sortarray)
public boolean transitionEventCondition(int transitionevent)
transitionevent
- The current alarm transition. Use one of transition constants:
ALARM_TRANSITION_DECREASING_TO_LOW, ALARM_TRANSITION_INCREASING_FROM_LOW, ALARM_TRANSITION_INCREASING_TO_HIGH,
ALARM_TRANSITION_DECREASING_FROM_HIGH, ALARM_TRANSITION_NONE_NORMAL.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |