com.quinncurtis.spcchartjava
Class SPCControlChartData

java.lang.Object
  extended by com.quinncurtis.chart2djava.ChartObj
      extended by com.quinncurtis.spcchartjava.SPCControlChartData
All Implemented Interfaces:
ChartConstants, java.lang.Cloneable

public class SPCControlChartData
extends ChartObj

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
 
Fields inherited from interface com.quinncurtis.chart2djava.ChartConstants
ABOVE_CENTERED_PLOTAREA, ABOVE_REFERENCED_TEXT, ABSTRACT_DATASET, ACTUAL_SIZE, ALARM_TRANSITION_DECREASING_FROM_HIGH, ALARM_TRANSITION_DECREASING_TO_LOW, ALARM_TRANSITION_INCREASING_FROM_LOW, ALARM_TRANSITION_INCREASING_TO_HIGH, ALARM_TRANSITION_NONE_HIGH, ALARM_TRANSITION_NONE_LOW, ALARM_TRANSITION_NONE_NORMAL, ALTBARMODE, APRIL, ARC2D_OBJ, ARROW, ARROWPLOT, AUGUST, AUTO_RESIZE_OBJECTS, AUTOAXES_EXACT, AUTOAXES_FAR, AUTOAXES_NEAR, AUTOAXES_STACKED, AUTOAXES_UNSTACKED, AUTOCHART, AUTOSCALE, AXIS, AXIS_CENTER, AXIS_MAX, AXIS_MIN, AXISLABELS, AXISTITLE, BACKGROUND, BACKGROUND_ELLIPSE, BACKGROUND_RECTANGLE, BACKGROUND_ROUNDEDRECTANGLE, BARDATAPOINTVALUE, BARPLOT, BELOW_CENTERED_PLOTAREA, BELOW_REFERENCED_TEXT, BOTH_AXES, BOTTOM_BORDER, BOTTOM_SIDE, BUBBLELEGEND, BUBBLEPLOT, BUBLELEGENDITEM, BUFFERED_IMAGE_RENDERING, BUFFEREDIMAGE, BUSINESSFORMAT, CANDLESTICK, CARTESIAN_COORDINATES, CELL_PLOT, CENTER_GRAPH, CENTER_PLOT, CENTER_RADIUS_BOTTOM, CENTER_RADIUS_LEFT, CENTER_RADIUS_RIGHT, CENTER_RADIUS_TOP, CENTERED_BAR, CHART_FOOTER, CHART_HEADER, CHART_SUBHEAD, CHARTATTRIBUTE, CHARTBRUSHES, CHARTCALENDAR, CHARTPENS, CIRCLE, COLUMN_MAJOR, COMBINE_DATASET_ADD, COMBINE_DATASET_DIVIDE, COMBINE_DATASET_MULTIPLY, COMBINE_DATASET_SUBTRACT, COMBINE_DATASET_X, COMBINE_DATASET_XY, COMBINE_DATASET_Y, CONTOUR_DATASET, CONTOUR_FILL, CONTOUR_LINE, CONTOUR_LINEANDFILL, CONTOUR_LINEPOLYGON, CONTOUR_LINEWALK, CONTOURLINE, COORD_SIZE, CROSS, CROSSOVER_DAY, CROSSOVER_MONTH, CROSSOVER_NONE, CROSSOVER_WEEK, CROSSOVER_YEAR, CURRENCYBUSINESSFORMAT, CURRENCYFORMAT, CUSTOM_POSITION, CUSTOMAXIS, CUSTOMSYMBOL, DATA_MOVEABLE, DATA_TOOLTIP_CUSTOM, DATA_TOOLTIP_GROUP_MULTILINE, DATA_TOOLTIP_OHLC, DATA_TOOLTIP_X, DATA_TOOLTIP_XY_ONELINE, DATA_TOOLTIP_XY_TWOLINE, DATA_TOOLTIP_Y, DATACOMPRESS_AVERAGE, DATACOMPRESS_MAX, DATACOMPRESS_MIN, DATACOMPRESS_MINMAX, DATACOMPRESS_NONE, DATACOMPRESS_SKIP, DATACOMPRESS_SUM, DATACURSOR, DATAVALUE_SYMBOL_SELECTON, DATE, DAY_OF_MONTH, DAY_OF_WEEK, DAY_OF_YEAR, DECEMBER, DECIMALFORMAT, DEFAULTFORMAT, DEV_POS, DIAMOND, DOWNTRIANGLE, EmptyColor, ENGINEERINGFORMAT, ERROR_ARRAY_NEW, ERROR_ARRAY_NEW_STRING, ERROR_AUTOSCALE, ERROR_AUTOSCALE_DATASET, ERROR_AUTOSCALE_DATASET_STRING, ERROR_AUTOSCALE_DATASETSARRAY, ERROR_AUTOSCALE_DATASETSARRAY_STRING, ERROR_AUTOSCALE_STRING, ERROR_AUTOSCALE_TRANSFORM, ERROR_AUTOSCALE_TRANSFORM_STRING, ERROR_AXIS, ERROR_AXIS_STRING, ERROR_AXISLABLES, ERROR_AXISLABLES_STRING, ERROR_AXISRANGE, ERROR_AXISRANGE_STRING, ERROR_AXISTICKS, ERROR_AXISTICKS_STRING, ERROR_BAD_POLYSURFACE, ERROR_BAD_POLYSURFACE_STRING, ERROR_BARDATAVALUE, ERROR_BARDATAVALUE_STRING, ERROR_BORDER, ERROR_BORDER_STRING, ERROR_COMPONENT, ERROR_COMPONENT_STRING, ERROR_CONTOURDATASET, ERROR_CONTOURDATASET_STRING, ERROR_DATASET, ERROR_DATASET_STRING, ERROR_DATASETSIZE, ERROR_DATASETSIZE_STRING, ERROR_DELAUNAY, ERROR_DELAUNAY_STRING, ERROR_FILECLOSE, ERROR_FILECLOSE_STRING, ERROR_FILEIO, ERROR_FILEIO_STRING, ERROR_FILEOPEN, ERROR_FILEOPEN_STRING, ERROR_FILEREAD, ERROR_FILEREAD_STRING, ERROR_FILEWRITE, ERROR_FILEWRITE_STRING, ERROR_FONT, ERROR_FONT_STRING, ERROR_GRID_ROW_COL, ERROR_GRID_ROW_COL_STRING, ERROR_GROUPDATASET, ERROR_GROUPDATASET_STRING, ERROR_IMAGE, ERROR_IMAGE_STRING, ERROR_INVALID_ALARM_EVENT_ARGUEMENT, ERROR_INVALID_ALARM_EVENT_ARGUEMENT_STRING, ERROR_INVALID_ROUNDED_RECTANGLE_ARGUEMENT, ERROR_INVALID_ROUNDED_RECTANGLE_ARGUEMENT_STRING, ERROR_LEGEND, ERROR_LEGEND_STRING, ERROR_LEGENDITEMSYMBOL, ERROR_LEGENDITEMSYMBOL_STRING, ERROR_LEGENDITEMTEXT, ERROR_LEGENDITEMTEXT_STRING, ERROR_NONE, ERROR_NONE_STRING, ERROR_NULL_ANNUNCIATOR_RECT, ERROR_NULL_ANNUNCIATOR_RECT_STRING, ERROR_NULL_METER_INDICATOR, ERROR_NULL_METER_INDICATOR_STRING, ERROR_NULL_PLOT_TEMPLATE, ERROR_NULL_PLOT_TEMPLATE_STRING, ERROR_NULL_PROCESSVAR, ERROR_NULL_PROCESSVAR_STRING, ERROR_NULLBASEAXIS, ERROR_NULLBASEAXIS_STRING, ERROR_NULLVIEWPORT, ERROR_NULLVIEWPORT_STRING, ERROR_OBJ_NEW, ERROR_OBJ_NEW_STRING, ERROR_OBJECTMISMATCH, ERROR_OBJECTMISMATCH_STRING, ERROR_PLOTOBJ, ERROR_PLOTOBJ_STRING, ERROR_POLARAXES, ERROR_POLARAXES_STRING, ERROR_SCALERANGE, ERROR_SCALERANGE_STRING, ERROR_SCALING, ERROR_SCALING_STRING, ERROR_SHAPE, ERROR_SHAPE_STRING, ERROR_SIMPLEDATASET, ERROR_SIMPLEDATASET_STRING, ERROR_SMALLVIEWPORT, ERROR_SMALLVIEWPORT_STRING, ERROR_SUPERZOOM, ERROR_SUPERZOOM_STRING, ERROR_SYMBOL, ERROR_SYMBOL_STRING, ERROR_TEXT, ERROR_TEXT_STRING, ERROR_TIMELABEL, ERROR_TIMELABEL_STRING, ERROR_WRONGAXISTYPE, ERROR_WRONGAXISTYPE_STRING, ERRORBAR, EXPONENTFORMAT, FASTCLIP_X, FASTCLIP_Y, FEBRUARY, FIXED_X_ASPECT_RATIO_CORRECTION, FIXED_Y_ASPECT_RATIO_CORRECTION, FLOATINGBAR, FNP_DIST, FNP_NORMDIST, FNP_NORMX, FNP_NORMY, FNP_X, FNP_Y, FRIDAY, FRONT_FACE_SELECTION, FULL_PLOTAREA_CLIPPING, FULL_POLYSURFACE_SELECTION, GRADIENT_MAPTO_GRAPH_NORMALIZED_COORDINATES, GRADIENT_MAPTO_OBJECT, GRADIENT_MAPTO_PLOT_NORMALIZED_COORDINATES, GRADIENT_MAPTO_PLOT_PHYSICAL_COORDINATES, GRADIENT_NONE, GRAPH_AREA_CLIPPING, GRAPH_BACKGROUND, GRAPHAREA_BOTTOM, GRAPHAREA_LEFT, GRAPHAREA_RIGHT, GRAPHAREA_TOP, GRAPHTITLE, GRID, GRID_ALL, GRID_MAJOR, GRID_MINOR, GROUP_DATASET, GROUPBAR, HBAR, HIGHLIGHT_COLOR, HISTOGRAMPLOT, HORIZ_DIR, HOUR, HOUR_OF_DAY, ICHARTOBJECTPLOT, IMAGE, INHERIT_CLIPPING, INSET_3D_LOOK, INSIDE_BAR, INSIDE_BARBASE, INSIDE_INDICATOR, INSIDE_PLOTAREA_MAX, INSIDE_PLOTAREA_MIN, INSIDE_RADIUS_BOTTOM, INSIDE_RADIUS_TOP, JANUARY, JULY, JUNE, JUSTIFY_CENTER, JUSTIFY_MAX, JUSTIFY_MIN, LABEL_ALL, LABEL_INTERCEPT, LABEL_MAX, LABEL_MIN, LABEL_ORIGIN, LEFT_BORDER, LEFT_BUTTON, LEFT_CENTERED_PLOTAREA, LEFT_REFERENCED_TEXT, LEFT_SIDE, LEGEND, LEGEND_FOOTER, LEGEND_HEADER, LEGEND_SUBHEAD, LEGENDITEM, LIGHT_LOWER_LEFT, LIGHT_LOWER_RIGHT, LIGHT_NONE, LIGHT_STRAIGHT_ON, LIGHT_UPPER_LEFT, LIGHT_UPPER_RIGHT, LINE, LINEAR_AUTOSCALE, LINEAR_SCALE, LINEAR_SCALE_OBJ, LINEARAXIS, LINEGAP, LINEMARKERPLOT, LINEPLOT, LM_S, LOG_AUTOSCALE, LOG_SCALE, LOG_SCALE_OBJ, LOGAXIS, LS_DASH_2_2, LS_DASH_4_2, LS_DASH_4_4, LS_DASH_8_4, LS_DASH_DOT, LS_DOT_1_1, LS_DOT_1_2, LS_DOT_1_4, LS_DOT_1_8, LS_SOLID, MANUAL_RESIZE_OBJECTS, MARCH, MARKER, MARKER_BOX, MARKER_CROSS, MARKER_HLINE, MARKER_HVLINE, MARKER_NULL, MARKER_VLINE, MAX_LOG_VALUE, MAY, METER_LABEL_HORIZONTAL, METER_LABEL_PERPENDICULAR, METER_LABEL_RADIAL_1, METER_LABEL_RADIAL_2, MILLISECOND, MIN_LOG_VALUE, MINUTE, MONDAY, MONTH, MOVE_X, MOVE_XY, MOVE_Y, MOVING_AVERAGE_X, MOVING_AVERAGE_XY, MOVING_AVERAGE_Y, MTICKS, MULTILINE, NEITHER_AXIS, NO_ASPECT_RATIO_CORRECTION, NO_AUTOSCALE, NO_CLIPPING, NO_DATECROSSOVER, NO_FASTCLIP, NO_RESIZE_OBJECTS, NO_SELECTION, NO_STEP, NOOBJECT, NORM_GRAPH_POS, NORM_PLOT_POS, NORM_PROBABILITY_SCALE_OBJ, NOSYMBOL, NOT_MOVEABLE, NOT_SPECIALCONTROL_TYPE, NOVEMBER, NUMERIC_COORDINATE, NUMERICAXISLABELS, NUMERICLABEL, OBJECT_DISABLE, OBJECT_ENABLE, OBJECT_ENABLE_NODRAW, OBJECT_MOVEABLE, OCTOBER, OHLC, OUTSET_3D_LOOK, OUTSIDE_BAR, OUTSIDE_BARBASE, OUTSIDE_INDICATOR, OUTSIDE_PLOTAREA_MAX, OUTSIDE_PLOTAREA_MIN, OUTSIDE_RADIUS_BOTTOM, OUTSIDE_RADIUS_TOP, OVERLAP_LABEL_DELETE, OVERLAP_LABEL_DRAW, OVERLAP_LABEL_STAGGER, PERCENT_NOPERCENTSIGN_FORMAT, PERCENTFORMAT, PHYS_POS, PHYSICAL_COORDINATES, PICTUREBOX_TYPE, PIECHART, PIELABEL_INSLICE, PIELABEL_NONE, PIELABEL_NUMVALUE, PIELABEL_OUTSLICE, PIELABEL_STRING, PIELABEL_STRINGNUMVAL, PLOT_AREA_CLIPPING, PLOT_BACKGROUND, PLOTAREA_CENTER, PLUS, POLAR_AXIS, POLAR_COORDINATES, POLAR_POS, POLARAXES, POLARAXESLABELS, POLARGRID, POLARLINEPLOT, POLARSCATTERPLOT, POLYSURFACE_SQUAREGRID, POLYSURFACE_TRIANGLEGRID, PRE_RENDER_ALL, PRE_RENDER_AXES, PRE_RENDER_NONE, PRE_RENDER_ZORDER_CHANGE, PRINTER_RENDERING, PROBABILITY_AUTOSCALE, PROBABILITY_AXIS, PROBABILITY_COORDINATES, PROBABILITY_SCALE, PROBABILITY_SIGMA_AXIS, PRT_EXACT, PRT_MAX, PRT_PROP, PRT_RECT, RADIOBUTTON_TYPE, RADIUS_BOTTOM, RADIUS_CENTER, RADIUS_LEFT, RADIUS_RIGHT, RADIUS_TOP, rBadDataValue, RENDER_HIGHQUALITY, RENDER_LOWQUALITY, RENDER_STANDARDQUALITY, REPLACE_DATECROSSOVER, RIGHT_BORDER, RIGHT_BUTTON, RIGHT_CENTERED_PLOTAREA, RIGHT_REFERENCED_TEXT, RIGHT_SIDE, ROUNDED_RECTANGLE2D, ROW_MAJOR, RT_3DFRAME, RT_ALARM, RT_ALARM_GREATERTHAN, RT_ALARM_INDICATOR, RT_ALARM_LIMIT_BACKGROUND_INDICATOR, RT_ALARM_LIMIT_LINE_INDICATOR, RT_ALARM_LIMIT_SYMBOL_INDICATOR, RT_ALARM_LOWERTHAN, RT_ALARM_NONE, RT_ALARM_PANEL_METER, RT_ANNUNCIATOR_PLOT, RT_AUTO_BARGRAPH, RT_AUTO_METER, RT_AUTO_SCROLL_GRAPH, RT_AUTOSCALE_X, RT_AUTOSCALE_X_CURRENT_SCALE, RT_AUTOSCALE_X_MAX, RT_AUTOSCALE_X_MIN, RT_AUTOSCALE_X_MINMAX, RT_AUTOSCALE_Y, RT_AUTOSCALE_Y_CURRENT_SCALE, RT_AUTOSCALE_Y_MAX, RT_AUTOSCALE_Y_MIN, RT_AUTOSCALE_Y_MINMAX, RT_BAR_INDICATOR, RT_BAR_NUMERIC_VALUE, RT_BAR_SEGMENTED_SUBTYPE, RT_BAR_SINGLE_SEGMENT_SUBTYPE, RT_BAR_SOLID_SUBTYPE, RT_BAR_TIME_VALUE, RT_BARTAG, RT_BOTTOM_HIGH_ALARM_SYMBOL, RT_BOTTOM_LOW_ALARM_SYMBOL, RT_BOTTOM_SETPOINT_SYMBOL, RT_CEILING_VALUE, RT_COMBO_PROCESSVAR, RT_CONTROL_BUTTON_TYPE, RT_CONTROL_MOMENTARYBUTTON_SUBTYPE, RT_CONTROL_RADIOBUTTON_SUBTYPE, RT_CONTROL_SCROLLBAR_TYPE, RT_CONTROL_TOGGLEBUTTON_SUBTYPE, RT_CONTROL_TRACKBAR_TYPE, RT_CUSTOM_STRING, RT_DATASET, RT_DETALED_DESCRIPTION_STRING, RT_DISPLAY_ALL_ALARMS, RT_DISPLAY_NO_ALARM, RT_DISPLAY_PRIMARY_ALARM, RT_FIXEDEXTENT_AUTOWRAP_AUTOSCROLL, RT_FIXEDEXTENT_MOVINGSTART_AUTOSCROLL, RT_FIXEDNUMPOINT_AUTOSCROLL, RT_FLOOR_VALUE, RT_FORM_CONTROL, RT_FORM_CONTROL_GRID, RT_FORM_CONTROL_PANEL_METER, RT_GEN_SHAPE, RT_GRAPH_OBJ, RT_GROUP_DATASET, RT_GROUP_MULTIVALUE_PLOT, RT_INDICATOR_COLOR_CHANGE_ON_ALARM, RT_INDICATOR_COLOR_NO_ALARM_CHANGE, RT_INDICATORRECT_CONTROL_SIZE, RT_LEFT_HIGH_ALARM_SYMBOL, RT_LEFT_LOW_ALARM_SYMBOL, RT_LEFT_SETPOINT_SYMBOL, RT_MAXEXTENT_FIXEDSTART_AUTOSCROLL, RT_METER_ARC_BAND_SUBTYPE, RT_METER_ARC_FLAT_CAP, RT_METER_ARC_INDICATOR, RT_METER_ARC_RADIUS_CAP, RT_METER_ARC_WEDGE_WIDTH_CAP, RT_METER_AXIS, RT_METER_AXIS_LABELS, RT_METER_COORDINATES, RT_METER_FACEPLATE, RT_METER_INDICATOR, RT_METER_NEEDLE_ARROW_SUBTYPE, RT_METER_NEEDLE_INDICATOR, RT_METER_NEEDLE_PIEWEDGE_SUBTYPE, RT_METER_NEEDLE_SIMPLE_SUBTYPE, RT_METER_SEGMENTED_ARC_SUBTYPE, RT_METER_SINGLE_SEGMENT_ARC_SUBTYPE, RT_METER_SINGLE_SYMBOL_SUBTYPE, RT_METER_STRING_AXIS_LABELS, RT_METER_SYMBOL_ARC_SUBTYPE, RT_METER_SYMBOL_INDICATOR, RT_MIN_CONTROL_SIZE, RT_MONOTONIC_X_MODE, RT_MULTIALARM_INDICATOR, RT_MULTIBAR_INDICATOR, RT_MULTIPOINTER_INDICATOR, RT_MULTIVALUE_ANNUNCIATOR, RT_MULTIVALUE_INDICATOR, RT_NMETER, RT_NO_ALARM_LIMIT_INDICATOR, RT_NO_AUTOSCALE_X, RT_NO_AUTOSCALE_Y, RT_NO_SYMBOL, RT_NOT_MONOTONIC_X_MODE, RT_NUMERIC_PANEL_METER, RT_ORIG_CONTROL_SIZE, RT_PIDCONTROL, RT_PLOT, RT_POINTER_INDICATOR, RT_POINTER_SUBTYPE, RT_PROCESSVAR, RT_PROCESSVAR_ALARM, RT_RIGHT_HIGH_ALARM_SYMBOL, RT_RIGHT_LOW_ALARM_SYMBOL, RT_RIGHT_SETPOINT_SYMBOL, RT_ROUND_VALUE, RT_SCROLL_FRAME, RT_SETPOINT_VALUE, RT_SHAPE_ELLIPSE, RT_SHAPE_RECTANGLE, RT_SHAPE_ROUNDEDRECTANGLE, RT_SHORT_DESCRIPTION_STRING, RT_SIMPLE_DATASET, RT_SIMPLE_SINGLEVALUE_PLOT, RT_SINGLE_CHANNEL_PANEL_METER, RT_SINGLE_VALUE_INDICATOR, RT_STRING_PANEL_METER, RT_SYMBOL, RT_TAG_STRING, RT_TEXT_BACKGROUND_COLOR_CHANGE_ON_ALARM, RT_TEXTFRAME, RT_TIME_GROUP_DATASET, RT_TIME_PANEL_METER, RT_TIME_SIMPLE_DATASET, RT_TOP_HIGH_ALARM_SYMBOL, RT_TOP_LOW_ALARM_SYMBOL, RT_TOP_SETPOINT_SYMBOL, RT_TRACKBAR_HORIZONTAL_CENTER_POINTER, RT_TRACKBAR_HORIZONTAL_DOWN_POINTER, RT_TRACKBAR_VERTICAL_CENTER_POINTER, RT_TRACKBAR_VERTICAL_RIGHT_POINTER, RT_UNIQUEID_STRING, RT_UNITS_STRING, RTPID_POSITIONCONTROL, RTPID_VELOCITYCONTROL, SATURDAY, SCALE_FACTOR_SIZE, SCATTERPLOT, SCIENTIFICFORMAT, SCREEN_RENDERING, SCROLLBAR_TYPE, SECOND, SECONDSPERDAY, SEPTEMBER, SHADOW_COLOR, SHAPE, SIGMA_FORMAT, SIMPLE_DATASET, SIMPLE_PLOTAREA_CLIPPING, SIMPLEBUTTON_TYPE, SIMPLECOLORMODE, SIMPLEGRADIENTMODE, SIZE_BUBBLE_AREA, SIZE_BUBBLE_RADIUS, sizeOfDouble, SQUARE, STACKEDBAR, STACKEDLINE, STAR, STEP_END, STEP_NO_RISE_LINE, STEP_START, STRINGAXISLABELS, STRINGLABEL, SUNDAY, SYMBOL, TEXT, THURSDAY, TICK_MAJOR, TICK_MINOR, TICKS, TIME_AUTOSCALE, TIME_COORDINATE, TIME_COORDINATES, TIME_GROUP_DATASET, TIME_SCALE, TIME_SCALE_OBJ, TIME_SIMPLE_DATASET, TIMEAXIS, TIMEAXIS_10MINUTEMINUTE, TIMEAXIS_10SECONDSECOND, TIMEAXIS_10YEARYEAR, TIMEAXIS_12HOURHOUR, TIMEAXIS_15MINUTEMINUTE, TIMEAXIS_15SECONDSECOND, TIMEAXIS_20YEAR5YEAR, TIMEAXIS_2HOURHOUR, TIMEAXIS_2MINUTEMINUTE, TIMEAXIS_2SECONDSECOND, TIMEAXIS_30MINUTEMINUTE, TIMEAXIS_30SECONDSECOND, TIMEAXIS_4HOURHOUR, TIMEAXIS_50YEAR10YEAR, TIMEAXIS_5MINUTEMINUTE, TIMEAXIS_5SECONDSECOND, TIMEAXIS_5YEARYEAR, TIMEAXIS_8HOURHOUR, TIMEAXIS_DAY, TIMEAXIS_DAY12HOUR, TIMEAXIS_DAY2HOUR, TIMEAXIS_DAY4HOUR, TIMEAXIS_DAY8HOUR, TIMEAXIS_DAYHOUR, TIMEAXIS_HOUR, TIMEAXIS_HOUR10MINUTE, TIMEAXIS_HOUR15MINUTE, TIMEAXIS_HOUR2MINUTE, TIMEAXIS_HOUR30MINUTE, TIMEAXIS_HOUR5MINUTE, TIMEAXIS_HOURMINUTE, TIMEAXIS_MILLISECOND, TIMEAXIS_MILLISECOND1, TIMEAXIS_MILLISECOND2, TIMEAXIS_MILLISECOND3, TIMEAXIS_MINUTE, TIMEAXIS_MINUTE10SECOND, TIMEAXIS_MINUTE15SECOND, TIMEAXIS_MINUTE2SECOND, TIMEAXIS_MINUTE30SECOND, TIMEAXIS_MINUTE5SECOND, TIMEAXIS_MINUTESECOND, TIMEAXIS_MONTH, TIMEAXIS_MONTHDAY, TIMEAXIS_MONTHWEEK, TIMEAXIS_QUARTER, TIMEAXIS_QUARTERMONTH, TIMEAXIS_SECOND, TIMEAXIS_SECONDMILLISECOND, TIMEAXIS_WEEK, TIMEAXIS_WEEKDAY, TIMEAXIS_YEAR, TIMEAXIS_YEARMONTH, TIMEAXIS_YEARQUARTER, TIMEAXISLABELS, TIMEBASE_DAY, TIMEBASE_HOUR, TIMEBASE_MILLISECOND, TIMEBASE_MINUTE, TIMEBASE_MONTH, TIMEBASE_SECOND, TIMEBASE_TICKS, TIMEBASE_WEEK, TIMEBASE_YEAR, TIMEDATEFORMAT, TIMEDATEFORMAT_12HM, TIMEDATEFORMAT_12HMS, TIMEDATEFORMAT_12HMSD, TIMEDATEFORMAT_12HMSDD, TIMEDATEFORMAT_24HM, TIMEDATEFORMAT_24HMS, TIMEDATEFORMAT_24HMSD, TIMEDATEFORMAT_24HMSDD, TIMEDATEFORMAT_D, TIMEDATEFORMAT_DDD, TIMEDATEFORMAT_DDDD, TIMEDATEFORMAT_DMY, TIMEDATEFORMAT_DMY2000, TIMEDATEFORMAT_M, TIMEDATEFORMAT_MDY, TIMEDATEFORMAT_MDY2000, TIMEDATEFORMAT_MMM, TIMEDATEFORMAT_MMMM, TIMEDATEFORMAT_MS, TIMEDATEFORMAT_MSD, TIMEDATEFORMAT_MSDD, TIMEDATEFORMAT_MSDDD, TIMEDATEFORMAT_MY, TIMEDATEFORMAT_MY2000, TIMEDATEFORMAT_NONE, TIMEDATEFORMAT_Q, TIMEDATEFORMAT_STANDARD, TIMEDATEFORMAT_Y, TIMEDATEFORMAT_Y2000, TIMELABEL, TOP_BORDER, TOP_SIDE, TRACKBAR_TYPE, TransparentColor, TUESDAY, UNDECIMBER, UNDER_DATECROSSOVER, UPTRIANGLE, USER_COORD_MAX, USER_COORDINATES, USER_POS, USERGRADIENTMODE, USERTEXTUREMODE, VBAR, VERT_DIR, WEDNESDAY, WEEK_5D, WEEK_7D, WEEK_OF_MONTH, WEEK_OF_YEAR, WORKING_COORDINATES, WORLD_COORDINATES, X_AXIS, XY_MAXZ_PLANE, XY_MINZ_PLANE, XY_PLANE, XZ_MAXY_PLANE, XZ_MINY_PLANE, XZ_PLANE, Y_AXIS, YEAR, YZ_MAXX_PLANE, YZ_MINX_PLANE, YZ_PLANE, Z_AXIS, ZOOM
 
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

