Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2014. All Rights Reserved.