AbstractMESRecipe

Sepasoft MES Module Suite

AbstractMESRecipe Object

The AbstractMESRecipe Object stores information about the recipe, or collection of settings within the Settings and Changeover.

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

Inherits functions and events from:

Object Creation

The following functions can be used to create this object.

Object Functions

This object provides the following functions:

 

getRecipeType()

Description

Returns the recipe type for the current recipe.

Syntax

getRecipeType()

  • Parameters

Nothing

  • Returns

RecipeType recipeType - The Enum type for the current Recipe Type.

 addItemRecipePath(equipmentPath, changeNote)

Description

Assigns an Equipment Path to the MESItemRecipe.

Syntax

addItemRecipePath(equipmentPath, changeNote)

  • Parameters

String  equipmentPath - The Production Item's path to generate an Item Recipe for.

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

  • Returns

MESItemRecipe - The MESItemRecipe that has been added, or the MESItemRecipe that already existed.

 

addItemRecipeUUID(equipmentUUID, changeNote)

Description

Adds an Equipment UUID to the MESItemRecipe.

Syntax

addItemRecipeUUID(equipmentUUID, changeNote)

  • Parameters

String  equipmentUUID - The Production Item's UUID to generate an Item Recipe for.

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

  • Returns

MESItemRecipe - The MESItemRecipe that has been added, or the MESItemRecipe that already existed.

 addItemRecipe(equipment, changeNote)

Description

Adds an Equipment to the MESItemRecipe.

Syntax

addItemRecipe(equipment, changeNote)

  • Parameters

AbstractMESEquipment equipment - The Production Item to generate an Item Recipe for.

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

  • Returns

MESItemRecipe - The MESItemRecipe that has been added, or the MESItemRecipe that already existed.

 

getItemRecipeByPath(equipmentPath)

Description

Fetches the MESItemRecipe object for this Recipe.

Syntax

getItemRecipeByPath(equipmentPath)

  • Parameters

String  equipmentPath - The Production Item's path to get an Item Recipe for.

  • Returns

The MESItemRecipe that matches the equipment, or None if it does not exist.

 

getItemRecipeByUUID(equipmentUUID)

Description

Fetches the MESItemRecipe object for this Recipe.

Syntax

getItemRecipeByUUID(equipmentUUID)

  • Parameters

String  equipmentUUID - The Production Item's UUID to get an Item Recipe for.

  • Returns

The MESItemRecipe that matches the equipment, or None if it does not exist.

 

getItemRecipe(equipment)

Description

Fetches the MESItemRecipe object for this Recipe.

Syntax

getItemRecipe(equipment)

  • Parameters

AbstractMESEquipment equipment - The Production Item to get an Item Recipe for.

  • Returns

The MESItemRecipe that matches the equipment, or None if it does not exist.

 setItemRecipeValueByPath(equipmentPath, 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

setItemRecipeValueByPath(equipmentPath, valueName, value, changeNote)

  • Parameters

String  equipmentPath - The Production Item's path to get an Item Recipe for.

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

Object 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

The MESItemRecipe that was targeted.

 setItemRecipeValueByUUID(equipmentUUID, 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

setItemRecipeValueByUUID(equipmentUUID, valueName, value, changeNote)

  • Parameters

String  equipmentUUID - The Production Item's UUID to get an Item Recipe for.

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

Object 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

The MESItemRecipe that was targeted.

 

setItemRecipeValue(equipment, 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

setItemRecipeValue(equipment, valueName, value, changeNote)

  • Parameters

AbstractMESEquipment equipment - The Production Item to get an Item Recipe for.

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

Object 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

The MESItemRecipe that was targeted.

 

setItemRecipeValuesByPath(equipmentPath, namesAndValues, changeNote)

Description

Assigns multiple values to the corresponding Recipe Value. If the corresponding MESItemRecipe does not have a MESRecipeValueComplexProperty that corresponds to a value's name, one will be created automatically.

Syntax

setItemRecipeValuesByPath(equipmentPath, namesAndValues, changeNote)

  • Parameters

String  equipmentPath - The Production Item's path to retrieve an Item Recipe for.

PyDictionary namesAndValues - The names of the MESRecipeValueComplexProperty objects to retrieve from the MESItemRecipe, mapped to PyObject values.

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

  • Returns

The MESItemRecipe that was targeted.

 

setItemRecipeValuesByUUID(equipmentUUID, namesAndValues, changeNote)

Description

Assigns multiple values to the corresponding Recipe Value. If the corresponding MESItemRecipe does not have a MESRecipeValueComplexProperty that corresponds to a value's name, one will be created automatically.

Syntax

setItemRecipeValuesByUUID(equipmentUUID, namesAndValues, changeNote)

  • Parameters

String  equipmentUUID - The Production Item's UUID to retrieve an Item Recipe for.

PyDictionary namesAndValues - The names of the MESRecipeValueComplexProperty objects to retrieve from the MESItemRecipe, mapped to PyObject values.

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

  • Returns

The MESItemRecipe that was targeted.

 setItemRecipeValue(equipment, namesAndValues, changeNote)

Description

Assigns multiple values to the corresponding Recipe Value. If the corresponding MESItemRecipe does not have a MESRecipeValueComplexProperty that corresponds to a value's name, one will be created automatically.

Syntax

setItemRecipeValue(equipment, namesAndValues, changeNote)

  • Parameters

AbstractMESEquipment equipment - The Production Item to retrieve an Item Recipe for.

PyDictionary namesAndValues - The names of the MESRecipeValueComplexProperty objects to retrieve from the MESItemRecipe, mapped to PyObject values.

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

  • Returns

The MESItemRecipe that was targeted.

Sepasoft MES Module Suite