Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
Conversion
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Vladislav Kiselev
Conversion
Commits
43fbfdfd
Commit
43fbfdfd
authored
Aug 08, 2019
by
Vladislav Kiselev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Исправлена ошибка в аннотациях.
parent
90227692
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
src/inport/Operation.java
src/inport/Operation.java
+11
-7
No files found.
src/inport/Operation.java
View file @
43fbfdfd
...
@@ -118,12 +118,12 @@ public class Operation {
...
@@ -118,12 +118,12 @@ public class Operation {
}
}
private
static
String
getTransportName
(
MovingObject
obj
)
{
private
static
String
getTransportName
(
MovingObject
obj
)
{
if
(
obj
instanceof
TransportShip
)
{
return
"судно "
+
obj
.
getId
();
}
if
(
obj
instanceof
Bunker
)
{
if
(
obj
instanceof
Bunker
)
{
return
"бункеровщик "
+
obj
.
getId
();
return
"бункеровщик "
+
obj
.
getId
();
}
}
if
(
obj
instanceof
TransportShip
)
{
return
"судно "
+
obj
.
getId
();
}
if
(
obj
instanceof
Tow
)
{
if
(
obj
instanceof
Tow
)
{
return
"буксир "
+
obj
.
getId
();
return
"буксир "
+
obj
.
getId
();
}
}
...
@@ -131,7 +131,7 @@ public class Operation {
...
@@ -131,7 +131,7 @@ public class Operation {
}
}
private
static
String
getShortTransportName
(
MovingObject
obj
)
{
private
static
String
getShortTransportName
(
MovingObject
obj
)
{
if
((
obj
instanceof
TransportShip
)
||
(
obj
instanceof
Bunker
)
||
(
obj
instanceof
Tow
))
{
if
((
obj
instanceof
TransportShip
)
||
(
obj
instanceof
Tow
))
{
return
Integer
.
toString
(
obj
.
getId
());
return
Integer
.
toString
(
obj
.
getId
());
}
}
return
(
obj
.
getName
().
isEmpty
())
?
Integer
.
toString
(
obj
.
getId
())
:
obj
.
getName
();
return
(
obj
.
getName
().
isEmpty
())
?
Integer
.
toString
(
obj
.
getId
())
:
obj
.
getName
();
...
@@ -290,9 +290,13 @@ public class Operation {
...
@@ -290,9 +290,13 @@ public class Operation {
{
{
String
[]
items
=
rStr
.
substring
(
0
,
rStr
.
indexOf
(
'['
)).
split
(
" "
);
String
[]
items
=
rStr
.
substring
(
0
,
rStr
.
indexOf
(
'['
)).
split
(
" "
);
MovingObject
ex
=
m_vessel
.
get
(
Integer
.
valueOf
(
items
[
0
].
trim
()));
int
id
=
Integer
.
valueOf
(
items
[
0
].
trim
());
if
(
ex
==
null
)
{
MovingObject
ex
;
ex
=
m_bunker
.
get
(
Integer
.
valueOf
(
items
[
0
].
trim
()));
if
(
m_bunker
.
containsKey
(
id
))
{
ex
=
m_bunker
.
get
(
id
);
}
else
{
ex
=
m_vessel
.
get
(
id
);
}
}
setExecutor
(
ex
);
setExecutor
(
ex
);
if
(
items
.
length
>
1
)
{
if
(
items
.
length
>
1
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment