Skip to Content

Core Resource Port

Quick Facts

PropertyValue
ClassOlpCorePythonResourcePort
Modulecenpyolpcore.OlpCorePythonResourcePort
Packagecenpyolpcore
ReleaseR2025.2.4
Methods4

Quick Start

# Boilerplate Example coreResourcePort = ... # obtained from the runtime context result = coreResourcePort.GetName()

Method Index

MethodReturnsSummary
GetNamestrGets the name of the resource port
GetCommentstrGets the comment of the resource port
GetValueTypePortDataTypeReturns the value type of this port (bool, int, float)
GetPortDirectionPortDirectionReturns the direction of this port (input or output)

Query Methods

GetName

def GetName() -> str

Gets the name of the resource port

Returns: str — returns the resource port name as string

GetComment

def GetComment() -> str

Gets the comment of the resource port

Returns: str — returns the resource port comment as string

GetValueType

def GetValueType() -> PortDataType

Returns the value type of this port (bool, int, float)

Returns: PortDataType — None

GetPortDirection

def GetPortDirection() -> PortDirection

Returns the direction of this port (input or output)

Returns: PortDirection — None

Version Notes

This class is documented as of release R2025.2.4.

Was this page helpful?