class documentation
class BaseSkill(_BaseSkill):
Constructor: BaseSkill(name, suspendable, minimum_access_level, parent, ...)
Abstract base skill without state machine logic.
For skills with logic in Python, there is FiniteSkillLogicMixin and ContinuousSkillLogicMixin.
Derived classes must implement at least the reset(), start() and halt() methods for a non-suspendable skill. The _condition_skill_ready() method can be overridden in order to add skill specific conditions before the start() method is allowed to be executed by the state machine.
| Method | __init__ |
Cooperative Constructor. Create a new skill instance. |
| Async Method | add |
Add a feasibility check for this skill. |
| Async Method | add |
Add a precondition check for this skill. |
| Async Method | _init |
Undocumented |
| Instance Variable | _feasibility |
Undocumented |
| Instance Variable | _precondition |
Undocumented |
Inherited from _BaseSkill:
| Async Method | call |
Call another continuous skill from this skill. |
| Async Method | call |
Call another finite skill from this skill. |
| Async Method | wait |
Undocumented |
| Property | current |
Return the current state of the skill. |
| Property | ua |
Undocumented |
| Async Method | _condition |
Undocumented |
| Async Method | _get |
Undocumented |
| Async Method | _halt |
Undocumented |
| Async Method | _init |
Undocumented |
| Async Method | _write |
Undocumented |
| Instance Variable | _called |
Undocumented |
| Instance Variable | _condition |
Undocumented |
| Instance Variable | _current |
Undocumented |
| Instance Variable | _suspendable |
Undocumented |
| Instance Variable | _ua |
OPC UA node if the state variable of the state machine. |
| Instance Variable | _ua |
OPC UA base node of state machine. |
def __init__(self, *, name:
str | None = None, suspendable: bool = False, minimum_access_level: int | None = None, parent: UaObject | None = None, **kwargs):
¶
overrides
server.base_skill._BaseSkill.__init__Cooperative Constructor. Create a new skill instance.
| Parameters | |
name:str | None | name of the skill. |
suspendable:bool | whether the skill can be suspended/resumed. |
minimumint | None | Minimum required access level to start the skill (see User for more info). |
parent:UaObject | None | Undocumented |
| **kwargs | Undocumented |