示例#1
0
        /// <summary>
        ///     Define a const.
        /// </summary>
        /// <param name="type">The type of const.</param>
        /// <param name="name">The name of the const.</param>
        /// <param name="value">The value of the const.</param>
        public void DefineConst(EncogArgType type, string name,
                                string value)
        {
            var node = new EncogProgramNode(Program, this,
                                            NodeType.Const, name);

            node.AddArg(value);
            node.AddArg(type.ToString());
            Children.Add(node);
        }
示例#2
0
 /// <summary>
 ///     Construct the argument.
 /// </summary>
 /// <param name="type">The type of argument.</param>
 /// <param name="value">The value of the argument.</param>
 public EncogProgramArg(EncogArgType type, Object value)
 {
     this.type  = type;
     this.value = value;
 }
 /// <summary>
 ///     Construct the argument.
 /// </summary>
 /// <param name="type">The type of argument.</param>
 /// <param name="value">The value of the argument.</param>
 public EncogProgramArg(EncogArgType type, Object value)
 {
     this.type = type;
     this.value = value;
 }
 /// <summary>
 ///     Define a const.
 /// </summary>
 /// <param name="type">The type of const.</param>
 /// <param name="name">The name of the const.</param>
 /// <param name="value">The value of the const.</param>
 public void DefineConst(EncogArgType type, string name,
                         string value)
 {
     var node = new EncogProgramNode(Program, this,
                                     NodeType.Const, name);
     node.AddArg(value);
     node.AddArg(type.ToString());
     Children.Add(node);
 }