Ejemplo n.º 1
0
        /// <summary>
        /// Simple factory function that creates a terminal node and gets it's
        /// value initialized.  Terminals are only selected from the parameters
        /// to the ADF.
        /// </summary>
        protected new GPNode CreateNodeTerminal()
        {
            GPNodeTerminal node = GPNodeTerminal.Initialize(
                true, m_BranchADF.NumberArgs,
                false, (short)0,
                false, (short)0,
                m_Config.TerminalSet, m_Config.Profile.IntegerMin, m_Config.Profile.IntegerMax);

            return(node);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// A simple factory function that creates a terminal node and gets
        /// it's value initialized.
        /// </summary>
        /// <returns>new terminal node</returns>
        protected GPNode CreateNodeTerminal()
        {
            GPNodeTerminal node = GPNodeTerminal.Initialize(
                false, (short)0,
                false, (short)0,
                false, (short)0,
                m_Config.TerminalSet, m_Config.Profile.IntegerMin, m_Config.Profile.IntegerMax);

            return(node);
        }
        /// <summary>
        /// A simple factory function that creates a terminal node and gets
        /// it's value initialized.
        /// </summary>
        protected new GPNode CreateNodeTerminal()
        {
            //
            // TODO: Need to modify the terminal initialization to allow the arguments
            // to be selected from ADR parameters.
            GPNodeTerminal node = GPNodeTerminal.Initialize(
                false, 0,
                false, 0,
                true, m_BranchADR.NumberArgs,
                m_Config.TerminalSet, m_Config.Profile.IntegerMin, m_Config.Profile.IntegerMax);

            return(node);
        }