CustomDriverConfig¶
Bases: DriverConfig
CustomDriverConfig class provides information for custom devices.
Notes: This class is non-copyable and non-movable.
This class holds configuration details specific to custom drivers (name, identifier).
__init__()
¶
Default constructor.
Initializes a new instance of the CustomDriverConfig class.
getDriverName()
¶
Get the driver name.
Retrieves the name of the custom driver.
Returns:
| Type | Description |
|---|---|
str
|
The driver name |
setDriverName(driverName)
¶
Set the driver name.
Sets the name of the custom driver.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
driverName
|
string
|
The driver name |
required |
getIdentifier()
¶
Get the identifier.
Retrieves the unique identifier (often the serial number) for the custom driver instance.
Returns:
| Type | Description |
|---|---|
str
|
The identifier |
setIdentifier(identifier)
¶
Set the identifier.
Sets the unique identifier (often the serial number) for the custom driver instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
identifier
|
string
|
The identifier |
required |
getIndex()
¶
Get the index.
Retrieves the index associated with this driver configuration.
Returns:
| Type | Description |
|---|---|
int
|
The index |
setIndex(index)
¶
Set the index.
Sets the index associated with this driver configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
index
|
int
|
The index |
required |