Devices
Available devices
List of supported devices.
Abstract device
Serves as a template for devices.
- class app.src.utils.abstract_device.Connector(*args, **kwargs)
Bases:
objectAn interface which every implemented Device must implement. For additional information, see Wiki.
- abstract disconnect() None
Terminate the connection between the application and physical device.
- end()
Terminates the device.
- get_capabilities() dict
Retrieves information about the commands that the implemented device can execute.
- Returns
dictionary {command_id: (function_name, arguments)}
- get_command_reference(cmd_id)
Get the command reference by its ID.
- Parameters
cmd_id – ID of the command
- Returns
command reference
- interpreter() dict
A dictionary with the defined commands {command_id: command_reference}
- post_command(cmd, priority=2)
Queues a command for execution.
- Parameters
cmd –
priority – Priority in which the orders will execute. Commands with same priority will exeute in the order they were queued for execution.
- post_manual_command(cmd, priority=0)
Queues a command for execution and waits until it has been executed.
- Parameters
cmd – command object
priority – priority the command should take over other commands
- abstract test_connection() bool
Test the connection between the application and physical device.
- validate_attributes(required, class_name)
- whoami()
Identify name of calling function
- Returns
name of calling function