Class for calling a service using a timer. More...
Public Member Functions | |
def | __init__ |
The constructor. | |
def | callback |
Timer callback. | |
def | run |
Run function required by threading library. | |
Private Attributes | |
_service_name | |
_service_period | |
Static Private Attributes | |
string | _service_name = "service" |
The service name going to be called. | |
float | _service_period = 1.0 |
The timer period to call the service. |
Class for calling a service using a timer.
Definition at line 43 of file services_timer.py.
def services_timer.TimedService.__init__ | ( | self, | |
name, | |||
period | |||
) |
The constructor.
self | The object pointer. |
name | The service name this class is going to call |
freq | The desired timer period |
Definition at line 49 of file services_timer.py.
def services_timer.TimedService.callback | ( | self, | |
event | |||
) |
Timer callback.
event | The event that has generated this callback |
Definition at line 62 of file services_timer.py.
def services_timer.TimedService.run | ( | self | ) |
Run function required by threading library.
Definition at line 55 of file services_timer.py.
Definition at line 49 of file services_timer.py.
services_timer.TimedService::_service_name = "service" [static, private] |
The service name going to be called.
Definition at line 74 of file services_timer.py.
Definition at line 49 of file services_timer.py.
services_timer.TimedService::_service_period = 1.0 [static, private] |
The timer period to call the service.
Definition at line 78 of file services_timer.py.