|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.ml.tree.traverse.tasks.TaskCountNodes
public class TaskCountNodes
Count the nodes in an acyclic tree.
Constructor Summary | |
---|---|
TaskCountNodes()
Construct the task. |
Method Summary | |
---|---|
int |
getNodeCount()
|
static int |
process(TreeNode node)
Count the nodes from this tree node. |
void |
setNodeCount(int nodeCount)
Set the current node count. |
boolean |
task(TreeNode node)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TaskCountNodes()
Method Detail |
---|
public boolean task(TreeNode node)
task
in interface TreeTraversalTask
node
- The node visiting.
public int getNodeCount()
public void setNodeCount(int nodeCount)
nodeCount
- The node count.public static int process(TreeNode node)
node
- The tree node.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |