Command Classes

A submitted slow command with do() overridden.

class ReleaseAuthCommand(*args, **kwargs)[source]

A custom class for ReleaseAuth Command.

do(*args, **kwargs)[source]

Stateless hook for command functionality.

Parameters:
  • args (Any) – positional args to the component manager method

  • kwargs (Any) – keyword args to the component manager method

Return type:

tuple[ResultCode, str]

Returns:

A tuple containing the result code (e.g. OK) and a string message if the command has been accepted or failed

class StowCommand(*args, **kwargs)[source]

A custom class for Stow Command.

do(*args, **kwargs)[source]

Stateless hook for command functionality.

Parameters:
  • args (Any) – positional args to the component manager method

  • kwargs (Any) – keyword args to the component manager method

Return type:

tuple[ResultCode, str]

Returns:

A tuple containing the result code (e.g. STARTED) and a string message if the command has been accepted or failed

class TrackLoadTableCommand(component_manager, logger=None)[source]

Class for handling the TrackLoadTable command.

__init__(component_manager, logger=None)[source]

Initialise a new TrackLoadTableCommand instance.

Parameters:
  • component_manager (OPCUAComponentManager) – the device to which this command belongs.

  • logger (Optional[Logger]) – a logger for this command to use.

do(*args, **kwargs)[source]

Implement TrackLoadTable command functionality.

Parameters:

args (Any) – table.

Return type:

tuple[ResultCode, str]

Returns:

A tuple containing a return code and a string message indicating status. The message is for information purpose only.