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
/// <param name="Col">column index</param>
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.Col = Col;
}
......@@ -201,22 +204,22 @@ namespace PRMLibrary
/// <param name="ison"></param>
/// <param name="toID"></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.year = year;
this.height = height;
this.power = power;
this.isbroken = isbroken;
this.ison = ison;
this.isbroken = false;
this.ison = false;
this.pointFromID = fromID;
this.pointToID = toID;
}
/// <summary>
/// default constructor
/// </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>
/// powerstation/pole point class
......@@ -266,7 +269,7 @@ namespace PRMLibrary
/// <param name="sttype"></param>
/// <param name="issource"></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.identifier = id;
......@@ -274,12 +277,12 @@ namespace PRMLibrary
this.power = stpower;
this.type = sttype;
this.issource = issource;
this.ison = ison;
this.ison = false;
}
/// <summary>
/// default constructor
/// </summary>
public PowerStation() : this(new Coordinate(), -1, "", 0, "", false, false) { }
public PowerStation() : this(new Coordinate(), -1, "", 0, "", false) { }
}
enum FunctionType
......
......@@ -32,10 +32,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
</ItemGroup>
<ItemGroup>
<Compile Include="PRMLibrary.cs" />
......
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