MES Object List

Sepasoft MES Module Suite

MES Object List

The MESObjectList is a collection of MES objects. A list may contain any number of MES objects. From the MESObjectList object an MES object with a specific uuid can be loaded by calling the findByUUID() function.

Object Creation

system.mes.object.list.createList

Use

This function uses this object: system.mes.saveMESObjects

Scripting Functions

Inherits functions from AbstractMESObject

Specific functions include:


 add(mesobject)

This script function is used to add a MES object to the list.

Syntax

add(mesobject)

  • Parameters

AbstractMESObject mesobject - The object to be added.

  • Returns

True if the object is added and False otherwise.

  • Scope

All

 remove(mesobject)

This script function is used to remove a MES object to the list.

Syntax

remove(mesobject)

  • Parameters

AbstractMESObject mesobject - The object to be removed.

  • Returns

True if the object is removed and False otherwise.

  • Scope

All

addAll(list)

Appends all of the elements in the specified list to the end of this MES object list.

Syntax
addAll(list)

Parameters
List list - A list containing elements to be added to this list.

Returns
True if all the objects are added to this MES object list and False otherwise.

Scope
All

removeAll(list)

Removes all of the elements from the MES object list.

Syntax
removeAll(list)

Parameters
List list - A list containing elements to be removed to this list.

Returns
True if the objects in the list is removed and False otherwise.

Scope
All

findByUUID()

Find a specific object from a list of MES objects by UUID.

Syntax
findByUUID(uuid)

Parameters
String uuid - UUID of the MES object.

Returns
AbstractMESObject mesObject - The MES object corresponding to the specific UUID.

Scope
All

hasSingleMESObject()

Checks whether the list contains more than one MES object.

Syntax
hasSingleMESObject()

Parameters
None

Returns
Boolean True if the list contain only one MES object and False otherwise.

Scope
All

Events

Inherits AbstractMESObject events

Sepasoft MES Module Suite