CUSTOM_ATTRIBUTE_CONTROL_CHART

public static final int CUSTOM_ATTRIBUTE_CONTROL_CHART
Chart type constant: Custom SPC Attribute Control Chart (unused)

See Also:
Constant Field Values

CUSTOM_VARIABLE_CONTROL_CHART

public static final int CUSTOM_VARIABLE_CONTROL_CHART
Chart type constant: Custom SPC Variable Control Chart (not used)

See Also:
Constant Field Values

DATALOG_FILE_ALL

public static final int DATALOG_FILE_ALL
Datalog flag specifying that all available items should be logged to the file.

See Also:
Constant Field Values

DATALOG_FILE_BATCH_NUMBER

public static final int DATALOG_FILE_BATCH_NUMBER
Datalog flag specifying that the batch number should be logged to the file.

See Also:
Constant Field Values

DATALOG_FILE_CALCULATED_VALUES

public static final int DATALOG_FILE_CALCULATED_VALUES
Datalog flag specifying that the calculated values should be logged to the file.

See Also:
Constant Field Values

DATALOG_FILE_COLUMN_HEADS

public static final int DATALOG_FILE_COLUMN_HEADS
Datalog flag specifying that the column heads should be logged to the file.

See Also:
Constant Field Values

DATALOG_FILE_CONTROL_LIMIT_VALUES

