Sepasoft MES Module Suite
Abstract MES Property
This object holds information about the path, UUID and children of an MES property.
|
This object is not derived from the AbstractMESObject and therefore does not inherit its functions or properties. |
Object Creation
The following object methods can be used to return this type of object.
Use
The following object methods use this object as a parameter.
- MESPropertyCollection Object.add(property)
- MESPropertyCollection Object.add(property, overrideInherited)
Object Functions
Abstract MES Property object provides the following functions:
- getChildProperties()
- getPropertyPath()
- getPropertyUUID()
- hasChildProperties()
- logRenameChangeEvent(String oldName, String changeNote)
getChildProperties()
Returns all the children properties as a property collection.
getChildProperties()
- Parameters
None
- Returns
MESPropertyCollection childProperties - The collection of children properties.
- Scope
All
Python |
mesObject = system.mes.loadMESObject('Mix Nuts', 'ProcessSegment') equipRef = mesObject.getComplexProperty('Personnel', 'Sarah') print equipRef.getChildProperties() |
Python |
>>> {PersonnelOptional=false, PersonnelProductionSelectable=true, PersonnelRef=Personnel Class, Mix Operators, PersonnelRefUUID=c1e017c5-4813-49e2-8725-8c044ec02857, PersonnelRefType=PersonnelClass, PersonnelUse=, PersonnelQuanity=0.0, PersonnelUnits=} >>> >>> |
getPropertyPath()
Gets path of the property.
getPropertyPath()
- Parameters
None
- Returns
String propertyPath - Path of the property.
- Scope
All
getPropertyUUID()
Gets the unique identifier representing the property.
getPropertyUUID()
- Parameters
None
- Returns
String propertyUUID - The unique identifier representing the property.
- Scope
All
Python |
mesObject = system.mes.loadMESObject('Mix Nuts', 'ProcessSegment') equipRef = mesObject.getComplexProperty('Personnel', 'Sarah') print equipRef.getPropertyUUID() |
Python |
>>> 36168128-fbe3-4d5b-8a56-017ef550e068 >>> |
Python |
equip = system.mes.loadMESObject('Test Equip', 'Equipment') print equip props = equip.getAllCustomProperties() print props for entry in props: print entry print type(entry) print entry.getPropertyUUID() |
Python |
>>> Equipment (568f9d0e-f72e-4611-9c67-97e3e18dd90b, Test Equip, 0 parents, 0 children, 1 custom properties, 0 complex properties) [Test Property=12] Test Property=12 <type 'com.sepasoft.production.common.model.mesobject.core.MESCustomProperty'> 7eeda65b-6447-49bd-a9e5-219cf35b9ac4 >>> |
hasChildProperties()
Checks whether the property has child property or not and return the corresponding boolean.
hasChildProperties()
- Parameters
None
- Returns
boolean - True if the property has child property and False otherwise.
- Scope
All
logRenameChangeEvent(String oldName, String changeNote)
The 'changeNote' allows you to attach any arbitrary message to the change so that it appears in the Change Log table.
logRenameChangeEvent(String oldName, String changeNote)
- Parameters
String oldName
String changeNote
- Scope
All
Sepasoft MES Module Suite