| Trees | Index | Help |
|
|---|
| Module limiter :: Class Limiter |
|
object--+ |_Verbose--+ |Thread--+ | Limiter
| Method Summary | |
|---|---|
__init__(self,
group,
target,
name,
args,
kwargs,
verbose)
(inherited from Thread)
| |
| a new object with type S, a subtype of T |
|
__repr__(self)
(inherited from Thread)
| |
__str__(self)
| |
append a data item to the queue. | |
getName(self)
(inherited from Thread)
| |
activate the exit condition for the main loop. | |
do registry-specific initilization. | |
isAlive(self)
(inherited from Thread)
| |
isDaemon(self)
(inherited from Thread)
| |
join(self,
timeout)
(inherited from Thread)
| |
pop the oldest item from the queue and call self.method with i as argument. | |
start the limiter cycle. | |
setDaemon(self,
daemonic)
(inherited from Thread)
| |
setName(self,
name)
(inherited from Thread)
| |
start(self)
(inherited from Thread)
| |
| Class Variable Summary | |
|---|---|
float |
iv
|
int |
max_q_len
|
| Method Details |
|---|
__new__(S, ...)
|
enqueue(self, data)append a data item to the queue.
|
halt(self)activate the exit condition for the main loop. causes the thread to exit after at mostLimiter.iv seconds.
|
init(self, method, debug_method)do registry-specific initilization.
|
pop(self)pop the oldest item from the queue and call self.method with i as argument. |
run(self)start the limiter cycle. the thread checks the queue everyLimiter.iv seconds for new entries. if
more than 0 are found the oldest (index 0) is popped
|
| Class Variable Details |
|---|
iv
|
max_q_len
|
| Trees | Index | Help |
|
|---|
| Generated by Epydoc 1.1 on Thu Oct 16 16:37:22 2003 | http://epydoc.sf.net |