public static final int DATALOG_FILE_CONTROL_LIMIT_VALUES
Datalog flag specifying that the control limit values should be logged to the file.

See Also:
Constant Field Values

DATALOG_FILE_NOTES

public static final int DATALOG_FILE_NOTES
Datalog flag specifying that the notes should be logged to the file.

See Also:
Constant Field Values

DATALOG_FILE_PROCESS_CAPABILITY_VALUES

public static final int DATALOG_FILE_PROCESS_CAPABILITY_VALUES
Datalog flag specifying that the control limit values should be logged to the file.

See Also:
Constant Field Values

DATALOG_FILE_SAMPLED_VALUES

public static final int DATALOG_FILE_SAMPLED_VALUES
Datalog flag specifying that the sampled values should be logged to the file.

See Also:
Constant Field Values

DATALOG_FILE_TIME_STAMP

public static final int DATALOG_FILE_TIME_STAMP
Datalog flag specifying that the time stamp should be logged to the file.

See Also:
Constant Field Values

DATALOG_USER_STRING

public static final int DATALOG_USER_STRING
Datalog flag specifying that the file prefix row ist NOT to be included. Using this options will make the file incompatible with the SPCControlChartData routines that read data files.

See Also:
Constant Field Values

EWMA_CHART

public static final int EWMA_CHART
Chart type constant: Exponential weighted moving average chart

