Home | Trees | Index | Help |
|
---|
Package pywikipedia :: Module interwiki :: Class SubjectArray |
|
object
--+
|
SubjectArray
Method Summary | |
---|---|
Constructor. | |
__len__(self)
| |
Add a single subject to the list | |
dump(self,
fn)
| |
Return the first subject that is still being worked on | |
Generate more subjects. | |
Check whether there is still more work to do | |
Return the site that has the most open queries plus the number. | |
This is a routine that the Subject class expects in a counter | |
Perform one step in the solution process | |
This is a routine that the Subject class expects in a counter | |
queryStep(self)
| |
Start the process until finished | |
Select the site the next query should go out for. | |
Add a generator of subjects. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Method Details |
---|
__init__(self)
Constructor. We always start with empty lists.
|
add(self, pl, hints=None)Add a single subject to the list |
firstSubject(self)Return the first subject that is still being worked on |
generateMore(self, number)Generate more subjects. This is called internally when the list of subjects becomes to small, but only if there is a generator |
isDone(self)Check whether there is still more work to do |
maxOpenSite(self)Return the site that has the most open queries plus the number. If there is nothing left, return None, 0. Only languages that are TODO for the first Subject are returned. |
minus(self, site)This is a routine that the Subject class expects in a counter |
oneQuery(self)Perform one step in the solution process |
plus(self, site)This is a routine that the Subject class expects in a counter |
run(self)Start the process until finished |
selectQuerySite(self)Select the site the next query should go out for. |
setGenerator(self, generator)Add a generator of subjects. Once the list of subjects gets too small, this generator is called to produce more Pages |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sun Jul 03 17:07:36 2005 | http://epydoc.sf.net |