Package Bio :: Package MultiProc :: Module Task :: Class Task
[show private | hide private]
[frames | no frames]

Class Task


Contains information for one process.

Implements part of the Thread interface.

Methods: start Start this task. Should be called once. run Called by start to really run the task. getName Get the name of the task. setName Set the name of the task. isAlive Whether this Task is still running.

Members: retval Return value of the function.
Method Summary
  __init__(self, group, target, name, args, kwargs)
Task([group][, target][, name][, args][, kwargs])
  __del__(self)
  getName(self)
S.getName() -> name
  isAlive(self)
S.isAlive() -> boolean
  run(self)
S.run()
  setName(self, name)
S.setName(name)
  start(self)
S.start()

Method Details

__init__(self, group=None, target=None, name=None, args=(), kwargs={})
(Constructor)

Task([group][, target][, name][, args][, kwargs])

Create a task object. group should be None and is reserved for future expansion. target is the function to be called. name is the name of the thread. args and kwargs are the arguments to be passed to target.

getName(self)

S.getName() -> name

isAlive(self)

S.isAlive() -> boolean

run(self)

S.run()

Run this task. Should only be called by S.start().

setName(self, name)

S.setName(name)

start(self)

S.start()

Start this task. Should only be called once.

Generated by Epydoc 2.1 on Thu Aug 10 20:05:46 2006 http://epydoc.sf.net