See Also:
Constant Field Values

FRACTION_DEFECTIVE_PARTS_CHART

public static final int FRACTION_DEFECTIVE_PARTS_CHART
Chart type constant: Fraction Defective Parts (p-chart) Control Chart

See Also:
Constant Field Values

FRACTION_DEFECTIVE_PARTS_CHART_VSS

public static final int FRACTION_DEFECTIVE_PARTS_CHART_VSS
Chart type constant: Fraction Defective Parts (p-chart) Control Chart variable sample size

See Also:
Constant Field Values

HEADER_STRINGS_LEVEL0

public static final int HEADER_STRINGS_LEVEL0
SPC Chart header level constant: display no header strings.

See Also:
Constant Field Values

HEADER_STRINGS_LEVEL1

public static final int HEADER_STRINGS_LEVEL1
SPC Chart header level constant: display minimal header strings, title, partNumber, chartNumber, dateString

See Also:
Constant Field Values

HEADER_STRINGS_LEVEL2

public static final int HEADER_STRINGS_LEVEL2
SPC Chart header level constant: display most header strings, title, partNumber, chartNumber, partName, operation, operator, machine, dateString

See Also:
Constant Field Values

HEADER_STRINGS_LEVEL3

public static final 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

See Also:
Constant Field Values

INDIVIDUAL_RANGE_CHART

public static final int INDIVIDUAL_RANGE_CHART
Chart type constant: Individual Range (Individual X) SPC Variable Control Chart

See Also:
Constant Field Values

MA_CHART

public static final int MA_CHART
Chart type constant: moving average chart

See Also:
Constant Field Values

MEAN_RANGE_CHART

public static final int MEAN_RANGE_CHART
Chart type constant: Mean and Range (X-Bar R) SPC Variable Control Chart (

See Also:
Constant Field Values

MEAN_SIGMA_CHART

public static final int MEAN_SIGMA_CHART
Chart type constant: Mean and Sigma (X-Bar Sigma) SPC Variable Control Chart

See Also:
Constant Field Values

MEAN_SIGMA_CHART_VSS

public static final int MEAN_SIGMA_CHART_VSS
Chart type constant: Mean and Sigma (X-Bar Sigma) SPC Variable Control Chart

See Also:
Constant Field Values

MEAN_VARIANCE_CHART

public static final int MEAN_VARIANCE_CHART
Chart type constant: Mean and Variance (X-Bar Variance) SPC Variable Control Chart

See Also:
Constant Field Values

MEDIAN_RANGE_CHART

public static final int MEDIAN_RANGE_CHART
Chart type constant: Median and Range (Median-Range) SPC Variable Control Chart

See Also:
Constant Field Values

NO_DATALOG_FILE_PREFIX

public static final int NO_DATALOG_FILE_PREFIX
Datalog flag specifying that the file prefix row ist NOT to be included. Using this options will make the file incompatible with the SPCControlChartData routines that read data files.

See Also:
Constant Field Values

NUMBER_DEFECTIVE_PARTS_CHART

public static final int NUMBER_DEFECTIVE_PARTS_CHART
Chart type constant: Number Defective Parts (np-chart) Control Chart

See Also:
Constant Field Values

NUMBER_DEFECTS_CHART

public static final int NUMBER_DEFECTS_CHART
Chart type constant: Number Defects (c-chart) Control Chart

See Also:
Constant Field Values

NUMBER_DEFECTS_PERUNIT_CHART

public static final int NUMBER_DEFECTS_PERUNIT_CHART
Chart type constant: Number Defects per Unit (u-chart) Control Chart

See Also:
Constant Field Values

NUMBER_DEFECTS_PERUNIT_CHART_VSS

public static final int NUMBER_DEFECTS_PERUNIT_CHART_VSS
Chart type constant: Number Defects per Unit (u-chart) Control Chart variable sample size

See Also:
Constant Field Values

PERCENT_DEFECTIVE_PARTS_CHART

public static final int PERCENT_DEFECTIVE_PARTS_CHART
Chart type constant: Percent Defective Parts (p-chart) Control Chart

See Also:
Constant Field Values

PERCENT_DEFECTIVE_PARTS_CHART_VSS

public static final int PERCENT_DEFECTIVE_PARTS_CHART_VSS
Chart type constant: Percentage Defective Parts (p-chart) Control Chart variable sample size

See Also:
Constant Field Values

REPORT_ALL_ALARMS

public static final int REPORT_ALL_ALARMS
Report all alarms.

See Also:
Constant Field Values

REPORT_FIRST_ALARM

public static final int REPORT_FIRST_ALARM
Break alarm checking after firsrt alarm encountered.

See Also:
Constant Field Values

SPC_PRIMARY_CONTROL_TARGET

public static final int SPC_PRIMARY_CONTROL_TARGET
Index of primary chart target control limit in controlLimitData array.

See Also:
Constant Field Values

SPC_PRIMARY_LOWER_CONTROL_LIMIT

public static final int SPC_PRIMARY_LOWER_CONTROL_LIMIT
Index of primary chart lower control limit in controlLimitData array.

See Also:
Constant Field Values

SPC_PRIMARY_UPPER_CONTROL_LIMIT

public static final int SPC_PRIMARY_UPPER_CONTROL_LIMIT
Index of primary chart upper control limit in controlLimitData array.

See Also:
Constant Field Values

SPC_SECONDARY_CONTROL_TARGET

public static final int SPC_SECONDARY_CONTROL_TARGET
Index of secondary chart target control limit in controlLimitData array.

See Also:
Constant Field Values

SPC_SECONDARY_LOWER_CONTROL_LIMIT

public static final int SPC_SECONDARY_LOWER_CONTROL_LIMIT
Index of secondary chart lower control limit in controlLimitData array.

See Also:
Constant Field Values

SPC_SECONDARY_UPPER_CONTROL_LIMIT

public static final int SPC_SECONDARY_UPPER_CONTROL_LIMIT
Index of secondary chart upper control limit in controlLimitData array.

See Also:
Constant Field Values

TABCUSUM_CHART

public static final int TABCUSUM_CHART
Chart type constant: Tabular Cusum chart

See Also:
Constant Field Values
Constructor Detail

SPCControlChartData

public SPCControlChartData()
Default constructor for an SPC Control chart.


SPCControlChartData

public SPCControlChartData(int charttype,
                           int numsamplecategories,
                           int numrecordsperchart,
                           double timeincrementminutes)
Constructor for a Variable Control chart SPCControlChartData class.

Parameters:
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_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. *
timeincrementminutes - Specifies the normal time increment between adjacent subgroup samples. *

SPCControlChartData

public SPCControlChartData(int charttype,
                           int numsamplecategories,
                           int numrecordsperchart,
                           int samplesize,
                           double timeincrementminutes)
Constructor for an Attribute Control chart SPCControlChartData class.

Parameters:
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. *

SPCControlChartData

public SPCControlChartData(int charttype,
                           int numsamplecategories,
                           int numrecordsperchart,
                           StringArray samplerowheadstrings,
                           int samplesize,
                           double timeincrementminutes)
Constructor for an Attribute Control chart SPCControlChartData class.

Parameters:
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

addAlarmStateEventListener

public void addAlarmStateEventListener(SPCAlarmEventListener listener)
Add an alarm state event listener to this process variable.

Parameters:
listener - The listener for alarm state events generated by this object.

addAlarmTransitionEventListener

public void addAlarmTransitionEventListener(SPCAlarmEventListener listener)
Add an alarm transition event listener to this process variable.

Parameters:
listener - The listener for alarm transition events generated by this object.

addNewSampleRecord

public int addNewSampleRecord(DoubleArray samples)
Add a new sample record to a batch-based SPC chart.

Parameters:
samples - Array of new sample values. *
Returns:
Returns the current number of records.

addNewSampleRecord

public int addNewSampleRecord(DoubleArray samples,
                              java.lang.String notes)
Add a new sample record, with notes, to a batch-based SPC chart.

Parameters:
samples - Array of new sample values. *
notes - A string specifying any notes associated with this sample subgroup *
Returns:
Returns the current number of records.

addNewSampleRecord

public int addNewSampleRecord(double timestamp,
                              DoubleArray samples)
Add a new sample record, with notes, to a batch-based SPC chart.

Parameters:
timestamp - Batch number of the sample. *
samples - Array of new sample values. *
Returns:
Returns the current number of records.

addNewSampleRecord

public int addNewSampleRecord(double timestamp,
                              DoubleArray samples,
                              DoubleArray controllimits)
Add a new sample record to a batch-based SPC chart that plots variable control limits.

Parameters:
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) *
Returns:
Returns the current number of records.

