Commit ad1a0789 authored by ymwang's avatar ymwang

合并成功版本

parent bedba911
...@@ -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
......
...@@ -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();
......
...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment