class AbstractSkill(AbstractCallable):
Skill interface for internal and external OPC UA access.
| Async Method | halt |
Halt (Stop) the skill. Machine internal interface. |
| Async Method | reset |
Reset the skill. Machine internal interface. |
| Async Method | start |
Start the skill. Machine internal interface. |
| Async Method | suspend |
Suspend the skill (if the skill is suspendable). Machine internal interface. |
| Async Method | wait |
Blocks until this skill either reached the given state or was unexpectedly halted. |
| Property | current |
Current state of the skill. |
| Property | is |
Return True if this skill is finite. |
| Property | name |
Name of the skill. |
| Property | ua |
OPC UA base node of state machine. |
| Async Method | _condition |
Check whether this skill is suspendable. |
| Async Method | _get |
Return the instantiation definition for the main OPC UA node. Is called from ua_create_node. |
| Async Method | _ua |
Handle the OPC UA halt method invocation. |
| Async Method | _ua |
Handle the OPC UA reset method invocation. |
| Async Method | _ua |
Handle the OPC UA start method invocation. |
| Async Method | _ua |
Handle the OPC UA suspend method invocation. |
Inherited from AbstractCallable:
| Async Method | _condition |
Check if the provided user has access to this skill. |
| Async Method | _condition |
Check whether ALL dependencies are ready (different meaning for different types). |
| Async Method | _condition |
Check whether the parent component/machine startup is completed. |
Inherited from AbstractUaObject (via AbstractCallable):
| Method | access |
Check whether user is currently allowed access to this UaObject. |
| Async Method | condition |
Check whether this object is ready as a dependency in composite skills, etc. |
| Property | full |
Return the full name including the names of all parents, separated by '/'. |
| Property | lock |
Lock instance protecting this UaObject. |
| Property | logger |
Logger associated with the UaObject instance. |
| Property | path |
Return the full path of the object. |
| Property | server |
Server instance. |
| Property | ua |
Raw OPC UA node. |
Halt (Stop) the skill. Machine internal interface.
Similar to calling the OPC UA method halt(), except that exceptions are not handled.
Reset the skill. Machine internal interface.
Similar to calling the OPC UA method reset(), except that exceptions are not handled.
Start the skill. Machine internal interface.
Similar to calling the OPC UA method start(), except that exceptions are not handled.
Suspend the skill (if the skill is suspendable). Machine internal interface.
Similar to calling the OPC UA method suspend(), except that exceptions are not handled.
Blocks until this skill either reached the given state or was unexpectedly halted.
| Parameters | |
state:SkillState | the state of this skill to wait for. |
| Raises | |
SkillHaltedError | If skill has unexpectedly halted. |
Return True if this skill is finite.
This must be correct regardless where the logic is implemented (PLC, Remote, etc. vs. this Python instance).
Check whether this skill is suspendable.
| Returns | |
bool | Always True, else an exception is raised. |
| Raises | |
UaStatusCodeError | If the skill is not suspendable. |
@abstractmethod
NodeId, session: SessionProtocol) -> ua.StatusCode:
¶
Handle the OPC UA halt method invocation.
This callback is executed when an OPC UA client calls the halt method. Do not raise exceptions here, instead return the appropriate OPC UA status code!
| Parameters | |
_parent:NodeId | Parent OPC UA NodeId. |
session:SessionProtocol | OPC UA Client session that issued the method request. |
| Returns | |
ua.StatusCode | Undocumented |
@abstractmethod
NodeId, session: SessionProtocol) -> ua.StatusCode:
¶
Handle the OPC UA reset method invocation.
This callback is executed when an OPC UA client calls the reset method. Do not raise exceptions here, instead return the appropriate OPC UA status code!
| Parameters | |
_parent:NodeId | Parent OPC UA NodeId. |
session:SessionProtocol | OPC UA Client session that issued the method request. |
| Returns | |
ua.StatusCode | Undocumented |
@abstractmethod
NodeId, session: SessionProtocol) -> ua.StatusCode:
¶
Handle the OPC UA start method invocation.
This callback is executed when an OPC UA client calls the start method. Do not raise exceptions here, instead return the appropriate OPC UA status code!
| Parameters | |
_parent:NodeId | Parent OPC UA NodeId. |
session:SessionProtocol | OPC UA Client session that issued the method request. |
| Returns | |
ua.StatusCode | Undocumented |
@abstractmethod
NodeId, session: SessionProtocol) -> ua.StatusCode:
¶
Handle the OPC UA suspend method invocation.
This callback is executed when an OPC UA client calls the suspend method. Do not raise exceptions here, instead return the appropriate OPC UA status code!
| Parameters | |
_parent:NodeId | Parent OPC UA NodeId. |
session:SessionProtocol | OPC UA Client session that issued the method request. |
| Returns | |
ua.StatusCode | Undocumented |