addNewSampleRecord

public 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.

Parameters:
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 *
Returns:
Returns the current number of records.

addNewSampleRecord

public int addNewSampleRecord(double timestamp,
                              DoubleArray samples,
                              java.lang.String notes)
Add a new sample record, with notes, to a batch-based SPC chart.

Parameters:
timestamp - Batch number of the sample. *
samples - Array of new sample values. *
notes - A string specifying any notes associated with this sample subgroup *
Returns:
Returns the current number of records.

addNewSampleRecord

public int addNewSampleRecord(double x,
                              java.util.GregorianCalendar timestamp,
                              DoubleArray samples)
Add a new sample record to a numeric-based SPC chart.

Parameters:
x - Batch number of the sample. *
timestamp - Time stamp for the current sample record. *
samples - Array of new sample values. *
Returns:
Returns the current number of records.

addNewSampleRecord

public 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.

Parameters:
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) *
Returns:
Returns the current number of records.

addNewSampleRecord

public 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.

Parameters:
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 *
Returns:
Returns the current number of records.

addNewSampleRecord

public 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 .

Parameters:
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 *
Returns:
Returns the current number of records.

addNewSampleRecord

public int addNewSampleRecord(java.util.GregorianCalendar timestamp,
                              DoubleArray samples)
Add a new sample record to a time-based SPC chart.

Parameters:
timestamp - Time stamp for the current sample record. *
samples - Array of new sample values. *
Returns:
Returns the current number of records.

addNewSampleRecord

public 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.

Parameters:
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) *
Returns:
Returns the current number of records.

addNewSampleRecord

public 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.

Parameters:
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 *
Returns:
Returns the current number of records.

addNewSampleRecord

public 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.

Parameters:
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 *
Returns:
Returns the current number of records.

addProcessCapabilityValue

public void addProcessCapabilityValue(int pcindex)
If set true enables the process capability value


appendCurrentRecordValuesToDataLog

public 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. A CSV file can be read by popular spreadsheet and word processing programs. Some localization for different operating systems and locales can be handled by the modifying the default csv (CSV) object.

Parameters:
csv - An instance of an CSV object.
filename - The name of the file.
Returns:
Returns 0 if sucessful, an error code otherwise.

appendNotesString

public 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.

Parameters:
index - Sample interval index *
notes - A string specifying any notes associated with this sample subgroup
after - Set to true and the notes string is appended after the current notes string

appendNotesString

public void appendNotesString(java.lang.String notes,
                              boolean after)
Append the specified string to the current the notes string for the current record.

Parameters:
notes - A string specifying any notes associated with this sample subgroup
after - Set to true and the notes string is appended after the current notes string.

assumeTrainingMode

public boolean assumeTrainingMode()
If all alarm limit values are 0.0, assume alarms have not been set, therefore training mode.


calcRangeBasedDecimalPos

public static int calcRangeBasedDecimalPos(double range)
Calculate the decimal precision used to display calculated values in the data table.

Parameters:
range - The range of the values.
Returns:
Returns the decimal precision used to display calculated values in the data table.

calculateControlLimits

public void calculateControlLimits(DoubleArray controllimits)
Calculate the control limits


clone

public java.lang.Object clone()
Returns an object that is a clone of this object.

Overrides:
clone in class java.lang.Object
Returns:
Returns a clone of this object.

controlLimitInitialized

public boolean controlLimitInitialized(int item)
Returns true if the control limit record at the index is initiated.

Parameters:
item - The index of the desired SPCControlLimitRecord in the controlLimitValues array.
Returns:
Returns true if the control limit record at the index is initiated.

copy

public void copy(SPCControlChartData source)
Copies the source object.

Parameters:
source - The source object.

dataLogFileOpenForWrite

public 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. A CSV file can be read by popular spreadsheet and word processing programs. Some localization for different operating systems and locales can be handled by the modifying the default csv (CSV) object. Uses the dataLogFlags property as the guide to reading the values of the file, so that property must be properly initialized for the data file being read.

Returns:
Returns 0 if sucessful, an error code otherwise.

dataLogFileOpenForWrite

public 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. A CSV file can be read by popular spreadsheet and word processing programs. Some localization for different operating systems and locales can be handled by the modifying the default csv (CSV) object.

Parameters:
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.
Returns:
Returns 0 if sucessful, an error code otherwise.

dataLogFileOpenForWrite

public 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. A CSV file can be read by popular spreadsheet and word processing programs. Some localization for different operating systems and locales can be handled by the modifying the default csv (CSV) object.

Parameters:
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.
Returns:
Returns 0 if sucessful, an error code otherwise.

dataLogFileOpenForWrite

public 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. A CSV file can be read by popular spreadsheet and word processing programs. Some localization for different operating systems and locales can be handled by the modifying the default csv (CSV) object. Uses the dataLogFlags property as the guide to reading the values of the file, so that property must be properly initialized for the data file being read.

Parameters:
filename - The name of the file.
Returns:
Returns 0 if sucessful, an error code otherwise.

dataLogFileOpenForWrite

public 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. A CSV file can be read by popular spreadsheet and word processing programs. Some localization for different operating systems and locales can be handled by the modifying the default csv (CSV) object.

Parameters:
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.
Returns:
Returns 0 if sucessful, an error code otherwise.

dataLogFileOpenForWrite

public 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. A CSV file can be read by popular spreadsheet and word processing programs. Some localization for different operating systems and locales can be handled by the modifying the default csv (CSV) object.

Parameters:
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.
Returns:
Returns 0 if sucessful, an error code otherwise.

excludeRecordFromControlLimitCalculations

public void excludeRecordFromControlLimitCalculations(int item,
                                                      boolean exclude)
Exclude the specified record from the SOC control limit calculations.

Parameters:
item - The index of the item to exclude.
exclude - Set true and the item is excluded. Set false and it is included.

getAlarmReportMode

public int getAlarmReportMode()
Specifies whether only first alarm reported, or all alarms.


getAlarmStateEventEnable

public boolean getAlarmStateEventEnable()
Set to True to signify that any alarm should invoke the AlarmStateEventHandler.


getAlarmStateEventListeners

public java.util.Vector<SPCAlarmEventListener> getAlarmStateEventListeners()
Get the alarm state event listener vector.

Returns:
Returns the alarm state event listener vector.

getAlarmStatusValueRowHeader

public java.lang.String getAlarmStatusValueRowHeader()
The data table time value row header.


getAlarmTimeFormatString

public java.lang.String getAlarmTimeFormatString()
Get the TimeFormater string used to format time values for alarm reporting.


getAlarmTransitionEventEnable

public boolean getAlarmTransitionEventEnable()
Set to True to signify that any change in an alarm state should invoke the AlarmTransitionEventHandler.


getAlarmTransitionEventListeners

public java.util.Vector<SPCAlarmEventListener> getAlarmTransitionEventListeners()
Get the alarm transition event listener vector.

Returns:
Returns the alarm transition event listener vector.

getAutoLogAlarmsAsNotes

public boolean getAutoLogAlarmsAsNotes()
Get true to automatically log alarm conditions to the samples intervals notes object.


getBatchColumnHeadString

public static java.lang.String getBatchColumnHeadString()
Default string used as the batch number column head in the log file. The default value is "Batch #"


getBatchNumberValue

public double getBatchNumberValue(int col)
Get the group number value at the specified index.

Parameters:
col - The time index used to access the group number in the groupNumberValues array.
Returns:
Returns the group number value at the specified index.

getCalculatedValue

public double getCalculatedValue(int row,
                                 int column)
Get a calcualted value at a specific row (index) and column (time).

Parameters:
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..

getCalculatedValueRecord

public SPCCalculatedValueRecord getCalculatedValueRecord(int item)
Get the calculated value record at the specified index.

Parameters:
item - The time index used to access the calculated value record in the calculatedValues array.
Returns:
Returns the group number value at the specified index.

getChartNumber

public java.lang.String getChartNumber()
Get data table chart number string.


getChartNumberHeader

public java.lang.String getChartNumberHeader()
Get the header for the chartNumber field.


getControlLimit

public double getControlLimit(int limittype)
Get the value of a specific SPC chart limit.

Parameters:
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.
Returns:
Returns the value of the specified SPC control limit.

