| Home | Trees | Index | Help |
|
|---|
| Package SCons :: Module Taskmaster :: Class Taskmaster |
|
The Taskmaster for walking the dependency DAG.
| Method Summary | |
|---|---|
__init__(self,
targets,
tasker,
order,
trace)
| |
Returns the next candidate Node for (potential) evaluation. | |
Returns the next task to be executed. | |
Stops Taskmaster processing by not returning a next candidate. | |
Stops the current build completely. | |
| Method Details |
|---|
find_next_candidate(self)Returns the next candidate Node for (potential) evaluation. The candidate list (really a stack) initially consists of all of the top-level (command line) targets provided when the Taskmaster was initialized. While we walk the DAG, visiting Nodes, all the children that haven't finished processing get pushed on to the candidate list. Each child can then be popped and examined in turn for whether their children are all up-to-date, in which case a Task will be created for their actual evaluation and potential building. Here is where we also allow candidate Nodes to alter the list of Nodes that should be examined. This is used, for example, when invoking SCons in a source directory. A source directory Node can return its corresponding build directory Node, essentially saying, "Hey, you really need to build this thing over here instead." |
next_task(self)Returns the next task to be executed. This simply asks for the next Node to be evaluated, and then wraps it in the specific Task subclass with which we were initialized. |
no_next_candidate(self)Stops Taskmaster processing by not returning a next candidate. |
stop(self)Stops the current build completely. |
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Wed Dec 12 09:39:32 2007 | http://epydoc.sf.net |