Download MES User Manual - Inductive Automation

Transcript
SPC Quality
399
getOverdueMin() - double
Returns the default overdue minutes setting for this sample definition. Allowed locations that
belong to this sample definition are initialized with this default setting. The value represents the
number of minutes required after a sample is due until the sample is considered overdue.
setOverdueMin(double overdueMinutes)
Sets the default overdue minutes setting for this sample definition. Allowed locations that
belong to this sample definition are initialized with this default setting. The value represents the
number of minutes required after a sample is due until the sample is considered overdue.
isModified()
Returns true if this sample definition has been modified.
isNew()
Returns true if this sample definition is new.
attribute properties:
addAttribute(SampleDefinitionAttribute attribute) - String
Adds a new attribute defined in the attribute parameter. Any error messages are returned,
otherwise an empty string is returned.
removeAttribute(SampleDefinitionAttribute attribute) - String
Removes the attribute defined in the attribute parameter. Instead of attributes being
permanently removed, thier enabled flag is set to false. Any error messages are returned,
otherwise an empty string is returned.
removeAttribute(int index) - String
Removes the attribute defined in the index parameter. Instead of attributes being permanently
removed, thier enabled flag is set to false. Any error messages are returned, otherwise an
empty string is returned.
removeAttribute(String name) - String
Removes the attribute defined in the name parameter. Instead of attributes being permanently
removed, thier enabled flag is set to false. Any error messages are returned, otherwise an
empty string is returned.
clearAttributes()
All attributes contained in this sample definition are removed. Instead of the attributes being
permanently removed, thier enabled flag is set to false.
getAttribute(String name) - SampleDefinitionAttribute
Returns the attribute with the same name as the name parameter.
getAllAttribute() - List<SampleDefinitionAttribute>
Returns a list of all attributes associated with this sample definition. This function will return
enabled and disabled attributes.
getEnabledAttributes() - List<SampleDefinitionAttribute>
Returns a list of all attributes associated with this sample definition. This function will return
only enabled attributes.
© Inductive Automation