Sepasoft MES Module Suite
MES Property Collection
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.
Coding example:
Python |
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 |
Python |
>>> {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> >>> |
No scripting function or component use this object directly.
Object Functions
This object provides the following functions:
add(property)
Description
Add an abstract MES property to the property collection.
Syntax
add(property, overrideInherited)
- Parameters
AbstractMESProperty property - The MES property to be added.
- Returns
Nothing
- Scope
All
add(property, overrideInherited)
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
get(index)
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
getPropertyPath()
Description
Get the path of property.
Syntax
getPropertyPath()
- Parameters
None
- Returns
String propertyPath - The path of property.
- Scope
All
getPropertyType()
Description
Get the type of property.
Syntax
getPropertyType()
- Parameters
None
- Returns
String propertyType - The type of property.
- Scope
All
renameProperty(String existingName, String changeNote)
Description
Overloads renameProperty(String existingName); the 'changeNote' allows you to attach any arbitrary message to the change so that it appears in the Change Log table.
Syntax
renameProperty(String existingName, String changeNote)
- Parameters
String existingName
String changeNote
- Scope
All
Sepasoft MES Module Suite