Contributors Stefan Ruppin
Bases: PyQt5.QtCore.QObject
Function will search for unames and add an indentifier to it to make it unique in case of existence
Parameters: | uname (basestring) – uname to make unique |
---|---|
Returns: | uname |
Parameters: |
|
---|---|
Returns: |
Parameters: |
|
---|---|
Returns: |
This method will take a string and convert him according to some rules to be an uname
Parameters: | name (basestring) – name to convert to unmae |
---|---|
Returns: | name converted to uname |
Tell core to close papi. Core will respond and will close all open plugins. GUI will close all VIP Plugins due to calling their quit function
Something like a callback function for gui triggered events e.a. when a user wants to create a new plugin.
Parameters: |
|
---|---|
Returns: |
Delete plugin with given id.
Parameters: | id (int) – Plugin id to delete |
---|---|
Returns: |
Delete plugin with given uname.
Parameters: | uname (basestring) – Plugin uname to delete |
---|---|
Returns: |
Edit plugin with given plugin id. Specify attribute of plugin by eObject which should be edited e.g. DBlock. Specify action by changeRequest e.g. {‘edit’ : DSignal}. Currently only possible to change a DSignal for a given dplugin and dblock.
Parameters: | pl_id (int) – Plugin id to delete |
---|---|
Returns: |
Edit plugin with given plugin uname. Specify attribute of plugin by eObject which should be edited e.g. DBlock. Specify action by changeRequest e.g. {‘edit’ : DSignal}. Currently only possible to change a DSignal for a given dplugin and dblock.
Parameters: |
|
---|---|
Returns: |
Returns the plugin id of the plugin with unique name uname
Parameters: | uname (basestring) – uname of plugin |
---|---|
Returns: | None: plugin with uname does not exist, id: id of plugin |
Function to load a xml config to papi and apply the configuration.
Parameters: | path (basestring) – path to xml file to load. |
---|---|
Returns: |
Function to load a xml config to papi and apply the configuration.
Parameters: | path (basestring) – path to xml file to load. |
---|---|
Returns: |
Something like a callback function for gui triggered events. User wants to pause a plugin, so this method will send an event to core.
Parameters: | plugin_id (int) – id of plugin to pause |
---|
Something like a callback function for gui triggered events. User wants to pause a plugin, so this method will send an event to core.
Parameters: | plugin_uname (basestring) – uname of plugin to pause |
---|
APi call to reset PaPI. Reset in this case means to delete all plugins cleanly and keep PaPI running. Will free all unames. Is using the do_delete_plugin api call and the delete plugin mechanism
Returns: | ERROR CODE |
---|
Something like a callback function for gui triggered events. User wants to pause a plugin, so this method will send an event to core.
Parameters: | plugin_id (int) – id of plugin to pause |
---|
Something like a callback function for gui triggered events. User wants to resume a plugin, so this method will send an event to core.
Parameters: | plugin_uname (basestring) – uname of plugin to resume |
---|
This function will save papis current state to a xml file provided by path.
Parameters: | path (basestring) – path to save xml to. |
---|---|
Returns: |
Parameters: |
|
---|---|
Returns: |
Something like a callback function for gui triggered events. User wants to change a parameter of a plugin
Parameters: |
|
---|
Something like a callback function for gui triggered events. User wants to change a parameter of a plugin :param plugin_uname: name of plugin which owns the parameter
Parameters: |
|
---|
Start plugin with given id.
Parameters: | id (int) – Plugin id to start |
---|---|
Returns: |
Start plugin with given uname.
Parameters: | uname (basestring) – Plugin uname to start |
---|---|
Returns: |
Stop and reset plugin with given uname without deleting it.
Parameters: | uname (basestring) – Plugin uname to stop |
---|---|
Returns: |
Stop and reset plugin with given id without deleting it.
Parameters: | id (int) – Plugin id to stopReset |
---|---|
Returns: |
Something like a callback function for gui triggered events. In this case, user wants one plugin to subscribe another
Parameters: |
|
---|---|
Returns: |
Something like a callback function for gui triggered events. In this case, user wants one plugin to subscribe another
Parameters: |
|
---|---|
Returns: |
Will check if a given name would be a valid, unique name for a plugin. :param name: name to check
Returns: | True or False |
---|
Something like a callback function for gui triggered events. User wants one plugin to do not get any more data from another plugin
Parameters: |
|
---|---|
Returns: |
Something like a callback function for gui triggered events. User wants one plugin to do not get any more data from another plugin
Parameters: |
|
---|---|
Returns: |
Function which will apply a nice looking indentiation to xml structure before save. Better readability. copied from http://effbot.org/zone/element-lib.htm#prettyprint 06.10.2014 15:53
Parameters: |
|
---|---|
Returns: |
Contributors: <Stefan Ruppin
Bases: PyQt5.QtCore.QObject
This class will do all the event handling for a GUI process. It should be created and initialized with database and queues. To get all the functionality, one should link the callback functions (slots) for the needed signals.
Event processing loop of gui. Build to get called every 40ms after a run through. Will process all events of the queue at the time of call. Procedure was built this way, so that the processing of an event is not covered by the try/except structure.
Gui received check_alive request form core, so gui will respond to it
Parameters: | event (PapiEventBase) – event to process |
---|
Processes close programm event. Nothing important happens.
param event: event to process type event: PapiEventBase type dplugin: DPlugin
Processes the create Plugin event. This event got sent by core to GUI. Gui now needs to add a new plugin to DGUI and decide whether it is a plugin running in the GUI process or not.
Parameters: | event (PapiEventBase) – event to process |
---|
Core sent a new data event to gui. Gui now needs to find the destination plugin and call its execute function with the new data.
Parameters: | event (PapiEventBase) – event to process |
---|
Core sent event to pause a plugin in GUI, so call the pause function of this plugin
Parameters: | event (PapiEventBase) – event to process |
---|
Processes plugin_closed event. Gui now knows, that a plugin was closed by core and needs to update its DGui data base
Parameters: | event (PapiEventBase) – |
---|---|
Returns: |
Processes plugin_start event. Used to (re-)start a plugin after the plugin was stopped. Emit DPlugin was added -> necessary signal for the GUI.
Parameters: | event – |
---|---|
Returns: |
Core sent event to resume a plugin in GUI, so call the resume function of this plugin
Parameters: | event (PapiEventBase) – event to process |
---|
Processes set_parameter event. Used to handle parameter sets by the gui or other plugins.
Parameters: | event – |
---|---|
Returns: |
Processes plugin_stop events. Quit plugin, emit DPlugin was removed -> necessary signal for the GUI.
Parameters: | event – |
---|---|
Returns: |
Core sent new meta information of an existing plugin. This function will update DGui with these information
Parameters: | event (PapiEventBase) – event to process |
---|
Contributors: <Stefan Ruppin
Contributors Stefan Ruppin
Bases: PyQt5.QtCore.QObject
Something like a callback function for gui triggered events e.a. when a user wants to create a new plugin.
Parameters: |
|
---|---|
Returns: |
Delete plugin with given uname.
Parameters: | uname (basestring) – Plugin uname to delete |
---|---|
Returns: |
Something like a callback function for gui triggered events. User wants to pause a plugin, so this method will send an event to core.
Parameters: | plugin_uname (basestring) – uname of plugin to pause |
---|
Something like a callback function for gui triggered events. User wants to resume a plugin, so this method will send an event to core.
Parameters: | plugin_uname (basestring) – uname of plugin to resume |
---|
Something like a callback function for gui triggered events. User wants to change a parameter of a plugin
Parameters: |
|
---|
Something like a callback function for gui triggered events. User wants to change a parameter of a plugin
Parameters: |
|
---|
Something like a callback function for gui triggered events. In this case, user wants one plugin to subscribe another
Parameters: |
|
---|---|
Returns: |
Something like a callback function for gui triggered events. User wants to update a parameter in the gui. Used by a owner of a plugin to inform the gui that a parameter was internally changed.
Parameters: |
|
---|
Contributors Sven Knuth