Tech_Update Operator
Quick Facts
| Property | Value |
|---|---|
| Class | CENPyOlpTech_UpdateOperator |
| Module | cenpylib.CENPyOlpTech_UpdateOperator |
| Package | cenpylib |
| Release | R2025.2.4 |
| Methods | 13 |
Quick Start
# Boilerplate Example
tech_UpdateOperator = ... # obtained from the runtime context
result = tech_UpdateOperator.GetAttribGetter(prgComponent)Method Index
| Method | Returns | Summary |
|---|---|---|
GetAttribGetter | CENPyOlpAttribGetter | Get attribute getter by given program component. |
GetAttribSetter | CENPyOlpAttribSetter | Get attribute setter by given program component. |
GetAttribCreator | CENPyOlpAttribCreator | Get attribute creator by given program component. |
GetLoggerOperator | CENPyOlpLogOperator | Get the log operator interface. |
GetController | CENPyOlpController | Get the parent controller interface. |
GetOlpProgram | CENPyOlpProgramComponent | Get the parent program. |
RemoveAttribute | bool | Remove an attribute from a program component. |
SetAttribOwner | — | Set owner of attribute. |
GetTechEventRuleUpdateOperator | CENPyOlpTech_RuleUpdateOperator | Get technology event rule update operator. |
GetWmEventRuleUpdateOperator | CENPyOlpWM_RuleUpdateOperator | Get work method event rule update operator. |
GetCycleExplodeStatus | int | Get cycle explode status. |
CopyAttribute | CENPyOlpAttribute | Copy an attribute with given name from technology definition into given component. |
GetLastSavedPythonTechnologyVersion | int | Get the python technology script version, which was used during the last program processing and saved in the process file. |
Query Methods
GetAttribGetter
def GetAttribGetter(prgComponent: CENPyOlpProgramComponent) -> CENPyOlpAttribGetterGet attribute getter by given program component.
Parameters:
| Name | Type | Description |
|---|---|---|
prgComponent | CENPyOlpProgramComponent | Program component. |
Returns: CENPyOlpAttribGetter — Attribute getter.
GetAttribSetter
def GetAttribSetter(prgComponent: CENPyOlpProgramComponent) -> CENPyOlpAttribSetterGet attribute setter by given program component.
Parameters:
| Name | Type | Description |
|---|---|---|
prgComponent | CENPyOlpProgramComponent | Program component. |
Returns: CENPyOlpAttribSetter — Attribute setter.
GetAttribCreator
def GetAttribCreator(prgComponent: CENPyOlpProgramComponent) -> CENPyOlpAttribCreatorGet attribute creator by given program component.
Parameters:
| Name | Type | Description |
|---|---|---|
prgComponent | CENPyOlpProgramComponent | Program component. |
Returns: CENPyOlpAttribCreator — Attribute creator.
GetLoggerOperator
def GetLoggerOperator() -> CENPyOlpLogOperatorGet the log operator interface.
Returns: CENPyOlpLogOperator — Log operator interface.
GetController
def GetController() -> CENPyOlpControllerGet the parent controller interface.
Returns: CENPyOlpController — Controller interface.
GetOlpProgram
def GetOlpProgram() -> CENPyOlpProgramComponentGet the parent program.
Returns: CENPyOlpProgramComponent — Parent program.
GetTechEventRuleUpdateOperator
def GetTechEventRuleUpdateOperator(rule: CENPyOlpProgramComponent) -> CENPyOlpTech_RuleUpdateOperatorGet technology event rule update operator.
Parameters:
| Name | Type | Description |
|---|---|---|
rule | CENPyOlpProgramComponent | Event rule. |
Returns: CENPyOlpTech_RuleUpdateOperator — Technology event rule update operator.
GetWmEventRuleUpdateOperator
def GetWmEventRuleUpdateOperator(rule: CENPyOlpProgramComponent) -> CENPyOlpWM_RuleUpdateOperatorGet work method event rule update operator.
Parameters:
| Name | Type | Description |
|---|---|---|
rule | CENPyOlpProgramComponent | Event rule. |
Returns: CENPyOlpWM_RuleUpdateOperator — Work method event rule update operator.
GetCycleExplodeStatus
def GetCycleExplodeStatus(prgComponent: CENPyOlpProgramComponent) -> intGet cycle explode status.
Parameters:
| Name | Type | Description |
|---|---|---|
prgComponent | CENPyOlpProgramComponent | Program component. |
Returns: int — Unsigned cycle explode status.
GetLastSavedPythonTechnologyVersion
def GetLastSavedPythonTechnologyVersion() -> intGet the python technology script version, which was used during the last program processing and saved in the process file.
Returns: int — Current Python technology version number.
Mutation Methods
RemoveAttribute
def RemoveAttribute(prgComponent: CENPyOlpProgramComponent, attributeName: str) -> boolRemove an attribute from a program component.
Parameters:
| Name | Type | Description |
|---|---|---|
prgComponent | CENPyOlpProgramComponent | Program component. |
attributeName | str | Name of attribute to remove. |
Returns: bool — True if the attribute was found in the program component and removed, False otherwise.
SetAttribOwner
def SetAttribOwner(attrib: CENPyOlpAttribute, attribOwnerName: str)Set owner of attribute.
Parameters:
| Name | Type | Description |
|---|---|---|
attrib | CENPyOlpAttribute | Attribute object. |
attribOwnerName | str | Name of attribute owner. |
Conversion & Serialization
CopyAttribute
def CopyAttribute(attributeName: str, prgComponent: CENPyOlpProgramComponent) -> CENPyOlpAttributeCopy an attribute with given name from technology definition into given component. When attribute does not exist in component it is created, otherwise overwritten.
Parameters:
| Name | Type | Description |
|---|---|---|
attributeName | str | Name of attribute. |
prgComponent | CENPyOlpProgramComponent | Program component. |
Returns: CENPyOlpAttribute — Copied attribute of program component. In case of any failure, None is returned.
Related Types
- Attrib Getter
- Program Component
- Attrib Setter
- Attrib Creator
- Log Operator
- Controller
- Attribute
- Tech_Rule Update Operator
- WM_Rule Update Operator
Version Notes
This class is documented as of release R2025.2.4.