Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MES_Wind
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Debolskiy Andrey
MES_Wind
Commits
d62ae138
Commit
d62ae138
authored
8 years ago
by
Антон Кудряшов
Browse files
Options
Downloads
Patches
Plain Diff
removed useless links
parent
70a83542
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
PRMLibrary/PRMLibrary.cs
+11
-8
11 additions, 8 deletions
PRMLibrary/PRMLibrary.cs
PRMLibrary/PRMLibrary.csproj
+0
-3
0 additions, 3 deletions
PRMLibrary/PRMLibrary.csproj
with
11 additions
and
11 deletions
PRMLibrary/PRMLibrary.cs
+
11
−
8
View file @
d62ae138
...
...
@@ -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
>
coordinate
s
,
int
id
,
int
year
,
double
height
,
int
power
,
int
toID
,
int
fromID
)
{
this
.
coords
=
coordinate
;
this
.
coords
=
coordinate
s
;
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
...
...
This diff is collapsed.
Click to expand it.
PRMLibrary/PRMLibrary.csproj
+
0
−
3
View file @
d62ae138
...
...
@@ -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"
/>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment