| Home | Trees | Indices | Help |
|
|---|
|
|
| Instance Methods | |||
|
|||
|
|||
|
|||
|
Inherited from Inherited from |
|||
| Class Methods | |
|
Inherited from |
| Class Variables | |
service = Name of the service |
|
version = Version number of the service |
|
| Properties | |
|
Inherited from |
| Method Details |
|
Run the job. When the job is complete result will be set to
the results of the run.
This must be implemented in the subclass.
The run job should look something like the following:
best = 0
for c in cycles:
handler.ready()
results = handler.map(self.task, c.tasklist)
best =
if result > best:
best = result
handler.improved(best)
return best
The handler.ready() call will raise a park.core.service.AbortService
exception if the controller sends an abort message. The run
function need not do anything in response, except possibly signal
handler.improved(value)
|
Returns the tuple (k,n,'units') where progress is k cycles of work complete out of a possible n cycles of total work. Return None if progress is unknown.
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Mar 16 15:03:30 2009 | http://epydoc.sourceforge.net |