Public Member Functions | |
def | __init__ (self, name, fn) |
def | run (self, stat) |
![]() | |
def | __init__ (self, name) |
def | getName (self) |
Public Attributes | |
fn | |
![]() | |
name | |
A :class:`DiagnosticTask` based on a function. The :class:`FunctionDiagnosticTask` calls the function when it updates. The function updates the :class:`DiagnosticStatusWrapper` and collects data. This is useful for gathering information about a device or driver, like temperature, calibration, etc.
Definition at line 83 of file _diagnostic_updater.py.
def diagnostic_updater._diagnostic_updater.FunctionDiagnosticTask.__init__ | ( | self, | |
name, | |||
fn | |||
) |
Constructs a GenericFunctionDiagnosticTask based on the given name and function. :param str name: Name of the function. :param fn: Function to be called when run is called.
Definition at line 93 of file _diagnostic_updater.py.
def diagnostic_updater._diagnostic_updater.FunctionDiagnosticTask.run | ( | self, | |
stat | |||
) |
Fills out this Task's :class:`DiagnosticStatusWrapper`. :param DiagnosticStatusWrapper stat: the :class:`DiagnosticStatusWrapper` to fill :return: the filled :class:`DiagnosticStatusWrapper` :rtype: DiagnosticStatusWrapper
Reimplemented from diagnostic_updater._diagnostic_updater.DiagnosticTask.
Definition at line 102 of file _diagnostic_updater.py.
diagnostic_updater._diagnostic_updater.FunctionDiagnosticTask.fn |
Definition at line 100 of file _diagnostic_updater.py.