Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-WIC-Cnf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
CommunityXG
OpenXG-WIC-Cnf
Commits
61a8238b
Commit
61a8238b
authored
Sep 05, 2020
by
ymwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
csv终版
parent
ccc0b961
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
apps/cnf-path-computing/businessInDocker/src/main/java/com/pitong/business/Application.java
...Docker/src/main/java/com/pitong/business/Application.java
+3
-3
apps/cnf-path-computing/businessInDocker/src/main/java/com/pitong/business/service/transfer/impl/FindServiceImpl.java
...itong/business/service/transfer/impl/FindServiceImpl.java
+1
-1
No files found.
apps/cnf-path-computing/businessInDocker/src/main/java/com/pitong/business/Application.java
View file @
61a8238b
...
...
@@ -51,13 +51,13 @@ public class Application implements ApplicationRunner {
Object
object
=
objectInputStream
.
readObject
();
//收到数据包
DataPackage
dataPackage
=
(
DataPackage
)
object
;
System
.
out
.
println
(
"receive"
);
System
.
out
.
println
(
"receive
d
"
);
//构建新的数据包
DataPackage
newDataPackage
=
dataPackage
;
//得到本机路由表
String
[]
route
=
findService
.
findRoute
(
dataPackage
.
getCurrentSataHop
(),
dataPackage
.
getRoute
());
System
.
out
.
println
(
Arrays
.
toString
(
route
));
System
.
out
.
println
(
"======
============
======"
);
//
System.out.println(Arrays.toString(route));
System
.
out
.
println
(
"======
next hop
======"
);
//判断是否为该边的终点,如果是,进行函数计算并创建一个新的数据包,转发
if
(
dataPackage
.
getCurrentSataHop
().
equals
(
dataPackage
.
getDestinSataHop
()))
{
LinkedList
<
Picture
>
picPara
=
new
LinkedList
<>();
...
...
apps/cnf-path-computing/businessInDocker/src/main/java/com/pitong/business/service/transfer/impl/FindServiceImpl.java
View file @
61a8238b
...
...
@@ -62,7 +62,7 @@ public class FindServiceImpl implements FindService {
//找到本卫星的路由
private
String
[]
findCurrentRoute
(
String
sataname
,
String
[][]
routeTable
){
int
index
=
Integer
.
parseInt
(
sataname
.
split
(
"sate"
)[
1
]);
System
.
out
.
println
(
index
);
//
System.out.println(index);
return
routeTable
[
index
-
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