|
Mercury2 Hardware Manager
1.0dev
The hardware manager component of the Mercury2 ground station suite.
|
Provides the base automated service abstract class. More...
Public Member Functions | |
| def | __init__ |
| Sets up the service instance. More... | |
| def | id |
| Returns the ID of the service. More... | |
| def | type |
| Returns the service type. More... | |
Private Attributes | |
| _service_id | |
| _service_type | |
Provides the base automated service abstract class.
This class provides a base abstract class that driver services may implement.
| def hwm.hardware.devices.drivers.service.Service.__init__ | ( | self, | |
| service_id, | |||
| service_type | |||
| ) |
Sets up the service instance.
| service_id | The service ID (what other pipeline devices will search for when looking for the service). |
| service_type | The service type. |
| def hwm.hardware.devices.drivers.service.Service.id | ( | self) |
Returns the ID of the service.
This property returns the ID of the service which, when combined with the service type, forms a unique identifier for a given pipeline.
| def hwm.hardware.devices.drivers.service.Service.type | ( | self) |
Returns the service type.
This property returns the service's type as a string. There are several standard service types (such as 'tracker') that the service can use, or it can define its own. However, if a service defines its own type other devices will only be able to use it if they query that specific type and if they know how to use the interface.