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
ad1a0789
Commit
ad1a0789
authored
Sep 05, 2020
by
ymwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合并成功版本
parent
bedba911
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
apps/cnf-path-computing/businessInCloud/src/main/java/top/ninwoo/test/CsvMerge/Wteg.java
...sInCloud/src/main/java/top/ninwoo/test/CsvMerge/Wteg.java
+5
-4
apps/cnf-path-computing/businessInCloud/src/main/java/top/ninwoo/test/doMap/DoMap.java
...essInCloud/src/main/java/top/ninwoo/test/doMap/DoMap.java
+1
-1
apps/cnf-weixingsim/src/test/java/top/ninwoo/WxTests.java
apps/cnf-weixingsim/src/test/java/top/ninwoo/WxTests.java
+1
-0
No files found.
apps/cnf-path-computing/businessInCloud/src/main/java/top/ninwoo/test/CsvMerge/Wteg.java
View file @
ad1a0789
...
@@ -22,14 +22,15 @@ public class Wteg {
...
@@ -22,14 +22,15 @@ public class Wteg {
String
str2
;
String
str2
;
//测试时间
//测试时间
str
=
ReadFile
.
date
+
" 5-00-00"
;
/*
str = ReadFile.date+" 5-00-00";
int[][] topo = TopoRequire(str);
int[][] topo = TopoRequire(str);
str1 = ReadFile.date+" 5-00-20";
str1 = ReadFile.date+" 5-00-20";
int[][] topo1 = TopoRequire(str1);
int[][] topo1 = TopoRequire(str1);
str2 = ReadFile.date+" 5-00-40";
str2 = ReadFile.date+" 5-00-40";
int
[][]
topo2
=
TopoRequire
(
str2
);
int[][] topo2 = TopoRequire(str2);*/
//动态获取当前时间topo
//动态获取当前时间topo
/*
Date current = new Date();
Date
current
=
new
Date
();
Date
current1
=
new
Date
(
current
.
getTime
()+
(
long
)
DoMap
.
slot
);
Date
current1
=
new
Date
(
current
.
getTime
()+
(
long
)
DoMap
.
slot
);
Date
current2
=
new
Date
(
current1
.
getTime
()+
(
long
)
DoMap
.
slot
);
Date
current2
=
new
Date
(
current1
.
getTime
()+
(
long
)
DoMap
.
slot
);
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
...
@@ -39,7 +40,7 @@ public class Wteg {
...
@@ -39,7 +40,7 @@ public class Wteg {
str2
=
sdf
.
format
(
current2
);
str2
=
sdf
.
format
(
current2
);
int
[][]
topo
=
TopoRequire
(
str
);
int
[][]
topo
=
TopoRequire
(
str
);
int
[][]
topo1
=
TopoRequire
(
str1
);
int
[][]
topo1
=
TopoRequire
(
str1
);
int[][] topo2 = TopoRequire(str2);
*/
int
[][]
topo2
=
TopoRequire
(
str2
);
//获得单时隙连接矩阵 0或MAXWEIGHT
//获得单时隙连接矩阵 0或MAXWEIGHT
...
...
apps/cnf-path-computing/businessInCloud/src/main/java/top/ninwoo/test/doMap/DoMap.java
View file @
ad1a0789
...
@@ -112,7 +112,7 @@ public class DoMap {
...
@@ -112,7 +112,7 @@ public class DoMap {
n2
=
dev
-
N_STABLE
*
slotnum
;
n2
=
dev
-
N_STABLE
*
slotnum
;
//1组装最短路矩阵
//1组装最短路矩阵
// 上方文本公式输出,下方csv文件输出
// double[][] edgeWeight = WTEG();
// double[][] edgeWeight = WTEG();
double
[][]
edgeWeight
=
Wteg
.
getWteg
();
double
[][]
edgeWeight
=
Wteg
.
getWteg
();
...
...
apps/cnf-weixingsim/src/test/java/top/ninwoo/WxTests.java
View file @
ad1a0789
...
@@ -29,6 +29,7 @@ public class WxTests {
...
@@ -29,6 +29,7 @@ public class WxTests {
@Autowired
@Autowired
private
ClusterService
clusterService
;
private
ClusterService
clusterService
;
@Resource
@Resource
private
NetworkService
networkService
;
private
NetworkService
networkService
;
...
...
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