Пример #1
0
 /// <summary>
 ///     Construct the program node.
 /// </summary>
 /// <param name="theProgram">THe program.</param>
 /// <param name="theParent">The parent.</param>
 /// <param name="theNodeType">The node type.</param>
 /// <param name="theName">The name of the node.</param>
 public EncogProgramNode(EncogGenProgram theProgram,
                         EncogTreeNode theParent, NodeType theNodeType,
                         String theName)
     : base(theProgram, theParent)
 {
     type = theNodeType;
     name = theName;
 }
 /// <summary>
 ///     Construct the program node.
 /// </summary>
 /// <param name="theProgram">THe program.</param>
 /// <param name="theParent">The parent.</param>
 /// <param name="theNodeType">The node type.</param>
 /// <param name="theName">The name of the node.</param>
 public EncogProgramNode(EncogGenProgram theProgram,
                         EncogTreeNode theParent, NodeType theNodeType,
                         String theName)
     : base(theProgram, theParent)
 {
     type = theNodeType;
     name = theName;
 }
Пример #3
0
 /// <summary>
 ///     Construct a tree node.
 /// </summary>
 /// <param name="theProgram">The program.</param>
 /// <param name="theParent">The parent.</param>
 public EncogTreeNode(EncogGenProgram theProgram,
                      EncogTreeNode theParent)
 {
     Program = theProgram;
     parent  = theParent;
 }
 private void GenerateForChildren(EncogTreeNode parent)
 {
     foreach (EncogProgramNode node in parent.Children)
     {
         GenerateNode(node);
     }
 }
 /// <summary>
 ///     Construct a tree node.
 /// </summary>
 /// <param name="theProgram">The program.</param>
 /// <param name="theParent">The parent.</param>
 public EncogTreeNode(EncogGenProgram theProgram,
                      EncogTreeNode theParent)
 {
     Program = theProgram;
     parent = theParent;
 }