getControlLimitRecord

public SPCControlLimitRecord getControlLimitRecord(int item)
Get the control limit record at the specified index.

Parameters:
item - The index of the desired SPCControlLimitRecord in the controlLimitValues array.
Returns:
Returns the SPCControlLimitRecord at the specified index.

getControlLimitString

public java.lang.String getControlLimitString(int limittype)
Get the text for a specific SPC chart limit.

Parameters:
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.
Returns:
Returns the value of the specified SPC control limit.

getControlLimitText

public java.lang.String getControlLimitText(int item)
Get the control limit text at the specified index.

Parameters:
item - The index of the desired SPCControlLimitRecord in the controlLimitValues array.
Returns:
Returns the control limit text at the specified index.

getControlLimitValue

public double getControlLimitValue(int row)
Get a control limit value (for charts with variable control limits) at a specific row (index) and column (time).

Parameters:
row - The index of the SPCControlLimitRecord record in the controlLimitValues array.

getControlLimitValue

public 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).

Parameters:
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..

getCurrentNumberRecords

public int getCurrentNumberRecords()
Get the current number of records for the chart.


getCusumHValue

public double getCusumHValue()
Get the cuSum H value


getCusumKValue

public double getCusumKValue()
Get the cuSum K value


getDatalLogEnable

public boolean getDatalLogEnable()
Returns true if data logging enabled. If a data log file has not been previously opened with DataLogFileOpenForWrite, a new data log file is created using the default name, combined with a time stamp.


getDataLogCSV

public CSV getDataLogCSV()
The CSV (Comma Separated Value) specifyier for the logging data SPC data to a file.


getDataLogFilename

public java.lang.String getDataLogFilename()
The string used as the file name for data logging. Set when the DataLogFileOpenForWrite is called.


getDataLogFlags

public int getDataLogFlags()
Get the flags that control 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.


getDataLogUserString

public 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.


getDateHeader

public java.lang.String getDateHeader()
Get the header for the dateString field.


getDateString

public java.lang.String getDateString()
Get data table date string.


getDefaultAbsRangeString

public static java.lang.String getDefaultAbsRangeString()
Default string used to the y-axis of secondary chart of I-R charts.


getDefaultDataLogFilenameRoot

public static java.lang.String getDefaultDataLogFilenameRoot()
Default string used as the default file name for data logging. Only used if data logging turned on and the DataLogFileOpenForWrite has not been initialized with an explicit filename. The current time is appended to the root to make it a unique filename.


getDefaultDefectRowHeaderPrefix

public static java.lang.String getDefaultDefectRowHeaderPrefix()
Get the default symbol used for the row headers of the sample data items.


getDefaultHighAlarmMessageString

public static java.lang.String getDefaultHighAlarmMessageString()
Default string used as the high alarm message for a low control limit.


getDefaultLowAlarmMessageString

public static java.lang.String getDefaultLowAlarmMessageString()
Default string used to the label the target lower control limit line of the chart.


getDefaultLowControlLimitString

public static java.lang.String getDefaultLowControlLimitString()
Default string used to the label the target low control limit line of the chart.


getDefaultMeanString

public static java.lang.String getDefaultMeanString()
Default string used to title the y-axis of mean graphs.


getDefaultMedianString

public static java.lang.String getDefaultMedianString()
Default string used to title the y-axis of median graphs.


getDefaultRangeString

public static java.lang.String getDefaultRangeString()
Default string used to title the y-axis of range graphs.


getDefaultSampleRowHeaderPrefix

public static java.lang.String getDefaultSampleRowHeaderPrefix()
Get the default symbol used for the row headers of the sample data items.


getDefaultSampleValueString

public static java.lang.String getDefaultSampleValueString()
Default string used to the y-axis of primary chart of I-R charts.


getDefaultSigmaString

public static java.lang.String getDefaultSigmaString()
Default string used to title the y-axis of sigma graphs.


getDefaultSumString

public static java.lang.String getDefaultSumString()
Default string used to title the sum table row.


getDefaultTargetString

public static java.lang.String getDefaultTargetString()
Default string used to the label the target control limit line of the chart.


getDefaultUpperControlLimitString

public static java.lang.String getDefaultUpperControlLimitString()
Default string used to the label the target upper control limit line of the chart.


getDefaultVarianceString

public static java.lang.String getDefaultVarianceString()
Default string used to title the y-axis of variance graphs.


getDefaultXBarString

public static java.lang.String getDefaultXBarString()
Default string used to title primary chart.


getDefaultXString

public static java.lang.String getDefaultXString()
Default string used to the primary chart of I-R charts.


getDefectiveDecimalPrecision

public int getDefectiveDecimalPrecision()
Get the default value to use for the decimal precision used to display defective item counts, -1 = auto.


getEnableProcessCapabilityValue

public boolean getEnableProcessCapabilityValue(int pcindex)
Get enable of process capability value


getEWMA_Lambda

public double getEWMA_Lambda()
Get the lambda value for EWMA calculations.


getEWMA_StartingValue

public double getEWMA_StartingValue()
Get the lambda value for EWMA calculations.


getEWMA_UseSSLimits

public boolean getEWMA_UseSSLimits()
Get EWMA steady-state limits


getGage

public java.lang.String getGage()
Get data table gage string.


getGageHeader

public java.lang.String getGageHeader()
Get the header for the gage field.


getMA_w

public int getMA_w()
Get the MA length value for MA calculations.


getMachine

public java.lang.String getMachine()
Get data table machine string.


getMachineHeader

public java.lang.String getMachineHeader()
Get the header for the machine field.


getNotesColumString

public static java.lang.String getNotesColumString()
Default string used as the notes column head in the log file. The default value is "Notes"


getNotesHeader

public java.lang.String getNotesHeader()
Get the data table notes header string.


getNotesMessage

public java.lang.String getNotesMessage()
Get data table notes message string.


getNotesString

public java.lang.String getNotesString(int col)
Get the notes string at the specified index.

Parameters:
col - The time index used to access the string in the notesString array.
Returns:
Returns the notes string at the specified index.

getNotesToolTips

public NotesToolTip getNotesToolTips()
Get the notes tool tip.


getNumberOfSamplesPerSubgroup

public double getNumberOfSamplesPerSubgroup(int col)
Get the number of samples per subgroup value at the specified index.

Parameters:
col - The time index used to access the number of samples per group value in the numberSamplesPerSubgroup array.
Returns:
Returns the number of samples per subgroup value at the specified index.

getNumberSamplesValueRowHeader

public java.lang.String getNumberSamplesValueRowHeader()
Get the data table number of samples row header.


getNumCalculatedValues

public int getNumCalculatedValues()
Get number of calculated values for each record in the chart.


getNumProcessCapabilityValues

public int getNumProcessCapabilityValues()
Get number of process capability values for each record in the chart.


getNumRecordsPerChart

public int getNumRecordsPerChart()
Get the maximum number of records displayable at one time in the chart.


getNumSampleCategories

public int getNumSampleCategories()
Get the number of categories in an Attribute Control chart. numSampleCategories == sampleSubgroupSize for Variable Control Charts


getOperation

public java.lang.String getOperation()
Get data table operation string.


getOperationHeader

public java.lang.String getOperationHeader()
Get the header for the operation field.


getOperatorHeader

public java.lang.String getOperatorHeader()
Get the header for the theOperator field.


getPartName

public java.lang.String getPartName()
Get data table part name string.


getPartNameHeader

public java.lang.String getPartNameHeader()
Get the header for the partName field.


getPartNumber

public java.lang.String getPartNumber()
Get data table part number string.


getPartNumberHeader

public java.lang.String getPartNumberHeader()
Get the header for the partNumber field.


getPrimaryCalculatedVariableIndex

public int getPrimaryCalculatedVariableIndex()
Get index in the calculatedValues array for the primary calculated value data.


getPrimaryControlLimits

public 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.

Parameters:
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. *

getProcessCapabilityLSLValue

public double getProcessCapabilityLSLValue()
Get the LSL value for this record.


getProcessCapabilityRecord

public SPCProcessCapabilityRecord getProcessCapabilityRecord(int item)
Get the process capability value record at the specified index.

Parameters:
item - The time index used to access the process capability value record in the processCapabilityValues array.
Returns:
Returns the group number value at the specified index.

getProcessCapabilityUSLValue

public double getProcessCapabilityUSLValue()
Get the USL value for this record.


getProcessCapabilityValue

public double getProcessCapabilityValue(int row,
                                        int column)
Get a process capability value at a specific row (index) and column (time).

Parameters:
row - The index of the SPCProcessCapabilityRecord record in the in the processCapabilityValues array.
Returns:
column The time index of the item in the SPCProcessCapabilityRecord.CalculatedValues array..

getProcessMean

public double getProcessMean()
Get the process mean


getProcessMeanOverride

public boolean getProcessMeanOverride()
Returns the the processMeanOverride


getProcessSigma

public double getProcessSigma()
Get the process sigma


getProcessSigmaOverride

public boolean getProcessSigmaOverride()
Returns the processSigmaOverride


getSampledValue

public double getSampledValue(int row,
                              int col)
Get a sampled value at a specific row (index) and column (time).

Parameters:
row - The index of the item in the sampledValues array.
col - The time index of the item in the SPCSampledValueRecord.SampledValues array..
Returns:
Returns the sample value at the specified row and column.

getSampleRowHeaderString

public java.lang.String getSampleRowHeaderString(int item)
Get data table row header for the sampled (or category) item.

Parameters:
item - Sample row header index in the sampleRowHeaderStrings array. *
Returns:
Returns data table row header for the sampled (or category) item.

getSampleSubgroupSize_VSS

