org.encog.ml.tree.traverse.tasks
Class TaskGetNodeIndex

java.lang.Object
  extended by org.encog.ml.tree.traverse.tasks.TaskGetNodeIndex
All Implemented Interfaces:
TreeTraversalTask

public class TaskGetNodeIndex
extends Object
implements TreeTraversalTask

Get a node by index.


Constructor Summary
TaskGetNodeIndex(int theIndex)
           
 
Method Summary
 TreeNode getResult()
           
static TreeNode process(int index, TreeNode node)
          Obtain the specified tree node for the specified index.
 boolean task(TreeNode node)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskGetNodeIndex

public TaskGetNodeIndex(int theIndex)
Method Detail

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.