mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2025-12-06 07:12:04 +01:00
add docu to plugin main class
This commit is contained in:
parent
ed095ed366
commit
9c79757406
|
|
@ -52,16 +52,15 @@ class Plugin:
|
|||
self._pluginsActive -= 1
|
||||
self.onUnload()
|
||||
|
||||
# logging.debug("[%s] statistics:", self._pluginName)
|
||||
# logging.debug("- runs %d", self._runCount)
|
||||
# logging.debug("- setup errors %d", self._setupErrorCount)
|
||||
# logging.debug("- alarm errors %d", self._alarmErrorCount)
|
||||
# logging.debug("- teardown errors %d", self._teardownErrorCount)
|
||||
|
||||
def _loadConfig(self):
|
||||
pass
|
||||
|
||||
def _run(self, bwPacket):
|
||||
"""!start an complete running turnus of an plugin.
|
||||
Calls setup(), alarm() and teardown() in this order.
|
||||
The alarm() method serves the BOSWatch packet to the plugin.
|
||||
|
||||
@param bwPacket: A BOSWatch packet instance"""
|
||||
self._runCount += 1
|
||||
logging.debug("[%s] run #%d", self._pluginName, self._runCount)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue