class RemoteSkill(RemoteCallable, UaDataChangeSubscriber):
Constructor: RemoteSkill(name, ua_node, server, parent, ...)
The remote interface for a server-side BaseSkill.
| Method | __init__ |
Create a new instance. Must be asynchronously initialized with init() before use. |
| Async Method | halt |
Halt the skill. With wait, block until it is halted. |
| Async Method | read |
Read the current state of the remote skill. |
| Async Method | reset |
Reset the skill. With wait, block until it is ready. |
| Async Method | start |
Start the skill. With wait, block until it is running (or already completed). |
| Async Method | suspend |
Suspend the skill. With wait, block until it is suspended. |
| Async Method | ua |
Handle current state data change notifications from OPC UA. |
| Async Method | ua |
Read the OPC UA type, resolved from node ID browse name. |
| Async Method | wait |
Advanced. Block until the skill reaches the given state. |
| Instance Variable | state |
Callback when the current state or its status changed. |
| Property | current |
Cached current state of the remote skill. |
| Property | current |
Cached current state with its status and timestamps. |
| Property | is |
Whether the remote skill is finite or not (= continuous). |
| Property | suspendable |
Indicates whether the skill is suspendable. |
| Async Method | _browse |
Undocumented |
| Async Method | _handle |
Undocumented |
| Method | _init |
Undocumented |
| Async Method | _wait |
Undocumented |
| Instance Variable | _current |
Undocumented |
| Instance Variable | _halt |
Undocumented |
| Instance Variable | _state |
Undocumented |
| Instance Variable | _ua |
Undocumented |
| Instance Variable | _ua |
Undocumented |
str, ua_node: Node, server: RemoteServer, parent: BaseRemoteComponent, browse_rules: Iterable[ BrowseRule] | None):
¶
Create a new instance. Must be asynchronously initialized with init() before use.
Reset the skill. With wait, block until it is ready.
| Raises | |
SkillHaltedError | The skill halted while waiting. |
Start the skill. With wait, block until it is running (or already completed).
| Raises | |
SkillHaltedError | The skill halted while waiting. |
Suspend the skill. With wait, block until it is suspended.
| Raises | |
SkillHaltedError | The skill halted while waiting. |
Advanced. Block until the skill reaches the given state.
Returns immediately if the skill is already in that state. Use asyncio.timeout() to bound the wait.
Only the latest state is observed, so short-lived states can be missed and the wait then never returns. Prefer stable states (READY, SUSPENDED, COMPLETED, HALTED). Avoid transient states (e.g. STARTING), and be cautious with RUNNING for short finite skills.
| Raises | |
SkillHaltedError | The skill halted while waiting for any state other than HALTED. |
Cached current state of the remote skill.
Is HALTED (the safest assumption) until the server reported a state, and while it reports no value, e.g.
with a bad status (see current_state_sample).
Cached current state with its status and timestamps.
Has the status BadWaitingForInitialData until the server reported a state.
Node, browse_name: ua.QualifiedName) -> list[ Awaitable]:
¶
Undocumented