org.encog.ml.tree.traverse.tasks
Class TaskGetNodeIndex
java.lang.Object
org.encog.ml.tree.traverse.tasks.TaskGetNodeIndex
- All Implemented Interfaces:
- TreeTraversalTask
public class TaskGetNodeIndex
- extends Object
- implements TreeTraversalTask
Get a node by index.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TaskGetNodeIndex
public TaskGetNodeIndex(int theIndex)
task
public boolean task(TreeNode node)
-
- Specified by:
task
in interface TreeTraversalTask
- Parameters:
node
- The node visiting.
- Returns:
- True, if traversal should continue.
getResult
public TreeNode getResult()
- Returns:
- The resulting tree node.
process
public static TreeNode process(int index,
TreeNode node)
- Obtain the specified tree node for the specified index.
- Parameters:
index
- The index.node
- The tree node to search from.
- Returns:
- The tree node for the specified index.
Copyright © 2014. All Rights Reserved.