public int getSampleSubgroupSize_VSS()
Get the number of samples in a sample sub group for a Variable Control chart.


getSampleSubgroupSize

public int getSampleSubgroupSize()
Get the number of samples in a sample sub group for a Variable Control chart.


getSampleValueColumnString

public static java.lang.String getSampleValueColumnString()
Default string used as the sample value column head in the log file. The default value is "Sample #"


getSecondaryCalculatedVariableIndex

public int getSecondaryCalculatedVariableIndex()
Get index in the calculatedValues array for the secondary calculated value data.


getSecondaryControlLimits

public 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.

Parameters:
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.

getSPCChartType

public 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 .


getSpecificationLimits

public java.lang.String getSpecificationLimits()
Get data table specification limits string.


getSpecificationLimitsHeader

public java.lang.String getSpecificationLimitsHeader()
Get the header for the specificationLimits field.


getTheOperator

public java.lang.String getTheOperator()
Get data table operator string.


getTimeStamp

public java.util.GregorianCalendar getTimeStamp()
Get the time stamp for the most recent sample data added to the class.


getTimeStampColumnString

public static java.lang.String getTimeStampColumnString()
Default string used as the time stamp column head in the log file. The default value is "Time Stamp"


getTimeValue

public java.util.GregorianCalendar getTimeValue(int col)
Get the time stamp value at the specified index.

Parameters:
col - The time index used to access the time stamp value in the timeStampValues array.
Returns:
Returns the time stamp value at the specified index.

getTimeValueRowHeader

public java.lang.String getTimeValueRowHeader()
The data table time value row header.


getTitle

public java.lang.String getTitle()
Get data table title string.


getTitleHeader

public java.lang.String getTitleHeader()
Get the header for the title field.


getTotalSampleSigma

public double getTotalSampleSigma()
Returns the standard deviation for all samples.

Returns:
Returns true if the control limit record at the index is initiated.

getTrainingMode

public boolean getTrainingMode()
Get the maximum number of records displayable at one time in the chart.


getUnitOfMeasure

public java.lang.String getUnitOfMeasure()
Get data table unit of measure string.


getUnitOfMeasureHeader

public java.lang.String getUnitOfMeasureHeader()
Get the header for the unit of measure field.


getUpdateIndex

public int getUpdateIndex()
Get the EWMA index value


getYAxisTitle

public 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.

Parameters:
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_SOURCE
index - The index of the item in the source sampledValues or calculatedValues array.
Returns:
Returns a string that is used as the axis title for the associated chart.

getZeroEquals

public java.lang.String getZeroEquals()
Get data table zero equals string.


getZeroEqualsHeader

public java.lang.String getZeroEqualsHeader()
Get the header for the zeroEqulas field.


isControlLimit

public boolean isControlLimit(SPCControlLimitRecord controllimitrecord)
Returns true if the control limit record at the index is initiated.

Parameters:
controllimitrecord - The index of the desired SPCControlLimitRecord in the controlLimitValues array.
Returns:
Returns true if the control limit record at the index is initiated.

isSampledValueValid

public boolean isSampledValueValid(int row,
                                   int col)
Returns true if the row and col index are valid, in the case of variable sample sizes..

Parameters:
row - The index of the item in the sampledValues array.
col - The time index of the item in the SPCSampledValueRecord.SampledValues array..
Returns:
Returns true if the row and col index are valid, in the case of variable sample sizes.

outputAllValuesToDataLog

public 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. A CSV file can be read by popular spreadsheet and word processing programs. Some localization for different operating systems and locales can be handled by the modifying the default csv (CSV) object.

Parameters:
csv - An instance of an CSV object.
filename - The name of the file.
Returns:
Returns 0 if sucessful, an error code otherwise.

outputAllValuesToDataLog

public 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. A CSV file can be read by popular spreadsheet and word processing programs. Some localization for different operating systems and locales can be handled by the modifying the default csv (CSV) object.

Parameters:
filename - The name of the file.
Returns:
Returns 0 if sucessful, an error code otherwise.

readAllValuesFromFile

public 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. A CSV file can be read by popular spreadsheet and word processing programs. Some localization for different operating systems and locales can be handled by the modifying the default csv (CSV) object.

Parameters:
csv - An instance of an CSV object.
filename - The name of the file.
Returns:
Returns 0 if sucessful, an error code otherwise.

readAllValuesFromFile

public 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. A CSV file can be read by popular spreadsheet and word processing programs. Some localization for different operating systems and locales can be handled by the modifying the default csv (CSV) object.

Parameters:
filename - The name of the file.
Returns:
Returns 0 if sucessful, an error code otherwise.

readAllValuesFromFile

public 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. A CSV file can be read by popular spreadsheet and word processing programs. Some localization for different operating systems and locales can be handled by the modifying the default csv (CSV) object. Uses the DataLogCSV property for the CSV parameters and the DataLogFlags property for the file column format specifier.

Parameters:
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.
Returns:
Returns 0 if sucessful, an error code otherwise.

removeAlarmStateEventListener

public void removeAlarmStateEventListener(SPCAlarmEventListener listener)
Remove an alarm state event listener to this process variable.

Parameters:
listener - The listener for alarm state events generated by this object.

removeAlarmTransitionEventListener

public void removeAlarmTransitionEventListener(SPCAlarmEventListener listener)
Remove an alarm transition event listener to this process variable.

Parameters:
listener - The listener for alarm transition events generated by this object.

resetSPCChartData

public void resetSPCChartData()
Reset the history buffers of all of the SPC data objects.


save

public 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. A CSV file can be read by popular spreadsheet and word processing programs. Some localization for different operating systems and locales can be handled by the modifying the default csv (CSV) object.

Parameters:
csv - An instance of an CSV object.
filename - The name of the file.
Returns:
Returns 0 if sucessful, an error code otherwise.

save

public 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. A CSV file can be read by popular spreadsheet and word processing programs. This version of Save assumes CSV values are organized in a ROW_MAJOR format.

Parameters:
filename - The name of the file.
Returns:
Returns the current number of records.

setAlarmReportMode

public void setAlarmReportMode(int value)
Specifies whether only first alarm reported, or all alarms.


setAlarmStateEventEnable

public void setAlarmStateEventEnable(boolean value)
Set to True to signify that any alarm should invoke the AlarmStateEventHandler.


setAlarmStatusValueRowHeader

public void setAlarmStatusValueRowHeader(java.lang.String value)
The data table time value row header.


setAlarmTimeFormatString

public void setAlarmTimeFormatString(java.lang.String formatstring)
Set the TimeFormater string used to format time values for alarm reporting.


setAlarmTransitionEventEnable

public void setAlarmTransitionEventEnable(boolean value)
Set to True to signify that any change in an alarm state should invoke the AlarmTransitionEventHandler.


setAutoLogAlarmsAsNotes

public void setAutoLogAlarmsAsNotes(boolean value)
Set true to automatically log alarm conditions to the samples intervals notes object.


setBatchColumnHeadString

public static void setBatchColumnHeadString(java.lang.String value)
Default string used as the batch number column head in the log file. The default value is "Batch #"


setChartNumber

public void setChartNumber(java.lang.String value)
Set data table chart number string.


setChartNumberHeader

public void setChartNumberHeader(java.lang.String value)
Set/Get the header for the chartNumber field.


setControlLimitString

public void setControlLimitString(int limittype,
                                  java.lang.String limittext)
Set the SPC text for a specific SPC chart limit.

Parameters:
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,

setControlLimitStrings

public void setControlLimitStrings(java.lang.String[] limittext)
Set the SPC control limit text for an SPC control chart.

Parameters:
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].

setControlLimitValue

public void setControlLimitValue(int limittype,
                                 double limitvalue)
Set the SPC value of a specific SPC chart limit.

Parameters:
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,

setControlLimitValues

public void setControlLimitValues(double[] limitvalues)
Set the SPC control limit values for an SPC control chart.

Parameters:
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].

setCusumHValue

public void setCusumHValue(double value)
Set the cuSum H value


setCusumKValue

public void setCusumKValue(double value)
Set the cuSum K value


setDatalLogEnable

public void setDatalLogEnable(boolean value)
Set to true to enable data logging. If a data log file has not been previously opened with DataLogFileOpenForWrite, a new data log file is created using the default name, combined with a time stamp.


setDataLogCSV

public void setDataLogCSV(CSV value)
The CSV (Comma Separated Value) specifyier for the logging data SPC data to a file.


setDataLogFilename

public void setDataLogFilename(java.lang.String value)
The string used as the file name for data logging. Set when the DataLogFileOpenForWrite is called.


setDataLogFlags

public void setDataLogFlags(int value)
Set the flags that control 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.


setDataLogUserString

public 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.


setDateHeader

public void setDateHeader(java.lang.String value)
Set the header for the dateString field.


setDateString

public void setDateString(java.lang.String value)
Set data table date string.


setDefaultAbsRangeString

public static void setDefaultAbsRangeString(java.lang.String value)
Default string used to the y-axis of secondary chart of I-R charts.


setDefaultDataLogFilenameRoot

public static void setDefaultDataLogFilenameRoot(java.lang.String value)
Default string used as the default file name for data logging. Only used if data logging turned on and the DataLogFileOpenForWrite has not been initialized with an explicit filename. The current time is appended to the root to make it a unique filename.


setDefaultDefectRowHeaderPrefix

public static void setDefaultDefectRowHeaderPrefix(java.lang.String value)
Set the default symbol used for the row headers of the sample data items.


setDefaultHighAlarmMessageString

public static void setDefaultHighAlarmMessageString(java.lang.String value)
Default string used as the high alarm message for a low control limit.


setDefaultLowAlarmMessageString

