Core Resource
Quick Facts
| Property | Value |
|---|---|
| Class | OlpCorePythonResource |
| Module | cenpyolpcore.OlpCorePythonResource |
| Package | cenpyolpcore |
| Release | R2025.2.4 |
| Methods | 6 |
| Inherits from | OlpCorePythonItem |
Inheritance
Quick Start
# Boilerplate Example
coreResource = ... # obtained from the runtime context
result = coreResource.GetItemType()Method Index
| Method | Returns | Summary |
|---|---|---|
GetItemType | ItemType | Returns the item type of this resource |
GetItemSubType | ItemSubType | Returns the item subtype of this resource |
GetSupportedConfigurations | list | Gets all supported configurations on this resource if the resource is a machine or robot |
GetSupportedTurns | list | Gets all supported turns on this resource if the resource is a machine or robot |
GetAllPorts | list | Get all ports that are currently active in this resource. |
GetPorts | list | Get all ports that are currently active in this resource with the value type and the direction specified. |
Query Methods
GetItemType
def GetItemType() -> ItemTypeReturns the item type of this resource
Returns: ItemType — None
GetItemSubType
def GetItemSubType() -> ItemSubTypeReturns the item subtype of this resource
Returns: ItemSubType — None
GetSupportedConfigurations
def GetSupportedConfigurations() -> listGets all supported configurations on this resource if the resource is a machine or robot
Returns: list — returns all supported configurations on this resource as list of strings
GetSupportedTurns
def GetSupportedTurns() -> listGets all supported turns on this resource if the resource is a machine or robot
Returns: list — returns all supported turns on this resource as list of strings
GetAllPorts
def GetAllPorts() -> listGet all ports that are currently active in this resource.
Returns: list — a vector with all the ports found on the resource
GetPorts
def GetPorts(valueType: int, direction: int) -> listGet all ports that are currently active in this resource with the value type and the direction specified.
Parameters:
| Name | Type | Description |
|---|---|---|
valueType | int | port value type |
direction | int | port direction |
Returns: list — a vector with all the ports found on the resource
Related Types
Version Notes
This class is documented as of release R2025.2.4.