diff --git a/WindStressPRM/Objects/ClimateCell.cs b/WindStressPRM/Objects/ClimateCell.cs index 66d93f6ea5b99dcf270e0b298f366b0f1a54c612..939ad30f5ec61b97a4b75a6c23329ecb4d26e5a0 100644 --- a/WindStressPRM/Objects/ClimateCell.cs +++ b/WindStressPRM/Objects/ClimateCell.cs @@ -15,7 +15,7 @@ namespace WindStressPRM /// once-in-5-years frequency wind module, m/s /// модуль скорости ветра с повторяемостью один раз в 5 лет, м/с /// </summary> - public double Wind5; + public double Wind5 { get; private set; } /// <summary> /// once-in-10-years frequency wind module, m/s /// модуль скорости ветра с повторяемостью один раз в 10 лет, м/с @@ -77,19 +77,19 @@ namespace WindStressPRM // ветер по модулю не должен превышать 70м/с if (w5 < 0 || w5 > 70) { - throw new System.ArgumentOutOfRangeException("w5", w5, "Expected 0=<w5<70"); + throw new System.ArgumentOutOfRangeException("w5", w5, "Expected 0=<w5<=70"); } if (w10 < 0 || w10 > 70) { - throw new System.ArgumentOutOfRangeException("w10", w10, "Expected 0=<w10<70"); + throw new System.ArgumentOutOfRangeException("w10", w10, "Expected 0=<w10<=70"); } if (w15 < 0 || w15 > 70) { - throw new System.ArgumentOutOfRangeException("w15", w15, "Expected 0=<w15<70"); + throw new System.ArgumentOutOfRangeException("w15", w15, "Expected 0=<w15<=70"); } if (w25 < 0 || w25 > 70) { - throw new System.ArgumentOutOfRangeException("w25", w25, "Expected 0=<w25<70"); + throw new System.ArgumentOutOfRangeException("w25", w25, "Expected 0=<w25<=70"); } } } diff --git a/WindStressPRM/Objects/PowerStation.cs b/WindStressPRM/Objects/PowerStation.cs index 1f96a56524772d89b075deccccb41778f533ff82..0e7846038b5442a7bf761efc8b67ce28437b5484 100644 --- a/WindStressPRM/Objects/PowerStation.cs +++ b/WindStressPRM/Objects/PowerStation.cs @@ -78,7 +78,7 @@ namespace WindStressPRM /// asigned powerlines list /// список оканчивающихся/начинающихся на подстанции ЛЭП /// </summary> - public IList<Powerline> LineList { get; set; } + public List<Powerline> LineList { get; private set; } /// <summary> /// designated constructor /// </summary> diff --git a/WindStressPRM/Objects/Powerline.cs b/WindStressPRM/Objects/Powerline.cs index f6f60165be2dce09ddee6fb96129d39c3b87aef8..45fca476f893e8be89fdc84dfae0fd7ef8e3cce0 100644 --- a/WindStressPRM/Objects/Powerline.cs +++ b/WindStressPRM/Objects/Powerline.cs @@ -35,7 +35,7 @@ namespace WindStressPRM /// Line vertices coordinate list /// список координат вершин ЛЭП как линейного объекта /// </summary> - public IList<Coordinate> Coordinates { get; set; } + public List<Coordinate> Coordinates { get; set; } /// <summary> /// assigned powerstation/pole /// идентификатор соответсвующего конца/начала линии (столб, трансформаторная подстанция, понижающая подстанция) @@ -66,7 +66,7 @@ namespace WindStressPRM /// <param name="voltage"> voltage class kV for switches, Напряжение ЛЭП, кВ</param> /// <param name="toID"> assigned powerstation/pole/идентификатор соответсвующего конца/начала линии (столб, трансформаторная подстанция, понижающая подстанция)</param> /// <param name="fromID"> assigned powerstation/pole/идентификатор соответсвующего конца/начала линии (столб, трансформаторная подстанция, понижающая подстанция)</param> - public Powerline(IList<Coordinate> coordinates, int id, int year, double height, int voltage, int toID, int fromID) + public Powerline(List<Coordinate> coordinates, int id, int year, double height, int voltage, int toID, int fromID) { this.Coordinates = coordinates; this.Identifier = id; @@ -87,7 +87,7 @@ namespace WindStressPRM { if (Identifier < 0) { - throw new System.ArgumentOutOfRangeException("Identifier", Identifier, "Expected >0"); + throw new System.ArgumentOutOfRangeException("Identifier", Identifier, "Expected >=0"); } if (Year > 2050 || Year < 1900) { @@ -103,11 +103,11 @@ namespace WindStressPRM } if (PointFromID < 0) { - throw new System.ArgumentOutOfRangeException("PointFromID", PointFromID, "Expected >0"); + throw new System.ArgumentOutOfRangeException("PointFromID", PointFromID, "Expected >=0"); } if (PointToID < 0) { - throw new System.ArgumentOutOfRangeException("PointToID", PointToID, "Expected >0"); + throw new System.ArgumentOutOfRangeException("PointToID", PointToID, "Expected >=0"); } } } diff --git a/WindStressPRM/Utils/Index.cs b/WindStressPRM/Utils/Index.cs index e115fee98672a7dfb64489e98e1cde97f9d0ff58..089241c066d0c31ddad48279d4562075e6f5c660 100644 --- a/WindStressPRM/Utils/Index.cs +++ b/WindStressPRM/Utils/Index.cs @@ -13,12 +13,12 @@ namespace WindStressPRM /// Outer index /// Внешний индекс /// </summary> - public int Row { get; set; } + public int Row { get; private set; } /// <summary> /// Inner index /// Внутренний индекс /// </summary> - public int Col { get; set; } + public int Col { get; private set; } /// <summary> /// designated constructor /// </summary>