/* ***************************************************************************
 * This file is part of SharpNEAT - Evolution of Neural Networks.
 * 
 * Copyright 2004-2006, 2009-2010 Colin Green (sharpneat@gmail.com)
 *
 * SharpNEAT is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * SharpNEAT is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with SharpNEAT.  If not, see <http://www.gnu.org/licenses/>.
 */
namespace SharpNeat.Decoders.HyperNeat
{
    /// <summary>
    /// Represents a node within a HyperNEAT substrate.
    /// </summary>
    public struct SubstrateNode
    {
        /// <summary>
        /// Node ID.
        /// </summary>
        public readonly uint _id;
        /// <summary>
        /// The node's position coordinates on the substrate. The substrate dimensionality is not restricted.
        /// </summary>
        public readonly double[] _position;
        
        /// <summary>
        /// Construct with the specified node ID and position coordinates.
        /// </summary>
        public SubstrateNode(uint id, double[] position)
        {
            _id = id;
            _position = position;
        }
    }
}
