Skip to Content

Sync Robots Event

Quick Facts

PropertyValue
ClassCENPyOlpSyncRobotsEvent
Modulecenpylib.CENPyOlpSyncRobotsEvent
Packagecenpylib
ReleaseR2025.2.4
Methods8
Inherits fromCENPyOlpBuiltInEvent

Inheritance

Quick Start

# Boilerplate Example # Acquire the event object from the runtime context syncRobotsEvent = ... # provided by the framework

Method Index

MethodReturnsSummary
SetSyncModeSet the new synchronization mode.
GetSyncModeintGet the synchronization mode.
SetRegionStateSet the region state.
GetRegionStateboolGet the region state.
SetLeaderStateSet the state of the leader flag.
GetLeaderStateboolGet the state of the leader flag.
SetSyncTextSet the new synchronization text.
GetSyncTextstrGet the synchronization text

Query Methods

GetSyncMode

def GetSyncMode() -> int

Get the synchronization mode.

Returns: int — Synchronization mode.

GetRegionState

def GetRegionState() -> bool

Get the region state.

Returns: bool — Region state.

GetLeaderState

def GetLeaderState() -> bool

Get the state of the leader flag.

Returns: bool — State of the leader flag.

GetSyncText

def GetSyncText() -> str

Get the synchronization text

Returns: str — Synchronization text.

Mutation Methods

SetSyncMode

def SetSyncMode(syncMode: int)

Set the new synchronization mode.

Parameters:

NameTypeDescription
syncModeintNew synchronization mode.

SetRegionState

def SetRegionState(state: bool)

Set the region state.

Parameters:

NameTypeDescription
stateboolNew region state.

SetLeaderState

def SetLeaderState(isLeader: bool)

Set the state of the leader flag.

Parameters:

NameTypeDescription
isLeaderboolNew leader state flag.

SetSyncText

def SetSyncText(syncText: str)

Set the new synchronization text.

Parameters:

NameTypeDescription
syncTextstrNew synchronization text.

Version Notes

This class is documented as of release R2025.2.4.

Was this page helpful?