org.encog.ml.tree.traverse.tasks
public class TaskCountNodes extends Object implements TreeTraversalTask
Constructor and Description |
---|
TaskCountNodes()
Construct the task.
|
Modifier and Type | Method and Description |
---|---|
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) |
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.Copyright © 2014. All Rights Reserved.