using System;
using System.Collections.Generic;

namespace WindStressPRM
{
    /// <summary>
    /// Index class for raster lists in list
    /// Индекс-класс для растровых массивов
    /// </summary>
    public class Index
    {
        /// <summary>
        /// Outer index
        /// Внешний индекс
        /// </summary>
        public int Row { get; private set; }
        /// <summary>
        /// Inner index
        /// Внутренний индекс
        /// </summary>
        public int Column { get; private set; }
        /// <summary>
        /// designated constructor
        /// </summary>
        /// <param name="Row">row index</param>
        /// <param name="Col">column index</param>
        public Index(int row, int column)
        {
            if (row < 0)
            {
                throw new System.ArgumentOutOfRangeException("Row", row, "Expected >=0");
            }
            if (column < 0)
            {
                throw new System.ArgumentOutOfRangeException("Column", column, "Expected >=0");
            }
            this.Row = row;
            this.Column = column;
        }
    }
}