Fun with PWM  0.32
Scheduler.Scheduler Class Reference

Schedules threaded tasks. More...

Inheritance diagram for Scheduler.Scheduler:

Public Member Functions

def __init__ (self)
 
def addTask (self, name, callback, interval=0.1, stopped=False)
 
def removeTask (self, name)
 
def startTask (self, name)
 
def stopTask (self, name)
 
def isRunning (self, name)
 
def listTasks (self)
 

Static Public Member Functions

def GetInstance ()
 

Public Attributes

 tasks
 
 notifier
 

Detailed Description

Schedules threaded tasks.

Constructor & Destructor Documentation

§ __init__()

def Scheduler.Scheduler.__init__ (   self)
Initializes the Scheduler object

Member Function Documentation

§ addTask()

def Scheduler.Scheduler.addTask (   self,
  name,
  callback,
  interval = 0.1,
  stopped = False 
)
add a new task

@param name
@param callback
@param interval
@param stopped

§ GetInstance()

def Scheduler.Scheduler.GetInstance ( )
static
returns a shared instance of the Scheduler object

§ isRunning()

def Scheduler.Scheduler.isRunning (   self,
  name 
)
checks if a task is running

@param name

@return bool

§ listTasks()

def Scheduler.Scheduler.listTasks (   self)
list tasks

@return list

§ removeTask()

def Scheduler.Scheduler.removeTask (   self,
  name 
)
remove a task

@param name

§ startTask()

def Scheduler.Scheduler.startTask (   self,
  name 
)
start a task

@param name

§ stopTask()

def Scheduler.Scheduler.stopTask (   self,
  name 
)
stop a task

@param name

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