class
ScriptExplicitConnectorObject.
ScriptExplicitConnectorObjectMarker
Bases: object
Decorator for marking an object as explicit connector or not.
All objects within a project are decorated with this marker since V3.5.4.0.
3.5.4.0
is_explicit_connector
Gets a value indicating whether this instance is a device object.
bool
True if this instance is device object; otherwise, False.
class
ScriptExplicitConnectorObject.
ScriptExplicitConnectorObject
Bases: ScriptExplicitConnectorObject.ScriptExplicitConnectorObjectMarker, ScriptDeviceParameters.ScriptConnector
Decorator for explicit connector objects.
All objects within a project which are explicit connector objects are extended with this interface (since V3.5.4.0).
3.5.4.0
allowed_interfaces_at
index
Get the name of the child interfaces that this device object can accept at the specified insert position.
index (int) -- The child index where a device should be inserted.
list <str>
A list of possible interface names or None if no device can be inserted at that position.
insert
name
index
device=None
type=None
id=None
version=None
module=None
Inserts the specified device at the specified index.
WARNING | |
---|---|
insert(self, name, index, device, module=None) (1/2)
name (str) -- Name of the device.
index (int) -- index where to insert the device.
device (DeviceId) -- The device id.
module (str) -- The module ID.
insert(self, name, index, type, id, version, module=None) (2/2)
name (str) -- Name of the device.
index (int) -- index where to insert the device.
type (int) -- The device type.
id (str) -- The device identification.
version (str) -- The device version.
module (str) -- The module ID.
add
name
device=None
type=None
id=None
version=None
module=None
Adds the specified device.
WARNING | |
---|---|
add(self, name, device, module=None) (1/2)
name (str) -- Name of the device.
device (DeviceId) -- The device id.
module (str) -- The module ID.
add(self, name, type, id, version, module=None) (2/2)
name (str) -- Name of the device.
type (int) -- The device type.
id (str) -- The device identification.
version (str) -- The device version.
module (str) -- The module ID.
export_io_mappings_as_csv
file_path
Export the io mappings as a CSV file to the specified absolute path.
file_path (str) -- The absolute path of the file to export.
import_io_mappings_from_csv
file_path
import the io mappings from a CSV file at the specified absolute path.
file_path (str) -- The absolute path of the file to import.
driver_info
Get the driver info of the explicit connector.
3.5.15.0