org.encog.app.generate.program

## Class EncogTreeNode

- java.lang.Object
- - org.encog.app.generate.program.EncogTreeNode

- Direct Known Subclasses:
    EncogGenProgram, EncogProgramNode

      public class EncogTreeNode
      extends Object

  A tree node that represents code to be generated.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `EncogTreeNode(EncogGenProgram theProgram, EncogTreeNode theParent)` Construct a tree node.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addComment(String str)` Add a comment.
    `List<EncogProgramNode>` | `getChildren()`
    `EncogTreeNode` | `getParent()`
    `EncogGenProgram` | `getProgram()`
    `void` | `setProgram(EncogGenProgram program)` Set the program.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### EncogTreeNode

          public EncogTreeNode(EncogGenProgram theProgram,
                       EncogTreeNode theParent)

      Construct a tree node.
      Parameters:
        `theProgram` - The program.
        `theParent` - The parent.

  - ### Method Detail

    - #### addComment

          public void addComment(String str)

      Add a comment.
      Parameters:
        `str` - The comment.

    - #### getChildren

          public List<EncogProgramNode> getChildren()

      Returns:
        The children.

    - #### getParent

          public EncogTreeNode getParent()

      Returns:
        The parent.

    - #### getProgram

          public EncogGenProgram getProgram()

      Returns:
        The program.

    - #### setProgram

          public void setProgram(EncogGenProgram program)

      Set the program.
      Parameters:
        `program` - The program.

Copyright © 2014. All Rights Reserved.