Contributors: Stefan Ruppin
Bases: PyQt5.QtWidgets.QMainWindow
Contributors: <Stefan Ruppin
Bases: papi.plugin.base_classes.base_plugin.base_plugin
This plugin base should be used by a plugin if should run in an own process. It is not possible to create a widget which is displayed in the graphical interface of PaPI.
Enables the plugin developer to set the event_trigger_mode. This meas that when set to TRUE, the plugin is set to be event triggered which means that the cb_execute function will only be called when a new event (newData) arrives.
default will mean the default value for the specific plugin type.
Parameters: | mode – True, False, or ‘default’ |
---|---|
Returns: |
Contributors: Stefan Ruppin Sven Knuth
Bases: papi.yapsy.IPlugin.IPlugin
This class is used as basis class for all other plugin bases
Called by the PaPI framework when new date can be processed.
Parameters: |
|
---|---|
Returns: |
Function which is called when ever the meta information were updated.
Returns: |
---|
Called when a parameter was changed. This function is called with the parameter name and its current value.
Parameters: |
|
---|---|
Returns: |
Creates a DBlock for use in a PaPI Plugin.
Parameters: | block_name (str) – Name of the block |
---|---|
Returns: | DBlock Object or None in case of error |
Creates a DEvent for use in a PaPI Plugin
Parameters: | event_name (str) – Name of the event |
---|---|
Returns: | DEvent object or None in case of error |
Creates a DParameter for use in a PaPI Plugin
Parameters: |
|
---|---|
Returns: | DParameter object or None in case of error |
Creates a DSignal for use in a PaPI Plugin.
Parameters: |
|
---|---|
Returns: | DSignal Object or None in case of error |
This function is used by plugins to emit a specific event.
Parameters: |
|
---|---|
Returns: |
Methods enables the user to get a field value of the current configuration. If the field_name exists, the ‘value’ part will be returned. If sub_field is given, return the sub_field instead of ‘value’
Parameters: |
|
---|---|
Returns: | None if field does not exist or cfg is none, otherwise return field value (as basestring). |
Used to get the current configuration. This will make a deepcopy of the config dict and return it. So, the result can be changed without affection the ‘real’ plugin configuration which is saved to files or used for future starts of this (saved) plugin. :return: deepcopy of _config dict
Used to get the current configuration, enables you to change it directly! Changes done to this config reference will be saved within the plugin. This config will be used when saving the plugin in a papi_config to a file (e.g. xml) and will be reused on reload.
Returns: | link/ref configuration dict (NO COPY) |
---|
Getter for the dplugin info object of type DPlugin
Returns: | DPlugin Object |
---|
Used to inform the PaPI framework that a single DBlock was deleted.
Parameters: | block – Block which should be deleted. |
---|---|
Returns: |
Used to inform the PaPI framework that a single DParameter was deleted.
Parameters: | parameter – DParameter which should be deleted. |
---|---|
Returns: |
Used to inform the PaPI framework about all DBlocks provided by this plugins.
Parameters: | blocks – List of DBlocks |
---|---|
Returns: |
This function is called by plugins to send new data for a single block.
Parameters: |
|
---|---|
Returns: |
Used to inform the PaPI framework about all DEvents provided by this plugins.
Parameters: | events – List of DEvents |
---|---|
Returns: |
Used to inform the PaPI framework about all DParameters provided by this plugins.
Parameters: | parameters – List of DParameters |
---|---|
Returns: |
Setter function used to set fields in the plugin configuration. It will modify the ‘value’ field of the field with name field_name.
Parameters: |
|
---|---|
Returns: | True, if field got changed in _config. False, if not. |
Contributors: Stefan Ruppin
Bases: papi.plugin.base_classes.base_plugin.base_plugin
This class is used by all plugins which are not running in an own process. They are all executed the gui process.
Will be called to notify a plugin that a new parameter subscription was done and will give information about the init values :param dparameter_object: DParameter :return:
This function will create the general PaPI Control context menu to be used in Plugins.
Returns: | QMenu |
---|
Contributors: <Stefan Ruppin
Bases: papi.plugin.base_classes.base_ownProcess.base_ownProcess
This kind of plugin is to process data provided by other plugins.
Contributors: <Stefan Ruppin
Bases: papi.plugin.base_classes.base_ownProcess.base_ownProcess
This plugin is used to create an interface to different data sources.
Contributors: Stefan Ruppin
Bases: papi.plugin.base_classes.base_visual.base_visual
Base class to inherent from when creation a visual plugin for th gui