Public Member Functions | Public Attributes | Private Member Functions
kelsey_sandbox::periodic_funs::PeriodicLogger Class Reference

Periodically logs the output of a callback function by calling it at a certain rate and gathering up the results into a list. More...

List of all members.

Public Member Functions

def __init__
 initializes the logger but doesn't start it
def get_ret_vals
 If max_calls sets to automatically terminate, return the ret vals.
def start
 begins the logger
def stop
 stops the monitor

Public Attributes

 args
 beg_time
 cb
 is_running
 max_calls
 num_calls
 rate
 ret
 thread

Private Member Functions

def _run

Detailed Description

Periodically logs the output of a callback function by calling it at a certain rate and gathering up the results into a list.

Definition at line 4 of file periodic_funs.py.


Constructor & Destructor Documentation

def kelsey_sandbox::periodic_funs::PeriodicLogger::__init__ (   self,
  callback,
  rate = 0.01,
  args = None 
)

initializes the logger but doesn't start it

Parameters:
callbackthe function to be called each time
ratethe rate in seconds at which to call the callback
argsthe function arguments to pass into the callback

Definition at line 11 of file periodic_funs.py.


Member Function Documentation

Definition at line 35 of file periodic_funs.py.

If max_calls sets to automatically terminate, return the ret vals.

Definition at line 69 of file periodic_funs.py.

begins the logger

Parameters:
max_callsthe maximum number of times to call the callback

Definition at line 25 of file periodic_funs.py.

stops the monitor

Returns:
the result of the monitor

Definition at line 60 of file periodic_funs.py.


Member Data Documentation

Definition at line 11 of file periodic_funs.py.

Definition at line 11 of file periodic_funs.py.

Definition at line 11 of file periodic_funs.py.

Definition at line 11 of file periodic_funs.py.

Definition at line 11 of file periodic_funs.py.

Definition at line 11 of file periodic_funs.py.

Definition at line 11 of file periodic_funs.py.

Definition at line 11 of file periodic_funs.py.

Definition at line 11 of file periodic_funs.py.


The documentation for this class was generated from the following file:


kelsey_sandbox
Author(s): kelsey
autogenerated on Wed Nov 27 2013 11:52:04