Core Resource Port
Quick Facts
| Property | Value |
|---|---|
| Class | OlpCorePythonResourcePort |
| Module | cenpyolpcore.OlpCorePythonResourcePort |
| Package | cenpyolpcore |
| Release | R2025.2.4 |
| Methods | 4 |
Quick Start
# Boilerplate Example
coreResourcePort = ... # obtained from the runtime context
result = coreResourcePort.GetName()Method Index
| Method | Returns | Summary |
|---|---|---|
GetName | str | Gets the name of the resource port |
GetComment | str | Gets the comment of the resource port |
GetValueType | PortDataType | Returns the value type of this port (bool, int, float) |
GetPortDirection | PortDirection | Returns the direction of this port (input or output) |
Query Methods
GetName
def GetName() -> strGets the name of the resource port
Returns: str — returns the resource port name as string
GetComment
def GetComment() -> strGets the comment of the resource port
Returns: str — returns the resource port comment as string
GetValueType
def GetValueType() -> PortDataTypeReturns the value type of this port (bool, int, float)
Returns: PortDataType — None
GetPortDirection
def GetPortDirection() -> PortDirectionReturns the direction of this port (input or output)
Returns: PortDirection — None
Related Types
Version Notes
This class is documented as of release R2025.2.4.
Was this page helpful?