Package qubx :: Module task :: Class Robots
[hide private]
[frames] | no frames]

Class Robots

source code

object --+        
         |        
      Task --+    
             |    
      PoolTask --+
                 |
                Robots
Known Subclasses:

A worker thread with a pool of worker processes, servicing a queue of callables.

Instance Methods [hide private]
 
__init__(self, label, on_start_item=<__builtin__.function object>, on_finish_item=<__builtin__.function object>)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
interrupt(self)
Raises KeyboardInterrupt in the Task thread.
source code
 
stop(self) source code
 
sync(self)
Waits for any previous do commands to finish before returning.
source code
 
do(self, *argv, **kw) source code
 
run_with_pool(self, pool)
Override this method to make the worker thread do something.
source code
 
run_one_with_pool(self) source code
 
settrace(self, trace=True, logfile=None) source code
 
robot_settrace(self, trace, logfile) source code
 
trace_func(self, frame, event, arg) source code
 
hold_from_task(self, task)
Returns a Robot_Hold context manager.
source code

Inherited from PoolTask: reset_pool, run

Inherited from Task: __call__, gui_call_recv, idle_wait, join, send_exception, send_progress, send_result, send_status, set_progress, set_status, start, thread_main

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]

Inherited from PoolTask: pool

Inherited from Task: OnException, OnInterrupt, OnProgress, OnResult, OnStatus, OnTerminate, label, main_hold, progress, status, tid

Properties [hide private]
  on_start_item
  on_finish_item

Inherited from object: __class__

Method Details [hide private]

__init__(self, label, on_start_item=<__builtin__.function object>, on_finish_item=<__builtin__.function object>)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

interrupt(self)

source code 

Raises KeyboardInterrupt in the Task thread.

Overrides: Task.interrupt
(inherited documentation)

run_with_pool(self, pool)

source code 

Override this method to make the worker thread do something.

Overrides: PoolTask.run_with_pool
(inherited documentation)

Property Details [hide private]

on_start_item

Get Method:
unreachable(self)
Set Method:
unreachable(self, x)

on_finish_item

Get Method:
unreachable(self)
Set Method:
unreachable(self, x)