public static void setDefaultLowAlarmMessageString(java.lang.String value)
Default string used to the label the target lower control limit line of the chart.


setDefaultLowControlLimitString

public static void setDefaultLowControlLimitString(java.lang.String value)
Default string used to the label the target low control limit line of the chart.


setDefaultMeanString

public static void setDefaultMeanString(java.lang.String value)
Default string used to title the y-axis of mean graphs.


setDefaultMedianString

public static void setDefaultMedianString(java.lang.String value)
Default string used to title the y-axis of median graphs.


setDefaultRangeString

public static void setDefaultRangeString(java.lang.String value)
Default string used to title the y-axis of range graphs.


setDefaultSampleRowHeaderPrefix

public static void setDefaultSampleRowHeaderPrefix(java.lang.String value)
Set the default symbol used for the row headers of the sample data items.


setDefaultSampleValueString

public static void setDefaultSampleValueString(java.lang.String value)
Default string used to the y-axis of primary chart of I-R charts.


setDefaultSigmaString

public static void setDefaultSigmaString(java.lang.String value)
Default string used to title the y-axis of sigma graphs.


setDefaultSumString

public static void setDefaultSumString(java.lang.String value)
Default string used to title the sum table row.


setDefaultTargetString

public static void setDefaultTargetString(java.lang.String value)
Default string used to the label the target control limit line of the chart.


setDefaultUpperControlLimitString

public static void setDefaultUpperControlLimitString(java.lang.String value)
Default string used to the label the target upper control limit line of the chart.


setDefaultVarianceString

public static void setDefaultVarianceString(java.lang.String value)
Default string used to title the y-axis of variance graphs.


setDefaultXBarString

public static void setDefaultXBarString(java.lang.String value)
Default string used to title primary chart.


setDefaultXString

public static void setDefaultXString(java.lang.String value)
Default string used to the primary chart of I-R charts.


setDefectiveDecimalPrecision

public void setDefectiveDecimalPrecision(int value)
Set the default value to use for the decimal precision used to display defective item counts, -1 = auto.


setEWMA_Lambda

public void setEWMA_Lambda(double value)
Set the lambda value for EWMA calculations.


setEWMA_StartingValue

public void setEWMA_StartingValue(double value)
Set the lambda value for EWMA calculations.


setEWMA_UseSSLimits

public void setEWMA_UseSSLimits(boolean value)
Set EWMA steady-state limits


setGage

public void setGage(java.lang.String value)
Set data table gage string.


setGageHeader

public void setGageHeader(java.lang.String value)
Set/Get the header for the gage field.


setMA_w

public void setMA_w(int value)
Set the MA length value for MA calculations.


setMachine

public void setMachine(java.lang.String value)
Set data table machine string.


setMachineHeader

public void setMachineHeader(java.lang.String value)
Set the header for the machine field.


setNotesColumString

public static void setNotesColumString(java.lang.String value)
Default string used as the notes column head in the log file. The default value is "Notes"


setNotesHeader

public void setNotesHeader(java.lang.String value)
Set the data table notes header string.


setNotesMessage

public void setNotesMessage(java.lang.String value)
Set data table notes message string.


setNotesString

public void setNotesString(java.lang.String notes)
Set the notes string for the current record to the specified string.

Parameters:
notes - A string specifying any notes associated with this sample subgroup

setNotesToolTips

public void setNotesToolTips(NotesToolTip value)
Set the notes tool tip.


setNumberSamplesValueRowHeader

public void setNumberSamplesValueRowHeader(java.lang.String value)
Set the data table number of samples row header.


setNumRecordsPerChart

public void setNumRecordsPerChart(int value)
Set the maximum number of records displayable at one time in the chart.


setNumSampleCategories

public void setNumSampleCategories(int value)
Set the number of categories in an Attribute Control chart. numSampleCategories == sampleSubgroupSize for Variable Control Charts


setOperation

public void setOperation(java.lang.String value)
Set data table operation string.


setOperationHeader

public void setOperationHeader(java.lang.String value)
Set the header for the operation field.


setOperatorHeader

public void setOperatorHeader(java.lang.String value)
Set the header for the theOperator field.


setPartName

public void setPartName(java.lang.String value)
Set data table part name string.


setPartNameHeader

public void setPartNameHeader(java.lang.String value)
Sett the header for the partName field.


setPartNumber

public void setPartNumber(java.lang.String value)
Set data table part number string.


setPartNumberHeader

public void setPartNumberHeader(java.lang.String value)
Set the header for the partNumber field.


setPrimaryCalculatedVariableIndex

public void setPrimaryCalculatedVariableIndex(int value)
Set index in the calculatedValues array for the primary calculated value data.


setProcessCapabilityLSLValue

public void setProcessCapabilityLSLValue(double value)
Set the LSL value for this record.


setProcessCapabilityUSLValue

public void setProcessCapabilityUSLValue(double value)
Set the USL value for this record.


setProcessMean

public void setProcessMean(double value)
Set the process mean


setProcessMeanOverride

public void setProcessMeanOverride(boolean value)
Use the processMean rather than calculate from data


setProcessSigma

public void setProcessSigma(double value)
Set the process sigma


setProcessSigmaOverride

public void setProcessSigmaOverride(boolean value)
Set to true to use the processSigma rather than calculate from data


setSampleRowHeaderString

public void setSampleRowHeaderString(int item,
                                     java.lang.String s)
Set data table row header for the sampled (or category) item.

Parameters:
item - Sample row header index in the sampleRowHeaderStrings array. *
s - Sample row header string. *

setSampleSubgroupSize_VSS

public void setSampleSubgroupSize_VSS(int value)
Set the number of samples in a sample sub group for a Variable Control chart.


setSampleSubgroupSize

public void setSampleSubgroupSize(int value)
Set the number of samples in a sample sub group for a Variable Control chart.


setSampleValueColumnString

public static void setSampleValueColumnString(java.lang.String value)
Default string used as the sample value column head in the log file. The default value is "Sample #"


setSecondaryCalculatedVariableIndex

public void setSecondaryCalculatedVariableIndex(int value)
Set index in the calculatedValues array for the secondary calculated value data.


setSPCChartType

public 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 .


setSpecificationLimits

public void setSpecificationLimits(java.lang.String value)
Set data table specification limits string.


setSpecificationLimitsHeader

public void setSpecificationLimitsHeader(java.lang.String value)
Set the header for the specificationLimits field.


setTheOperator

public void setTheOperator(java.lang.String value)
Set data table operator string.


setTimeStamp

public void setTimeStamp(java.util.GregorianCalendar value)
Set the time stamp for the most recent sample data added to the class.


setTimeStampColumnString

public static void setTimeStampColumnString(java.lang.String value)
Default string used as the time stamp column head in the log file. The default value is "Time Stamp"


setTimeValueRowHeader

public void setTimeValueRowHeader(java.lang.String value)
The data table time value row header.


setTitle

public void setTitle(java.lang.String value)
Set data table title string.


setTitleHeader

public void setTitleHeader(java.lang.String value)
Set the header for the title field.


setTrainingMode

public void setTrainingMode(boolean value)
Set the maximum number of records displayable at one time in the chart.


setUnitOfMeasure

public void setUnitOfMeasure(java.lang.String value)
Set data table unit of measure string.


setUnitOfMeasureHeader

public void setUnitOfMeasureHeader(java.lang.String value)
Set the header for the unit of measure field.


setUpdateIndex

public void setUpdateIndex(int value)
Set the EWMA index value


setZeroEquals

public void setZeroEquals(java.lang.String value)
Set data table zero equals string.


setZeroEqualsHeader

public void setZeroEqualsHeader(java.lang.String value)
Set the header for the zeroEqulas field.


simulateDefectRecord

public DoubleArray simulateDefectRecord(double meanvalue)
Simulates a defect measurement for a SPC Attribute Control chart with a specified mean. Used with NUMBER_DEFECTS_CHART and NUMBER_DEFECTS_PERUNIT_CHART charts.

Parameters:
meanvalue - Samples are returned using the formula result[i] = (int) (0.5 + meanvalue * 2 * ChartSupport.getRandomDouble());
Returns:
Returns an array, size numSampleCategories, of double, holding the simulated defect data.

simulateDefectRecord

public DoubleArray simulateDefectRecord(double meanvalue,
                                        int type)
Simulates a defect record for a SPC Attribute Control chart with a specified mean. The total number of defects will be greater than or equal to the total number of defective parts.

Parameters:
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.
Returns:
Returns an array, size numSampleCategories, of double, holding the simulated defect data.

simulateMeasurementRecord

public DoubleArray simulateMeasurementRecord(double meanvalue)
Simulates a sample measurement for a SPC Variable Control chart with a specified mean value.

Parameters:
meanvalue - Samples are returned using the formula result[i] = meanvalue + meanvalue * (0.5 - ChartSupport.getRandomDouble());
Returns:
Returns an array, size sampleSubGroupSize, of double, holding the simulated sample data.

simulateMeasurementRecord

public DoubleArray simulateMeasurementRecord(double meanvalue,
                                             double range)
Simulates a sample measurement for a SPC Variable Control chart with a specified mean and range.

Parameters:
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.
Returns:
Returns an array, size sampleSubGroupSize, of double, holding the simulated sample data.

sortAlarmObjectsByValue

public void sortAlarmObjectsByValue(java.util.Vector<SPCControlLimitRecord> sortarray)
This method sorts the objects in the controlLimitValues array in the ascending value of their alarm value.


transitionEventCondition

public boolean transitionEventCondition(int transitionevent)
Returns true if an alarm transition has taken place.

Parameters:
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.
Returns:
Returns true if an alarm transition has taken place.