Description

This object is a collection of properties and is used to return a list of MES properties.


 

Object Creation

This object is primarily created when using the MES Object Editor component. The following object methods can be used to return this type of object.

 

Script Example
Code Snippet
seg = system.mes.loadMESObject('Line MES OEE Test', 'ProcessSegment')
# getCoreProperties() returns an MESPropertyCollection
coreProperties = seg.getCoreProperties()
print coreProperties
# print out the names of all of the properties in the MESPropertyCollection
for propName in coreProperties:
 print propName
# print out all of the properties in the MESPropertyCollection
for prop in coreProperties.values():
# prints in "name=value" format
 print prop
numProps = coreProperties.size()
for i in range(0, numProps):
 prop = coreProperties.get(i)
 print prop
Output
>>> 
{UUID=2a13d44a-8a2a-433d-ba27-4e534969a1c7, Name=Line MES OEE Test, Description=, Enabled=true, Creator=Unknown, EndOperationWhenComplete=true, IsExecuteReady=false, SegmentRecipeUUID=null, SegmentRecipeName=<no recipe selected>}
UUID
Name
Description
Enabled
Creator
EndOperationWhenComplete
IsExecuteReady
SegmentRecipeUUID
SegmentRecipeName
UUID=2a13d44a-8a2a-433d-ba27-4e534969a1c7
Name=Line MES OEE Test
Description=
Enabled=true
Creator=Unknown
EndOperationWhenComplete=true
IsExecuteReady=false
SegmentRecipeUUID=null
SegmentRecipeName=<no recipe selected>
UUID=2a13d44a-8a2a-433d-ba27-4e534969a1c7
Name=Line MES OEE Test
Description=
Enabled=true
Creator=Unknown
EndOperationWhenComplete=true
IsExecuteReady=false
SegmentRecipeUUID=null
SegmentRecipeName=<no recipe selected>
>>> 

 

Use

No scripting function or component use this object directly.


 

Object Functions

This object provides the following functions:

Description

Add an abstract MES property to the property collection.

Syntax

add(property)

  • Parameters

AbstractMESProperty property - The MES property to be added.

  • Returns

Nothing

  • Scope

All

Description

Add an abstract MES property to the property collection.

Syntax

add(property, overrideInherited)

  • Parameters

AbstractMESProperty property - The MES property to be added.

boolean overrideInherited - Set to True to override the inherited properties if any and False otherwise.

  • Returns

Nothing

  • Scope

All

Description

Get the property corresponding to the specified index.

Syntax

get(index)

  • Parameters

None

  • Returns

AbstractMESProperty property - The property corresponding to the specified index.

  • Scope

All

Description

Get the path of property.

Syntax

getPropertyPath()

  • Parameters

None

  • Returns

String propertyPath - The path of property.

  • Scope

All

Description

Get the type of property.

Syntax

getPropertyType()

  • Parameters

None

  • Returns

String propertyType - The type of property.

  • Scope

All

  • No labels