Attribute Data Type

Sepasoft MES Module Suite

SPC Sample Attribute Data Types

The attribute data type object contains the available data types of a sample attribute.

Available Data Types

INTEGER

Attribute can contain positive or negative numeric values with no fractions. It has a minimum value of -2,147,483,648 and a maximum value of 2,147,483,647 (inclusive).

REAL

Attribute can contain double-precision 64-bit IEEE 754 floating point values.

Samples with a data type of "Real" are localized to the proper decimal format based on the "locale" property in Perspective Session props.

Large numbers (such as 1,000,000 vs 1.000.000) are NOT localized.

BOOLEAN

Attribute can contain a true or false value.

INSPECTED_COUNT

Attribute can contain a counting number (1, 2, 3, 4, …) and represents a number of items inspected for a attribute samples. This attribute data type is recognized and required by the p, np, c and u control charts.

NONCONFORMING_COUNT

Attribute can contain a counting number (1, 2, 3, 4, …) and represents a number of nonconforming items (defective items) for a attribute samples. This attribute data type is recognized and required by the p and np control charts.

NONCONFORMITY_COUNT

Attribute can contain a counting number (1, 2, 3, 4, …) and represents the number of nonconformities items that have (deformities) for a attribute samples. This attribute data type is recognized and required by the c and u control charts. 

Object Functions


convert(attrValue)

Description

Returns value in the true java data type for the type of data this attribute data type represents.

Syntax

 convert(attrValue)


  • Parameters

Object attrValue - The attribute value to be converted.

  • Returns

The value in java data type.

dataTypeToType(dataType)

Description

Return a reference to a SPC attribute data type from an Ignition data type. For example, an Ignition data type of Float8 will be a attribute data type of Real.

Syntax

dataTypeToType(dataType)


  • Parameters

DataType dataType - Ignition DataType reference that represents the type of data for a sample attribute.

  • Returns

AttributeDataType - A reference to a AttributeDataType value that matches.

getJavaType()

Description

Returns the java data type for this attribute data type.

Syntax

getJavaType()


  • Parameters

None

  • Returns

The java data type corresponding to this attribute data type.

getText()

Description

Returns the user friendly localized text for the attribute data type.

Syntax

getText()


  • Parameters

None

  • Returns

The localized text for this attribute data type.

intToType(ordinal)

Description

Return a reference to a SPC attribute data type from the ordinal value.

Syntax

intToType(ordinal)


  • Parameters

int ordinal - A valid AttributeDataType ordinal value.

  • Returns

AttributeDataType - A reference to a AttributeDataType value that matches.

isLogical()

Description

Returns true if the attribute data type is boolean.

Syntax

  isLogical()


  • Parameters

None

  • Returns

 True, if the attribute data type is boolean.

isNumeric()

Description

Returns true if the attribute data type handles numbers.

Syntax

 isNumeric()


  • Parameters

None

  • Returns

 True, if the attribute data type handles numbers.




Sepasoft MES Module Suite