MESItemRecipe

Sepasoft MES Module Suite

MESItemRecipe Object

The MESItemRecipe Object is an AbstractMESObject that stores value overrides for an Equipment's default collection of settings within the Settings and Changeover. The MESItemRecipe maintains a single Equipment reference, and represents the Equipment item under an MESRecipe or MESSubRecipe. The overrides are stored in MESRecipeValueComplexPropery entries, each with a name and default-value reference UUID that matches a corresponding Equipment MESRecipeValueDefComplexProperty.

With the get and set methods described below, MESItemRecipes can be managed via script rather than through graphical components.  This is especially helpful when recipe-related content is imported from other systems or maintained through a custom graphical interface.

Object Creation

The following functions can be used to create this object.

  • system.recipe.addItemToRecipe
  • system.recipe.createSubProductCode



Object Properties

This object inherits the AbstractMESObject properties...


Object Functions

This object provides the following functions:

 

getEquipmentRefUUID()

Description

Retrieves the UUID of the Equipment Item this MESItemRecipe represents.

Syntax

getEquipmentRefUUID()


  • Parameters

Nothing

  • Returns

String  equipmentUUID - The UUID of the Equipment item.

 setEquipmentRefUUID(equipmentRefUUID, changeNote)

Description

Sets the UUID of the Equipment Item to reference.

Syntax

setEquipmentRefUUID(equipmentRefUUID, changeNote)

  • Parameters

String  equipmentUUID - The Equipment UUID to set.

String changeNote - A note to accompany this change in the change log. This argument may be omitted.

  • Returns

Nothing

 

createRecipeValue(defaultValueRefUUID, defaultValueName, value, changeNote)

Description

Creates an MESRecipeValueComplexProperty that is used to override the Equipment's default setpoint value with.

Syntax

createRecipeValue(defaultValueRefUUID, defaultValueName, value, changeNote)

  • Parameters

String  defaultValueRefUUID - The UUID of the MESRecipeValueDefComplexProperty to override.

String defaultValueName - The Name of the MESRecipeValueDefComplexProperty.

String value - The value to override the Equipment's setpoint with.

String changeNote - A note to accompany this change in the change log. This argument may be omitted.

  • Returns

The newly created MESRecipeValueComplexProperty.

 

getRecipeValues()

Description

Retrieves a collection containing all of this MESItemRecipe's setpoint values.

Syntax

getRecipeValues()

  • Parameters

Nothing

  • Returns

A Collection of MESRecipeValueComplexProperty instances.

 getRecipeValue(recipeValueName)

Description

Retrieves the MESItemRecipe's setpoint value, if it exists.

Syntax

getRecipeValue(recipeValueName)

  • Parameters

String recipeValueName - The name of the setpoint.

  • Returns

The MESItemRecipe's MESRecipeValueComplexProperty that matches the recipeValueName argument. None, if it does not exist.

 setRecipeValue(valueName, value, changeNote)

Description

Assigns the value to the corresponding Recipe Value. If the corresponding MESItemRecipe does not have an MESRecipeValueComplexProperty, one will be created automatically.

Syntax

setRecipeValue(valueName, value, changeNote)

  • Parameters

String valueName - The name of the MESRecipeValueComplexProperty to retrieve from the MESItemRecipe.

String value - The value to assign to the setpoint.

String changeNote - A note to accompany this change in the change log. This argument may be omitted.

  • Returns

Nothing

 

disableRecipeValue(valueName, changeNote)

Description

Disables the named MESRecipeValueComplexProperty , if it exists.

Syntax

disableRecipeValue(valueName, changeNote)

  • Parameters

String valueName - The name of the MESRecipeValueComplexProperty.

String changeNote - A note to accompany this change in the change log. This argument may be omitted.

  • Returns

Nothing

 

disableAllRecipeValues(changeNote)

Description

Disables all of this MESItemRecipe's MESRecipeValueComplexProperty entries. The changeNote argument may be omitted.

Syntax

disableAllRecipeValues(changeNote)

  • Parameters

String changeNote - A note to accompany this change in the change log. This argument may be omitted.

  • Returns

An integer representing the amount of disables that occurred.

Sepasoft MES Module Suite