Skip to content
Snippets Groups Projects
Commit e7a465ae authored by Антон Кудряшов's avatar Антон Кудряшов
Browse files

- fixed SpectificCoordinates

- removed useless checking
parent 5fb5afa9
No related branches found
No related tags found
No related merge requests found
......@@ -108,7 +108,7 @@ namespace Mes_Wind_console
Console.WriteLine("disabled station identifier is {0}", station.Identifier);
}
foreach (var coordinate in output.SpectificCoordinates) // TODO: Название Output.Spectific -> Specific ?
foreach (var coordinate in output.SpecificCoordinates) // TODO: Название Output.Spectific -> Specific ?
{
Console.WriteLine("in coordinate ({0}; {1}) 35kV and less could be broken", coordinate.X, coordinate.Y);
}
......
......@@ -24,6 +24,6 @@ namespace WindStressPRM
/// specific coordinates in which probable break of 35 kV powerlines may occure, checked on regular grid
/// список точек с возможной поломкой ЛЭП меньше 35кВ с регулярной сетки
/// </summary>
public List<Coordinate> SpectificCoordinates { get; set; }
public List<Coordinate> SpecificCoordinates { get; set; }
}
}
......@@ -53,7 +53,7 @@ namespace WindStressPRM
/// <returns></returns>
public int RowsCount()
{
return Cells.Rank > 0 ? Cells.GetLength(0) : 0;
return Cells.GetLength(0);
}
/// <summary>
/// Number of columns
......@@ -61,7 +61,7 @@ namespace WindStressPRM
/// <returns></returns>
public int ColumnCount()
{
return Cells.Rank > 1 ? Cells.GetLength(1) : 0;
return Cells.GetLength(1);
}
}
}
......@@ -38,7 +38,7 @@ namespace WindStressPRM
output.DisabledStations = new List<PowerStation>();
output.DisabledLines = new List<Powerline>();
output.DisabledLines = prmBrokenLines;
output.SpectificCoordinates = CheckSpecificLines();
output.SpecificCoordinates = CheckSpecificLines();
foreach (PowerStation powerStation in input.PowerStations)
{
//stations of type pole can be disabled if the line is broken
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment