Public Member Functions | Public Attributes | Private Member Functions
teer.Scheduler Class Reference
Inheritance diagram for teer.Scheduler:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def create_rate
def current_time
def get_current_tid
def kill_all_tasks_except
def kill_task
def kill_tasks
def list_all_tids
def new_task
def pause_all_tasks_except
def pause_task
def pause_tasks
def printd
def resume_all_tasks_except
def resume_task
def resume_tasks
def step

Public Attributes

 cond_waiting
 current_task
 exit_waiting
 paused_in_ready
 paused_in_syscall
 ready
 taskmap

Private Member Functions

def _add_condition
def _del_condition
def _exit
def _log_task_created
def _log_task_terminated
def _schedule
def _schedule_now
def _set_timer_callback
def _sleep
def _test_conditions
def _wait_condition
def _wait_duration
def _wait_duration_rate
def _wait_for_exit

Detailed Description

The scheduler base object, do not instanciate directly 

Definition at line 96 of file teer.py.


Constructor & Destructor Documentation

def teer.Scheduler.__init__ (   self)
Initialize 

Reimplemented in teer.TimerScheduler.

Definition at line 98 of file teer.py.


Member Function Documentation

def teer.Scheduler._add_condition (   self,
  entry 
) [private]

Definition at line 327 of file teer.py.

def teer.Scheduler._del_condition (   self,
  candidate 
) [private]

Definition at line 335 of file teer.py.

def teer.Scheduler._exit (   self,
  exiting_task 
) [private]
Handle the termination of a task 

Definition at line 263 of file teer.py.

def teer.Scheduler._log_task_created (   self,
  task 
) [private]
Log for task created 

Definition at line 253 of file teer.py.

def teer.Scheduler._log_task_terminated (   self,
  task 
) [private]
Log for task terminated 

Definition at line 257 of file teer.py.

def teer.Scheduler._schedule (   self,
  task 
) [private]

Definition at line 300 of file teer.py.

def teer.Scheduler._schedule_now (   self,
  task 
) [private]

Definition at line 307 of file teer.py.

def teer.Scheduler._set_timer_callback (   self,
  t,
  f 
) [private]
Execute function f at time t 

Reimplemented in teer.TimerScheduler.

Definition at line 249 of file teer.py.

def teer.Scheduler._sleep (   self,
  duration 
) [private]
Sleep a certain amount of time 

Definition at line 245 of file teer.py.

def teer.Scheduler._test_conditions (   self,
  name 
) [private]

Definition at line 352 of file teer.py.

def teer.Scheduler._wait_condition (   self,
  task,
  condition 
) [private]

Definition at line 344 of file teer.py.

def teer.Scheduler._wait_duration (   self,
  task,
  duration 
) [private]

Definition at line 314 of file teer.py.

def teer.Scheduler._wait_duration_rate (   self,
  task,
  duration,
  rate 
) [private]

Definition at line 319 of file teer.py.

def teer.Scheduler._wait_for_exit (   self,
  task,
  waittid 
) [private]
Set task waiting of the exit of task waittid 

Definition at line 292 of file teer.py.

def teer.Scheduler.create_rate (   self,
  rate 
)
Create a rate object, to have a loop at a certain frequency 

Definition at line 200 of file teer.py.

Return the current time 

Definition at line 238 of file teer.py.

Return the identifier of current task, None if not called from a task 

Definition at line 120 of file teer.py.

def teer.Scheduler.kill_all_tasks_except (   self,
  tids 
)
Kill all tasks except a subset, return the list of killed tasks 

Definition at line 148 of file teer.py.

def teer.Scheduler.kill_task (   self,
  tid 
)
Kill a task, return whether the task was killed 

Definition at line 135 of file teer.py.

def teer.Scheduler.kill_tasks (   self,
  tids 
)
Kill multiple tasks, return the list of killed tasks 

Definition at line 144 of file teer.py.

Return all task identifiers 

Definition at line 116 of file teer.py.

def teer.Scheduler.new_task (   self,
  target 
)
Create a new task from function target, return the task identifier 

Definition at line 127 of file teer.py.

def teer.Scheduler.pause_all_tasks_except (   self,
  tids 
)
Pause all tasks except a subset, return the list of paused tasks 

Definition at line 172 of file teer.py.

def teer.Scheduler.pause_task (   self,
  tid 
)
Pause a task, return whether the task was paused 

Definition at line 153 of file teer.py.

def teer.Scheduler.pause_tasks (   self,
  tids 
)
Pause multiple tasks, return the lits of paused tasks 

Definition at line 168 of file teer.py.

def teer.Scheduler.printd (   self,
  msg 
)
Print something including the current task identifier 

Definition at line 206 of file teer.py.

def teer.Scheduler.resume_all_tasks_except (   self,
  tids 
)
Resume all tasks except a subset, return the list of resumed tasks 

Definition at line 195 of file teer.py.

def teer.Scheduler.resume_task (   self,
  tid 
)
Resume a task, return whether the task was resumed successfully 

Definition at line 177 of file teer.py.

def teer.Scheduler.resume_tasks (   self,
  tids 
)
Resume the execution of multiple tasks, return the list of resumed tasks 

Definition at line 191 of file teer.py.

def teer.Scheduler.step (   self)
Run all tasks until none is ready 

Definition at line 212 of file teer.py.


Member Data Documentation

Definition at line 98 of file teer.py.

Definition at line 98 of file teer.py.

Definition at line 98 of file teer.py.

Definition at line 98 of file teer.py.

Definition at line 98 of file teer.py.

Definition at line 98 of file teer.py.

Definition at line 98 of file teer.py.


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


teer_ros
Author(s): Stéphane Magnenat
autogenerated on Sat Dec 28 2013 16:57:36