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

removed useless links

parent 70a83542
No related branches found
No related tags found
No related merge requests found
...@@ -23,6 +23,9 @@ namespace PRMLibrary ...@@ -23,6 +23,9 @@ namespace PRMLibrary
/// <param name="Col">column index</param> /// <param name="Col">column index</param>
public Index(int Row, int Col) public Index(int Row, int Col)
{ {
if (Row <= -1 || Col <= -1) {
throw new Exception("Index must be initialized with nonegative integer value");
}
this.Row = Row; this.Row = Row;
this.Col = Col; this.Col = Col;
} }
...@@ -201,22 +204,22 @@ namespace PRMLibrary ...@@ -201,22 +204,22 @@ namespace PRMLibrary
/// <param name="ison"></param> /// <param name="ison"></param>
/// <param name="toID"></param> /// <param name="toID"></param>
/// <param name="fromID"></param> /// <param name="fromID"></param>
public Powerline(List<Coordinate> coordinate, int id, int year, double height, int power, bool isbroken, bool ison, int toID, int fromID) public Powerline(List<Coordinate> coordinates, int id, int year, double height, int power, int toID, int fromID)
{ {
this.coords = coordinate; this.coords = coordinates;
this.identifier = id; this.identifier = id;
this.year = year; this.year = year;
this.height = height; this.height = height;
this.power = power; this.power = power;
this.isbroken = isbroken; this.isbroken = false;
this.ison = ison; this.ison = false;
this.pointFromID = fromID; this.pointFromID = fromID;
this.pointToID = toID; this.pointToID = toID;
} }
/// <summary> /// <summary>
/// default constructor /// default constructor
/// </summary> /// </summary>
public Powerline() : this(new List<Coordinate>(), -1, 0, 0, 0, false, false, -1, -1) { } public Powerline() : this(new List<Coordinate>(), -1, 0, 0, 0, -1, -1) { }
} }
/// <summary> /// <summary>
/// powerstation/pole point class /// powerstation/pole point class
...@@ -266,7 +269,7 @@ namespace PRMLibrary ...@@ -266,7 +269,7 @@ namespace PRMLibrary
/// <param name="sttype"></param> /// <param name="sttype"></param>
/// <param name="issource"></param> /// <param name="issource"></param>
/// <param name="ison"></param> /// <param name="ison"></param>
public PowerStation(Coordinate crds, int id, string stname, int stpower, string sttype, bool issource, bool ison) public PowerStation(Coordinate crds, int id, string stname, int stpower, string sttype, bool issource)
{ {
this.coords = crds; this.coords = crds;
this.identifier = id; this.identifier = id;
...@@ -274,12 +277,12 @@ namespace PRMLibrary ...@@ -274,12 +277,12 @@ namespace PRMLibrary
this.power = stpower; this.power = stpower;
this.type = sttype; this.type = sttype;
this.issource = issource; this.issource = issource;
this.ison = ison; this.ison = false;
} }
/// <summary> /// <summary>
/// default constructor /// default constructor
/// </summary> /// </summary>
public PowerStation() : this(new Coordinate(), -1, "", 0, "", false, false) { } public PowerStation() : this(new Coordinate(), -1, "", 0, "", false) { }
} }
enum FunctionType enum FunctionType
......
...@@ -32,10 +32,7 @@ ...@@ -32,10 +32,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" /> <Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="PRMLibrary.cs" /> <Compile Include="PRMLibrary.cs" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment